Documentation Navigation
Models

Providers

Bring any model you already pay for across 200+ providers.

#Available providers

ProviderConfig IDAuth
AnthropicanthropicAPI key (ANTHROPIC_API_KEY)
OpenAIopenaiAPI key or OAuth (OPENAI_API_KEY)
Google GeminigeminiAPI key (GEMINI_API_KEY)
LM Studio (local)lmstudioLocal endpoint, no bill
Amazon Bedrockamazon-bedrockAWS profile or IAM credentials
OpenRouteropenrouterAPI 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 list

List 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.

#See also