Skip to content

Coding Agents

AI coding agents are transforming how developers write, debug, and refactor code. Route these agents through AI Gateway to get a single dashboard for spend tracking, access to any model, and automatic fallbacks, all while using the familiar interfaces of your favorite tools.

You can connect supported coding agents without editing any config files: the vercel ai-gateway coding-agents setup CLI command detects the agents on your machine, provisions an API key, and writes their configuration for you.

BenefitWithoutWith
Spend trackingSeparate dashboards per providerSingle unified view
Model accessLimited to agent's default models200+ models from all providers
BillingMultiple invoices, multiple accountsOne Vercel invoice
ReliabilitySingle point of failureAutomatic provider fallbacks
ObservabilityLimited or no visibilityFull request traces and metrics

Claude Code is Anthropic's agentic coding tool for the terminal. Configure it with environment variables:

export ANTHROPIC_BASE_URL="https://ai-gateway.vercel.sh"
export ANTHROPIC_API_KEY="your-ai-gateway-api-key"

Once configured, Claude Code works exactly as before, but requests route through the gateway.

See the Claude Code documentation for advanced configuration.

OpenAI Codex is OpenAI's terminal-based coding agent. To connect it to AI Gateway, add the following to its configuration file:

~/.codex/config.toml
[model_providers.vercel]
name = "Vercel AI Gateway"
base_url = "https://ai-gateway.vercel.sh/v1"
env_key = "AI_GATEWAY_API_KEY"
wire_api = "responses"
 
[profiles.vercel]
model_provider = "vercel"
model = "openai/gpt-5.5"

Then start Codex with the Vercel profile:

codex --profile vercel

For full configuration options, see Configure OpenAI Codex.

OpenCode is an open-source, terminal-based AI coding assistant with native support. Connect directly from within the tool:

opencode
> /connect
# Select "Vercel AI Gateway" and enter your API key

OpenCode automatically discovers available models and lets you switch between them on the fly.

See the OpenCode documentation for more features.

Blackbox AI is a terminal-based CLI for AI-powered code generation and debugging. Configure it with the interactive setup:

blackbox configure
# Select "Configure Providers", choose "Vercel AI Gateway", and enter your API key

See the Blackbox AI documentation for installation and setup.

Cline is a VS Code extension that provides autonomous coding assistance. Configure it directly in VS Code:

  1. Open the Cline settings panel
  2. Select Vercel AI Gateway as your API Provider
  3. Paste your API key
  4. Choose a model from the auto-populated catalog

Cline tracks detailed metrics including reasoning tokens, cache performance, and latency.

See the Cline documentation for troubleshooting tips.

Roo Code is a VS Code extension that brings AI assistance directly into your editor. Configure it through the settings panel:

  1. Click the gear icon in the Roo Code panel
  2. Select Vercel AI Gateway as your provider
  3. Enter your API key
  4. Choose from hundreds of available models

Roo Code includes prompt caching support for Claude and GPT models to reduce costs.

See the Roo Code documentation for setup details.

Conductor is a Mac app that lets you run multiple Claude Code agents in parallel, each with an isolated copy of your codebase. Configure it through the settings panel:

  1. Go to Settings -> Env
  2. Add the environment variables under Claude Code
  3. Set ANTHROPIC_BASE_URL to https://ai-gateway.vercel.sh

Conductor lets you review and merge changes from multiple agents in one place.

See the Conductor documentation for setup details.

Crush is a terminal-based AI coding assistant by Charmbracelet with LSP integration and MCP support. Configure it interactively:

crush
# Select "Vercel AI Gateway", choose a model, and enter your API Key

See the Crush documentation for installation options.

Grok Build is xAI's terminal-based coding agent. Point it at AI Gateway with two environment variables:

export GROK_MODELS_BASE_URL="https://ai-gateway.vercel.sh/v1"
export GROK_CODE_XAI_API_KEY="your-ai-gateway-api-key"

The in-CLI model picker is then populated from the gateway's full catalog.

See the Grok Build documentation for full setup.

Superset is a terminal-first AI coding agent that works with CLI agents like Claude Code, Codex, and Cursor Agents. Configure it with environment variables:

export ANTHROPIC_BASE_URL="https://ai-gateway.vercel.sh"
export ANTHROPIC_AUTH_TOKEN="your-ai-gateway-api-key"
export ANTHROPIC_API_KEY=""

Superset also includes a Chat UI with built-in provider configuration.

See the Superset documentation for Chat UI setup.

  1. Get an API key: Create one in the AI Gateway page
  2. Choose your agent: Pick from Claude Code, OpenAI Codex, OpenCode, Blackbox AI, Cline, Roo Code, Conductor, Crush, Grok Build, or Superset
  3. Configure the connection: Point the agent to https://ai-gateway.vercel.sh
  4. Start coding: Use the agent as normal - all requests route through the gateway

Once your coding agents are connected, view usage in the Observability section in the sidebar:

  • Spend by agent: See how much each tool costs
  • Model usage: Track which models your agents use most
  • Request traces: Debug issues with full request/response logs
Last updated June 24, 2026

Was this helpful?

supported.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.