CODING AGENTSFREE MODELSCOPY-PASTE

Point any coding agent at free models.

The exact setting that makes each terminal and editor agent talk to a free or cheap API instead of a paid one. One line per tool.

12
agents covered
1
line per setup
$0
on free tiers
Set your provider API key as an env var first. These point the tool at an OpenAI-compatible base URL.
All
Terminal
Editor
TUI
Terminal

Claude Code ↗

Point it at any Anthropic-compatible endpoint with two env vars.
export ANTHROPIC_BASE_URL=... ANTHROPIC_API_KEY=...
Then run: claude
TUI

OpenCode ↗

Add a custom provider + base URL in opencode.json, pick any model.
opencode auth login
Configure provider in opencode.json
Terminal

Aider ↗

Set the model and an OpenAI-compatible base to use free endpoints.
aider --model openai/MODEL --openai-api-base URL
OPENAI_API_KEY from your provider
Terminal

Codex CLI ↗

Override base URL + model in config to route to a free provider.
codex --config model_provider=...
Set in ~/.codex/config
Editor

Cline (VS Code) ↗

Choose OpenAI Compatible in settings, paste base URL + key + model id.
Settings → API Provider → OpenAI Compatible
Works with any OpenAI-style API
Editor

Continue.dev ↗

Add a model block with apiBase in config.yaml to use any provider.
apiBase: https://your-provider/v1
Edit ~/.continue/config.yaml
TUI

Goose ↗

Set provider + base URL in the profile to run on open models.
goose configure
Pick OpenAI-compatible provider
Editor

Roo Code ↗

OpenAI Compatible provider in settings, drop in base URL and model.
Settings → OpenAI Compatible
Fork of Cline, same flow
Terminal

Plandex ↗

Set custom models with a base URL for big multi-file tasks.
plandex models custom
Add OpenAI-compatible endpoint
Terminal

Crush (Charm) ↗

Configure a provider base URL in the config to use free APIs.
crush
Set provider in config
Editor

Kilo Code ↗

OpenAI Compatible provider, paste base URL + key + model.
Settings → Provider → OpenAI Compatible
VS Code extension
TUI

Open Interpreter ↗

Pass a custom api_base and model to run fully on open models.
interpreter --api_base URL --model MODEL
Runs code locally