Key settings
Prerequisites
- The current version of the tool is installed
- A BetterToken API key: register and get one
- A Model ID from the model plaza
Additional requirements
- VS Code is installed
- The Kodacode / Koda extension is installed
- The selected Model ID comes from the supported provider
Install
Install or open Kodacode, then continue with the manual setup below.Manual setup
Setup
1
Open the Koda panel and add a model
Open the KODA panel in the VS Code sidebar, click the model selector below the input box, and choose Добавить модель: Agent / Add model: Agent.

2
Fill in the OpenAI-compatible model settings
In the add model dialog, use these values:
Click Подключить / Connect after filling in the fields.

3
Confirm that the model is active
After the connection succeeds, select the new model, such as
YOUR_MODEL_ID, from the model selector under the Koda input box. Send a short message to confirm that it returns a response.4
Check config.yaml
Kodacode writes the configuration to 
~/.koda/config.yaml. Open this file to confirm that the model was added.
config.yaml example
Use this full structure as a reference. ReplaceYOUR_API_KEY with your BetterToken API Key, and do not commit a real API Key to your repository.
If you use a model other than
YOUR_MODEL_ID, update both name and model so they match the model ID from a supported provider from the model plaza.Verify the connection
Send a short test prompt. If the tool returns a response without an authentication or Model ID error, the connection works. Fully restart the tool after changing its configuration.Switch models
Open the model selector or change theModel field in the configuration. Use the exact Model ID from the model plaza, then restart the current session.
Common errors
- If the connection fails, confirm that API Base is
https://bettertoken.ai/v1/and keep the trailing/. - If the model is unavailable, confirm that Model ID comes from the supported provider.
- If authentication fails, copy the API Key again and avoid extra spaces or line breaks.
- If
config.yamlchanges do not apply, restart VS Code or run Developer: Reload Window. - BetterToken usually does not require an extra
User-Agentor custom headers.
Advanced setup
Supported providers
Statuses apply to the BetterToken setup documented on this page.
What the setup methods mean
What the setup methods mean
- Manual setup: enter the API Key, Base URL, and Model.
- Not supported: no verified direct setup is currently available.
Related guides
Technical details
Protocol, endpoint, and internal provider fields
Protocol, endpoint, and internal provider fields
This setup uses
https://bettertoken.ai/v1. The tool appends the OpenAI-compatible endpoint path. Do not add /chat/completions or /responses unless a specific field explicitly requires it.
