CLIProxyAPI can be used as a local OpenAI-compatible endpoint for Cursor.
Run the server and note the listening address (default: http://localhost:8318).
In Cursor settings:
- API base URL:
http://localhost:8318(recommended)- Alternatively:
http://localhost:8318/v1(CLIProxyAPI also provides non-/v1aliases for this case)
- Alternatively:
- API key: use one of the keys from
config.yamlunderapi-keys- Example:
your-cli-proxy-api-key
- Example:
Cursor will query GET /v1/models (or /models when base URL ends with /v1).
Pick any model exposed by your configured providers.
POST /v1/embeddingsis implemented and returns deterministic synthetic embeddings to keep IDE features working even when an embeddings backend is not configured.