Connect Cursor

Configure provider, URL, key and model ID.

Prepare your API key

Sign in at /login, then create or copy a HanRouter API key at /keys. Your password and browser session token are not API keys. Check key validity, model group permissions and Dashboard balance.

Store the complete key in the server environment variable HANROUTER_API_KEY. Keep it out of browser code, public repositories and URL parameters.

Client configuration

In Cursor Models / API Keys, set your OpenAI API key, override the OpenAI Base URL and add the exact model ID. Custom key support depends on client version and plan.

Base URL: https://api.hanrouter.ai/v1. API key: your complete key from /keys. Model: an ID from GET /v1/models. Send Hello to verify.

Verify available models

List models available to your key first, then copy data[].id exactly into requests. Names, case and aliases come from this response. The public plaza hides unpriced models; backend availability is unchanged.

Request example
curl "https://api.hanrouter.ai/v1/models" \
  -H "Authorization: Bearer $HANROUTER_API_KEY"

Related articles

Connect Cline ›Connect Kilo Code ›Connect Roo Code ›Connect Continue ›Connect Aider ›Connect Claude Code ›