Set your provider API key as an env var first. These point the tool at an OpenAI-compatible base URL.
Terminal
Point it at any Anthropic-compatible endpoint with two env vars.
export ANTHROPIC_BASE_URL=... ANTHROPIC_API_KEY=...
TUI
Add a custom provider + base URL in opencode.json, pick any model.
opencode auth login
Terminal
Set the model and an OpenAI-compatible base to use free endpoints.
aider --model openai/MODEL --openai-api-base URL
Terminal
Override base URL + model in config to route to a free provider.
codex --config model_provider=...
Editor
Choose OpenAI Compatible in settings, paste base URL + key + model id.
Settings → API Provider → OpenAI Compatible
Editor
Add a model block with apiBase in config.yaml to use any provider.
apiBase: https://your-provider/v1
TUI
Set provider + base URL in the profile to run on open models.
goose configure
Editor
OpenAI Compatible provider in settings, drop in base URL and model.
Settings → OpenAI Compatible
Terminal
Set custom models with a base URL for big multi-file tasks.
plandex models custom
Terminal
Configure a provider base URL in the config to use free APIs.
crush
Editor
OpenAI Compatible provider, paste base URL + key + model.
Settings → Provider → OpenAI Compatible
TUI
Pass a custom api_base and model to run fully on open models.
interpreter --api_base URL --model MODEL