Api.Airforce
CLAUDE CODE

Claude Code Integration

Use Api.Airforce with Claude Code, Cursor, VS Code extensions, and any Anthropic-compatible client.

Claude Code is Anthropic's official coding CLI. Connect it to Api.Airforce to use all Claude models with your existing workflow.

Quick Start

Set the environment variables below and start Claude Code. It will automatically use Api.Airforce as the backend.

macOS / Linux

export ANTHROPIC_BASE_URL="https://api.airforce"
export ANTHROPIC_API_KEY="YOUR_API_KEY"

claude

Windows (PowerShell)

$env:ANTHROPIC_BASE_URL = "https://api.airforce"
$env:ANTHROPIC_API_KEY = "YOUR_API_KEY"

claude

Persistent Configuration

To avoid setting environment variables every time, add them to your Claude Code settings file:

# ~/.claude/settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.airforce",
    "ANTHROPIC_API_KEY": "YOUR_API_KEY"
  }
}

VS Code / Cursor Extension

Using the Claude Code extension in VS Code or Cursor instead of the CLI? Set the same two variables under claudeCode.environmentVariables in your editor's settings.json, then open the Claude Code panel.

// VS Code settings.json (Cmd/Ctrl+Shift+P → "Preferences: Open User Settings (JSON)")
{
  "claudeCode.environmentVariables": [
    { "name": "ANTHROPIC_BASE_URL", "value": "https://api.airforce" },
    { "name": "ANTHROPIC_API_KEY", "value": "YOUR_API_KEY" }
  ]
}

Troubleshooting

Fast mode not working

Fast mode checks are hardcoded to api.anthropic.com. Set CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS=1 to skip this check.

Beta header errors

If you see errors about anthropic-beta headers, set CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1.