Tools
VS Code / Cline / Cursor
Editor extensions usually take the endpoint and key directly in their settings UI. This does not depend on the OS; the steps are identical on all three platforms.
One key works with every model. Your key is stored only in your own browser and is never uploaded to any server.
First, know the two API formats
| Option in the extension | Base URL | Available models |
|---|---|---|
| Anthropic | https://api.tokilabs.xyz | Claude models |
| OpenAI Compatible / OpenAI | https://api.tokilabs.xyz/v1 | GPT models, Claude models |
Claude models support both formats. The Anthropic format gives full access to native features such as caching and extended thinking, so prefer it.
Cline / Roo Code
- Click the Cline icon in the sidebar and open settings (gear icon).
- Set API Provider to
Anthropic. - Enter sk-your-key as the API Key.
- Check Use custom base URL and enter
https://api.tokilabs.xyz. - Choose a Model such as
claude-sonnet-5-5and save.
- Open Cline settings.
- Set API Provider to
OpenAI Compatible. - Enter
https://api.tokilabs.xyz/v1as the Base URL. - Enter sk-your-key as the API Key.
- Type the Model ID manually, for example
gpt-6.1-sol, and save.
Cursor
- Open Cursor Settings → Models.
- Enter sk-your-key in OpenAI API Key.
- Turn on Override OpenAI Base URL and enter
https://api.tokilabs.xyz/v1. - Click Add model to add a model name (such as
gpt-6.1-sol), then click Verify.
Some Cursor features (such as Tab completion) only use Cursor's own service and do not use the custom endpoint.
Continue
Edit ~/.continue/config.yaml:
config.yaml
models:
- name: Claude Sonnet (Toki Labs)
provider: anthropic
model: claude-sonnet-5-5
apiBase: https://api.tokilabs.xyz/v1
apiKey: sk-your-key
- name: GPT (Toki Labs)
provider: openai
model: gpt-6.1-sol
apiBase: https://api.tokilabs.xyz/v1
apiKey: sk-your-keyClaude Code extension
The official Claude Code extension for VS Code / JetBrains shares its configuration with the CLI. See Claude Code · settings.json.