Analysis updated 2026-05-18
Point any OpenAI-compatible tool or library at Composer 2.5 by swapping the API base URL.
Use Composer 2.5 as the underlying model for OpenCode's tool-execution loop via a dedicated route.
Deploy a personal Cloudflare Worker instance to call Cursor's Composer model outside the Cursor editor.
Stream chat completions from Composer 2.5 using the standard OpenAI chat completions format.
| standardagents/composer-api | chaos-xxl/zelda-hyrule-ui | coasty-ai/open-cowork | |
|---|---|---|---|
| Stars | 39 | 39 | 39 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | moderate | easy | easy |
| Complexity | 3/5 | 2/5 | 3/5 |
| Audience | developer | developer | vibe coder |
Figures from each repo's GitHub metadata at analysis time.
Self-hosting requires a Cloudflare account, a private Cursor backend URL, and configured Wrangler secrets.
Cursor is a code editor that includes an AI assistant called Composer 2.5, but Cursor does not offer that AI as a general-purpose API endpoint that other tools can call. This project bridges that gap. It runs as a small server (a Cloudflare Worker) that accepts requests in the standard OpenAI format and translates them into the internal format that Cursor uses, then streams the response back to the caller. The live deployment is hosted at cursor-api.standardagents.ai. The practical effect is that any tool or library that already knows how to talk to OpenAI can be pointed at this server instead. You supply your own Cursor API key as the authentication token. The key is forwarded directly to Cursor per request and is not stored by the server. The supported endpoints are the standard chat completions endpoint, the responses endpoint, and a models list endpoint. The available model name is composer-2.5. The project includes a second route specifically for a tool called OpenCode. That route keeps a stable conversation identifier across multiple messages, which OpenCode needs to manage its own tool-execution loop locally while still using Composer as the underlying language model. A few OpenAI features are intentionally not supported because Cursor does not expose them through this path: requesting multiple completions at once, log probability outputs, audio output, and background jobs. Token usage counts in responses are estimated from character counts rather than exact token accounting, because Cursor's stream does not include that data. The server is built on Cloudflare's Worker platform and uses a Cloudflare D1 database for an optional legacy flow that stores encrypted keys. Deploying your own instance requires a Cloudflare account, a private Cursor backend URL (which is not public), and a few Wrangler secrets. The README lists the required configuration values and the build and deploy commands.
A Cloudflare Worker that exposes Cursor's Composer 2.5 AI as an OpenAI-compatible API endpoint any existing tool can call.
Mainly TypeScript. The stack also includes TypeScript, Cloudflare Workers, Cloudflare D1.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.