Models
Providers
Bring any model you already pay for across 200+ providers.
#Available providers
| Provider | Config ID | Auth |
|---|---|---|
| Anthropic | anthropic | API key (ANTHROPIC_API_KEY) |
| OpenAI | openai | API key or OAuth (OPENAI_API_KEY) |
| Google Gemini | gemini | API key (GEMINI_API_KEY) |
| LM Studio (local) | lmstudio | Local endpoint, no bill |
| Amazon Bedrock | amazon-bedrock | AWS profile or IAM credentials |
| OpenRouter | openrouter | API key (OPENROUTER_API_KEY) |
#Configure Amazon Bedrock
json
{
"provider": {
"amazon-bedrock": {
"options": {
"region": "us-east-1",
"profile": "my-development-profile",
"endpoint": "https://bedrock-runtime.us-east-1.amazonaws.com"
}
}
}
}Point Bedrock at your region, profile, and endpoint in config. Omit the endpoint to use the default regional runtime.
#Manage credentials
#List providers
bash
codey auth listList every configured provider and account before changing anything.
#Log out
bash
codey auth logout <provider-id>Logging out revokes the stored tokens for that provider. Re-authenticate before your next run.
#Any compatible endpoint
Bring any OpenAI-compatible or Anthropic-compatible endpoint as its own provider — a company gateway, a vLLM server, an Ollama install, a box on your network. Codey queries the endpoint for its model list and registers what it returns.
codey.json
{
"provider": {
"my-gateway": {
"name": "Team gateway",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://gateway.internal/v1",
"apiKey": "{env:GATEWAY_KEY}"
}
}
}
}- Two dialects — OpenAI-compatible or Anthropic-compatible, labelled the same way in the connect dialog.
- Keys stay out of the file —
{env:NAME}reads the environment,{file:path}reads a file. - No key at all — Codey has a free model route; see Free models.