Skip to main content
Tembo Max provides a high-performance proxy endpoint that allows you to connect your local AI coding tools to Tembo’s infrastructure. Read more about Tembo Max.

Connecting to Tembo Max

To use Tembo Max with your coding agents, configure them to connect to:
proxy.tembo.io/anthropic

Getting Your API Key

  1. Log in to your Tembo dashboard
  2. Navigate to SettingsAPI Keys
  3. Click Create API Key and copy the generated key
Keep your API key secure. If compromised, revoke it immediately and generate a new one.

Supported Tools

Max works seamlessly with the following AI coding tools:
  • Claude Code - Anthropic’s official CLI for Claude
  • Codex - OpenAI-powered coding agent
  • OpenCode - Multi-model coding assistant

Configuration

Configure your tool to use the Tembo Max proxy endpoint by setting the appropriate environment variables.

Claude Code / OpenCode (Anthropic)

export ANTHROPIC_BASE_URL=https://proxy.tembo.io/anthropic
export ANTHROPIC_API_KEY=your-tembo-api-key

OpenCode (OpenAI)

OpenCode can also use OpenAI models via opencode.json:
{
  "$schema": "https://opencode.ai/config.json",
  "model": "openai/gpt-5.2",
  "provider": {
    "openai": {
      "models": {
        "gpt-5.2": {
          "id": "gpt-5.2",
          "name": "GPT-5.2"
        }
      },
      "options": {
        "baseURL": "https://proxy.tembo.io/openai",
        "apiKey": "<your-tembo-api-key>",
        "headers": {
          "x-reasoning-level": "high"
        }
      }
    }
  }
}

Codex

Configure Codex to use Tembo Max by setting these environment variables:
export OPENAI_BASE_URL="https://proxy.tembo.io/proxy/openai"
export OPENAI_API_KEY="your-tembo-api-key"
Replace your-tembo-api-key with your actual Tembo API key from the dashboard.
There may be a ~/.codex/auth.json file overriding your local OPENAI_API_KEY environment variable. Make sure to remove or update this file in order for the environment variable to work.

Troubleshooting

Connection issues: Verify your API key is set correctly and you have an active Tembo subscription. Authentication errors: Generate a new API key from your dashboard if your current key is invalid or expired. For additional help, contact support@tembo.io.