Desktop tools
Cursor
Route Cursor Chat + Composer through Token Harbor.
Cursor
Cursor's Chat + Composer feature both accept custom OpenAI endpoints.
Steps
- Open Cursor Settings → Models.
- Toggle Override OpenAI Base URL, set it to:
https://tokenharbor.ai/v1
- Paste your Token Harbor key (
thk_live_…) in the API Key field. - Under Custom models, add the ids you want —
gpt-5,claude-sonnet-4-5,claude-opus-4-5,deepseek-chat, etc. - Save. Cursor's Chat and Composer now route through Token Harbor.
Notes
- Cursor uses both streaming and non-streaming requests depending on the operation. Token Harbor supports both transparently.
- Context windows: Token Harbor forwards the client's full request up to the model provider's own limit (e.g. ~200K for Claude 3.5 Sonnet). No artificial truncation.
- If a specific Cursor feature (Apply, Cmd-K edits) fails, check Cursor's debug console — the error usually states which incompatible header or parameter was sent. Token Harbor is strict about OpenAI-compat schema.