{"id":50055975,"url":"https://github.com/code-yeongyu/cursor-proxy","last_synced_at":"2026-05-25T17:01:36.223Z","repository":{"id":358804865,"uuid":"1243132015","full_name":"code-yeongyu/cursor-proxy","owner":"code-yeongyu","description":"OpenAI-compatible Cursor CLI proxy with Hono, Cloudflare Workers server, and local runner","archived":false,"fork":false,"pushed_at":"2026-05-19T07:35:20.000Z","size":92,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-21T19:44:45.098Z","etag":null,"topics":["bun","cloudflare-workers","cursor","hono","openai-compatible","pnpm","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/code-yeongyu/cursor-proxy","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code-yeongyu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-19T04:35:53.000Z","updated_at":"2026-05-19T16:27:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/code-yeongyu/cursor-proxy","commit_stats":null,"previous_names":["code-yeongyu/cursor-proxy"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/code-yeongyu/cursor-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-yeongyu%2Fcursor-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-yeongyu%2Fcursor-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-yeongyu%2Fcursor-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-yeongyu%2Fcursor-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-yeongyu","download_url":"https://codeload.github.com/code-yeongyu/cursor-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-yeongyu%2Fcursor-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33343766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"online","status_checked_at":"2026-05-22T02:00:06.671Z","response_time":265,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bun","cloudflare-workers","cursor","hono","openai-compatible","pnpm","typescript"],"created_at":"2026-05-21T13:14:11.630Z","updated_at":"2026-05-23T15:01:29.337Z","avatar_url":"https://github.com/code-yeongyu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cursor-proxy\n\nOpenAI-compatible `/v1/chat/completions` proxy for Cursor CLI.\n\n## What It Runs\n\n- `apps/server`: Hono API surface for Cloudflare Workers, Bun, or other Web API runtimes.\n- `apps/runner`: local HTTP runner for a machine that can execute `cursor agent`.\n- `packages/shared`: OpenAI request/response schemas, prompt rendering, Cursor stream-json conversion, SSE formatting.\n\nThe server can run in Cloudflare Workers while the runner runs on a Mac mini or another client machine with Cursor CLI installed. A single-machine setup is also supported by running both services locally.\n\n## API\n\n| Route | Purpose |\n| --- | --- |\n| `GET /health` | service health |\n| `GET /v1/models` | minimal Cursor model list |\n| `POST /v1/chat/completions` | OpenAI-compatible chat completions |\n| `GET /openapi.json` | OpenAPI document |\n| `GET /scalar` | Scalar docs |\n| `GET /swagger` | Swagger UI |\n\n## Local Development\n\n```bash\nbun install\nbun test\nbun run check\n```\n\npnpm is supported for workspace installs and script orchestration:\n\n```bash\npnpm install\npnpm check\n```\n\nRun runner:\n\n```bash\nPORT=8791 CURSOR_WORKSPACE=/path/to/workspace bun --filter @cursor-proxy/runner dev\n```\n\nRun server against runner:\n\n```bash\nPORT=8787 CURSOR_RUNNER_URL=http://127.0.0.1:8791 bun --filter @cursor-proxy/server dev\n```\n\nRun the same server on Node after building with pnpm:\n\n```bash\npnpm node:build\nPORT=8787 CURSOR_RUNNER_URL=http://127.0.0.1:8791 pnpm node:start\n```\n\nManual request:\n\n```bash\ncurl -s http://127.0.0.1:8787/v1/chat/completions \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"model\":\"cursor-acp/auto\",\"messages\":[{\"role\":\"user\",\"content\":\"Say hi\"}]}'\n```\n\nLive Composer 2.5 tool-call QA is intentionally opt-in because it spends real Cursor quota:\n\n```bash\nbun run live:composer-toolcall\n```\n\n## Deployment\n\nCloudflare Workers should deploy `apps/server/src/worker.ts`. Configure:\n\n| Env | Meaning |\n| --- | --- |\n| `CURSOR_RUNNER_URL` | HTTPS URL of the runner machine |\n| `CURSOR_RUNNER_TOKEN` | optional bearer token shared with runner |\n| `CURSOR_PROXY_LOG_LEVEL` | `debug`, `info`, `warn`, `error` |\n\nRunner machine config:\n\n| Env | Meaning |\n| --- | --- |\n| `PORT` | runner port, default `8791` |\n| `CURSOR_BINARY` | cursor binary path, default `cursor` |\n| `CURSOR_WORKSPACE` | default workspace passed to `cursor agent --workspace` |\n| `CURSOR_RUNNER_TOKEN` | optional bearer token required by `/run` |\n\n## Repository Policy\n\n- Default branch: `main`.\n- Required checks: `bun`, `pnpm-node`, `cloudflare-workers`.\n- Branch rules: require PR review, require status checks, require branch up to date, require review thread resolution, block force pushes, block deletion.\n- Topics: `cursor`, `openai-compatible`, `hono`, `cloudflare-workers`, `bun`, `pnpm`, `typescript`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-yeongyu%2Fcursor-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-yeongyu%2Fcursor-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-yeongyu%2Fcursor-proxy/lists"}