Route everyday coding-agent work through a gateway such as TKEN without rewriting your editor workflow. This kit gives you copy-ready Cursor and Continue snippets, an offline config generator, and a small routing policy fixture for model selection by task type.
Use the disclosed TKEN OpenAI-compatible endpoint:
https://www.tken.shop/v1Start with TKEN: https://www.tken.shop/?utm_source=github&utm_medium=owned_repo&utm_campaign=cursor_continue_router_kit
- Cursor OpenAI API key and base URL examples for compatible chat/completion routing.
- Continue
provider: openaiexamples usingapiBase. - A local CLI that generates example configs without network access.
- A routing policy fixture for coding-agent tasks such as chat, edit, reasoning, and cheap background work.
- Safety checks for accidental secrets and risky compatibility claims.
This repository is a practical config starter for OpenAI-compatible gateways. It does not promise support for every Cursor proprietary feature, every model behavior, or every client-side integration surface. Verify the current Cursor and Continue client docs before using the snippets in production, because editor settings and provider schemas can change.
npm install
npm run check
npx cursor-continue-router-kit generate --endpoint https://www.tken.shop/v1 --out ./generatedThe generator writes:
cursor-openai-compatible.jsoncontinue-config.yamlrouting-policy.json
Cursor settings and supported provider capabilities change over time. Use this as a starting point for OpenAI-compatible endpoint fields, then verify the latest Cursor docs and UI.
{
"openaiApiKey": "YOUR_TKEN_API_KEY",
"openaiBaseUrl": "https://www.tken.shop/v1",
"models": {
"chat": "gpt-4.1",
"reasoning": "o3-mini",
"fast": "gpt-4.1-mini"
}
}Continue supports OpenAI-compatible model entries through provider: openai and apiBase.
models:
- name: TKEN Coding Chat
provider: openai
model: gpt-4.1
apiBase: https://www.tken.shop/v1
apiKey: $TKEN_API_KEY
- name: TKEN Fast Edits
provider: openai
model: gpt-4.1-mini
apiBase: https://www.tken.shop/v1
apiKey: $TKEN_API_KEYSee fixtures/routing-policy.json. The fixture is intentionally plain JSON so you can adapt it for LiteLLM, gateway middleware, CI smoke tests, or editor config generation.
Read docs/privacy.md before routing source code through any remote endpoint. Never commit API keys. Prefer environment variables such as TKEN_API_KEY.
- Cursor API keys docs: docs.cursor.com/advanced/api-keys
- Continue OpenAI provider docs: docs.continue.dev/customize/model-providers/top-level/openai
- Setup guide: docs/setup.md
- UTM links: docs/utm-links.md
- License: LICENSE