Skip to main content
To connect Droid to BetterToken, prepare an API key, enter the Base URL shown below, and choose a current Model ID from the model plaza.

Key settings

Prerequisites

Additional requirements

Install

Install Droid

Manual setup

Setup

1

Set the BetterToken API Key

Replace 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: ~/.factory/settings.json
Replace YOUR_MODEL_ID with a current model ID from a supported provider copied from the model plaza.
3

Start Droid and select the model

Enter /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 the Model 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’s provider: "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.

Advanced setup

Supported providers

Statuses apply to the BetterToken setup documented on this page.
  • Manual setup: enter the API Key, Base URL, and Model.
  • Not supported: no verified direct setup is currently available.

Technical details

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.