Skip to content

Type to search the docs and the model list.

Cursor

Add eWest as a model provider in the Cursor editor.

Cursor can send chat requests to eWest through its OpenAI key setting (/v1/chat/completions).

We haven't tested this setup ourselves; it follows the tool's own documentation. If something doesn't work, contact support.

Cursor sends these requests from its own servers, your key works for chat only (Tab completion always uses Cursor's models), and some Cursor features ignore the custom base URL (see Streaming and tools). Using your own key needs a Cursor plan that includes it.

Setup

  1. Open Cursor Settings → Models.
  2. Paste your eWest key into OpenAI API Key, turn on Override OpenAI Base URL and enter https://api.ewest.ai/v1.
  3. Turn off the built-in models, then add the ewest/* models you want (for example ewest/claude-sonnet) by name.
  4. Click Verify.

Choose a model

Cursor doesn't read eWest's model list, so add each id by hand, exactly as in Models and with the ewest/ prefix. For coding, use a model that supports tools: ewest/claude-sonnet, ewest/claude-opus, ewest/claude-haiku or ewest/gemini-flash.

Verify it works

Pick an ewest/* model in the chat and send a message. The cURL request below is what Cursor sends, without Cursor: if it works and Cursor doesn't, the problem is in Cursor's settings.

Every response has an x-request-id header; paste it into the console under Requests to see the request (trace IDs).

# The request Cursor sends for a chat message, without Cursor:
curl https://api.ewest.ai/v1/chat/completions \
  -H "Authorization: Bearer $EWEST_KEY" \
  -H "content-type: application/json" \
  -d '{"model": "ewest/claude-haiku", "stream": true, "messages": [{"role": "user", "content": "Reply with the single word OK"}]}'

Streaming and tools

Cursor streams answers and sends its tools over /v1/chat/completions; there is nothing to set. Known Cursor limits with your own key: Agent mode can switch back to a built-in model, and subagents can ignore the base URL override. For agent work, Claude Code or Cline are more reliable.

Troubleshooting

  • Verify fails with 404: Cursor checks the key with one of its built-in model names, which eWest doesn't serve. Turn off the built-in models, add an ewest/* model, then verify again.
  • 401: the key is missing, mistyped or revoked. Copy it again from API keys. Also check that Override OpenAI Base URL is on.
  • 404 with model_not_found: the model name needs the ewest/ prefix (ewest/claude-haiku, not claude-haiku) and must be in Models.
  • 403: your key is not allowed to use that model; 402: the key's budget is used up. See Errors.
# The models your key may call (use these ids exactly, with the ewest/ prefix):
curl -H "Authorization: Bearer $EWEST_KEY" https://api.ewest.ai/v1/models

# One model, with its context window and whether it supports tools and images:
curl -H "Authorization: Bearer $EWEST_KEY" https://api.ewest.ai/v1/models/ewest/claude-haiku

Still stuck? Follow Troubleshoot a request.