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
Install
Install Droid
- macOS / Linux
- Windows
Manual setup
Setup
1
Set the BetterToken API Key
- macOS / Linux
- Windows PowerShell
YOUR_API_KEY with your BetterToken API Key. Droid supports ${BETTERTOKEN_API_KEY} environment-variable expansion in its JSON configuration.2
Edit the Droid config file
Config file path: Replace
~/.factory/settings.jsonYOUR_MODEL_ID with a current model ID from a supported provider copied from the model plaza.3
Start Droid and select the model
/model in Droid and select BetterToken Codex. Factory watches the settings file for changes; if the model list does not refresh, exit and relaunch Droid.4
Run a small test task
Start with a small task such as “Explain this project’s directory structure.” Once Droid returns a result, continue with cross-file edits or longer agent tasks.
Set
provider to openai. In Factory’s BYOK configuration, this value selects the OpenAI Responses API. Use https://bettertoken.ai/v1 and an BetterToken API Key.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
Troubleshooting
FAQ
Why should I use the supported provider?
Droid’sprovider: "openai" uses the OpenAI Responses API. BetterToken’s supported provider provides the matching OpenAI-compatible endpoint and model IDs.
Do I need custom headers?
No extra headers are required for a standard BetterToken setup. Add tenant, routing, or audit headers only when another gateway explicitly requires them.Where can I check pricing and usage?
Use the live model plaza for current model pricing. Request usage and balance are available in the BetterToken Dashboard.Related FAQ
- OpenAI-compatible API vs Anthropic-compatible API
- MCP vs API Key and Base URL
- What are model_provider, base_url, and wire_api?
- How to configure an OpenAI-compatible API in Cline
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.
