Skip to content

vivian254338489/cursor-continue-openai-router-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drop-in Cursor and Continue configs for routing coding tasks through any OpenAI-compatible gateway

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/v1

Start with TKEN: https://www.tken.shop/?utm_source=github&utm_medium=owned_repo&utm_campaign=cursor_continue_router_kit

What This Is

  • Cursor OpenAI API key and base URL examples for compatible chat/completion routing.
  • Continue provider: openai examples using apiBase.
  • 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.

Scope

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.

Quick Start

npm install
npm run check
npx cursor-continue-router-kit generate --endpoint https://www.tken.shop/v1 --out ./generated

The generator writes:

  • cursor-openai-compatible.json
  • continue-config.yaml
  • routing-policy.json

Cursor Example

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 Example

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_KEY

Routing Policy Fixture

See 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.

Privacy

Read docs/privacy.md before routing source code through any remote endpoint. Never commit API keys. Prefer environment variables such as TKEN_API_KEY.

Links

About

Drop-in Cursor and Continue configs for OpenAI-compatible coding model routing

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors