[UNTESTED] [greenSheep999/cursor-proto] 4 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,237 characters
Status: [UNTESTED]
Endpoints found:
http://127.0.0.1:8317/v1/chat/completions
http://127.0.0.1:8317/v1/proxy-info
http://127.0.0.1:8317/v1/models
http://127.0.0.1:8317/v1/messages
Source: https://github.com/greenSheep999/cursor-proto
# cursor-proto
A Go client + reverse-engineered protocol library for Cursor IDE, plus an
OpenAI- and Anthropic-compatible HTTP proxy so any existing OpenAI/Anthropic
client can talk to Cursor's backend.
Built by rebuilding Cursor's private wire protocol from the shipped
`workbench.desktop.main.js` (~40 MB) — proto schemas, checksum algorithm,
machine-id derivation, session identifiers, and header set.
**Currently impersonates Cursor 3.19.7** on `main`. Older supported lines stay
on their `release/cursor-<X.Y>` branches. See [docs/versioning.md](docs/versioning.md)
for the release contract and how downstream consumers should pin.
## Versioning
Every release targets one specific Cursor IDE version. Tags encode both
axes: `cursor<major>.<minor>/v<semver>` (e.g. `cursor3.10/v0.1.1`,
`cursor3.11/v0.2.0`). Older Cursor lines stay on long-lived
`release/cursor-<X.Y>` branches so they can receive patches after `main`
has moved on.
Any running binary can be introspected — no auth required:
```bash
cursor-proxy -version # CLI, prints JSON and exits
curl -s http://127.0.0.1:8317/v1/proxy-info # HTTP, same JSON
```
Returns `cursor_line`, `impersonated_version`, `impersonated_commit`,
`release_hash`, and `proto_version` (the git tag CI built from, or
`"dev"` for local builds).
See [docs/versioning.md](docs/versioning.md) for the full release
contract — tag scheme, artifact names, Docker image tags, the
line-vs-impersonated distinction, and how downstream consumers (e.g.
`cursor2api`) should pin and verify.
## Two modes: wire + agent
Since `cursor3.11/v0.3.0`, cursor-proxy runs two independent HTTP
surfaces on the same port:
- **Wire mode** (`/v1/messages`, `/v1/chat/completions`, `/v1/responses`,
`/v1beta/models/*`) — the OpenAI/Anthropic/Gemini-compatible surface
we've always shipped. Authenticates upstream with the IDE's
`accessToken` (auto-loaded from `state.vscdb`).
- **Agent mode** (`/v1/agents/*`) — new. Backed by the