Use TokenRex with VS Code
Configure native Custom Endpoint chat models or use a separate Cline extension provider.
Setup checked against the linked documentation. Screenshots are reference examples from the tool's publisher, not proof of a TokenRex connection. Live execution inside this third-party app has not been tested; verify a short request before running larger tasks.
Before you start
- A TokenRex API key
- A version of the app that accepts a custom OpenAI-compatible base URL
Setup methods
Native chat — Custom Endpoint
The older native OpenAI Compatible provider is deprecated; current versions use Custom Endpoint. Availability depends on the installed VS Code release.
- 1
Update VS Code and its chat features. In the model picker, choose Manage Language Models → Add Models → Custom Endpoint.

Official VS Code picker. Options vary by release; current Custom Endpoint setup is described in the steps. Official source - 1Choose your release's compatible endpoint option from Add Models.

Official VS Code language-model manager. Official source - 1Add Models is at the top-right of the manager.
- 2Select Custom Endpoint in the provider picker, then configure the request URL.
- 2
Select the Chat Completions API type and store the TokenRex API key through the supplied secret input.
- 3
In chatLanguageModels.json, use https://tokenrex.ai/api/public/v1/chat/completions for a model's full request URL. Use https://tokenrex.ai/api/public/v1 only for a discovery baseUrl field.
- 4
Add an exact enabled model ID and its verified context, output and tool-calling capabilities. Select it in chat and send a short test.

Official VS Code example models, not a TokenRex model list. Official source - 1Select your configured model before sending a short test.
VS Code with the Cline extension
- 1
Install Cline and open its settings gear. Choose OpenAI Compatible as its API provider.
- 2
Enter https://tokenrex.ai/api/public/v1 as Base URL, your private key and the exact model ID.
- 3
Set verified model limits and supported capabilities, save, and test a short task. Cline settings are separate from native VS Code chat settings.
Troubleshooting
- Authentication fails
- Check that the saved TokenRex key is active and belongs in the tool's API-key field, not its subscription sign-in. Remove accidental spaces, check your wallet balance, and never share the key in screenshots or exported settings.
- The model is missing or the request URL returns 404
- Copy an exact enabled model ID from Models & Pricing. Follow this method's URL field: some tools expect the versioned base, others the root or full completion address. Check the documented API protocol before changing the path.
- Chat works but streaming or tools fail
- Test a short plain-text conversation first. Confirm the selected model and installed tool version support the required protocol and capabilities. Enable agent actions only after separately checking streaming and tool calls.
Verify the connection
Send a short message with the selected model, read its response, then confirm the exact model appears in your TokenRex usage. Test streaming and tool use separately before larger agent tasks.