Cursor & VS Code Integration with TokenDos API
TokenDos provides OpenAI-compatible (https://api.tokendos.com/v1) and Anthropic-compatible (https://api.tokendos.com/anthropic) endpoints for Cursor, Cline, and Roo Code with pay-per-token billing. Always verify exact model IDs and current rates in the marketplace before connecting.
Configuration Steps
Step 1: Check model IDs and create an API key
Create an API key in the TokenDos dashboard and check the exact model ID in the marketplace (for example claude-opus-5-5, claude-sonnet-5-5, gpt-6.1-sol, gemini-3.8-flash, or deepseek-v4.1-flash).
Step 2: Configure Cursor (OpenAI-compatible surface)
- Open Cursor
Settings -> Models. - Add the exact model ID from the marketplace and enable it.
- Set Override OpenAI Base URL to
https://api.tokendos.com/v1. - Paste your TokenDos API key into OpenAI API Key and click Verify.
Step 3: Configure VS Code Cline / Roo Code
- OpenAI Compatible provider: Set Base URL to
https://api.tokendos.com/v1, enter your TokenDos key, and set Model ID to your target model. - Anthropic provider: Enable custom base URL
https://api.tokendos.com/anthropicwith your TokenDos key for native Anthropic messages and prompt caching.
Billing checks and troubleshooting
- Cost & cache verification: Coding agents send large context prefixes. Compare live node rates on the pricing page, review the Claude cache billing guide, and estimate workloads with the API cost calculator.
- Verification or 401/403 errors: Check key validity, account balance, and ensure the model Cursor uses for verification is currently listed.
- Reasoning parameters: Check per-model effort and budget shapes in the API parameter reference.