Skip to Content

Cline with AI Gateway

Run the Vercel CLI setup command for Cline CLI:


AI Gateway

npx vercelai-gatewaysetup--agentcline


Coding Agents

The command provisions a key and writes Cline's provider store at ~/.cline/data/settings/providers.json.


Cline

To configure the Cline VS Code extension manually, use these steps:

  1. Create an API keyGo to the AI Gateway section in the Vercel dashboard sidebar and click API keys to create a new API key.
  2. Install ClineInstall the Cline extension from the VS Code marketplace.
  3. Open Cline settingsOpen the Cline settings panel in VS Code.
  4. Configure AI GatewayIn the settings panel:
    1. Select Vercel AI Gateway as your API Provider
    2. Paste your AI Gateway API Key
    3. Choose a model from the auto-populated catalog, or enter a specific model ID
    Cline automatically fetches all available models from AI Gateway. You can browse the full catalog on the models page.
  5. Start codingYour requests will now be routed through AI Gateway. You can verify this by checking your AI Gateway Overview in the Vercel dashboard.

Use specific model IDs

Models follow the creator/model-name format. Check the models catalog for the right slug to avoid "404 Model Not Found" errors.

Monitor usage and spend

View your usage, spend, and request activity in the AI Gateway section in the Vercel dashboard sidebar. The observability dashboard tracks:

  • Input and output token counts (including reasoning tokens)
  • Cached input and cache creation tokens
  • Latency metrics (average TTFT)
  • Per-project and per-model costs

See the observability documentation for more details.

Troubleshooting

Last updated September 13, 2026

Common issues and solutions:

  • 401 Unauthorized: Verify you're sending the AI Gateway key to the AI Gateway endpoint
  • 404 Model Not Found: Copy the exact model ID from the models catalog
  • Slow first token: Check dashboard average TTFT and consider streaming-optimized models

Cross-link map: Cline with AI Gateway (/docs/ai-gateway/coding-agents/cline)From the Vercel docs graph (built 2026-09-21T05:26:59.511Z), spanning vercel.com docs + KB, nextjs.org, ai-sdk.dev, and other Vercel documentation sites. Full graph as JSON: https://vercel.com/docs/graph.jsonSemantically closest pagesOpenClaw with AI Gateway — Connect OpenClaw to AI Gateway with the Vercel CLI or manual provider configuration. Use gateway models across coding agContinue CLI with AI Gateway — Connect Continue CLI to AI Gateway with the Vercel CLI or a YAML model configuration that reads your API key from the enZCode with AI Gateway — Connect ZCode to AI Gateway with the Vercel CLI or an OpenAI-compatible custom provider.Deep Agents CLI with AI Gateway — Connect Deep Agents CLI to AI Gateway with the Vercel CLI or a TOML provider and model profiles.OpenCode with AI Gateway — Connect OpenCode to AI Gateway with one CLI command, or configure it in-app.This page links to (2)AI Gateway Observability — Monitor AI Gateway requests in the Vercel dashboard. Inspect token usage, latency, spend, and logs at team, project, andvercel ai-gateway — Manage AI Gateway resources from the Vercel CLI: API keys, budgets, routing rules, virtual models, models, leaderboards,Pages that link here (2)By site: vercel-docs (2)Coding Agents and Chat Platforms with AI Gateway — Connect coding agents and chat platforms to AI Gateway. Configure Claude Code, Codex, Chatbox, Open WebUI, and more.vercel ai-gateway — Manage AI Gateway resources from the Vercel CLI: API keys, budgets, routing rules, virtual models, models, leaderboards,

Next

Previous

We provide 24/7 support through various channels, including live chat, email, and phone, to assist with any queries.

Claude Code

Was this helpful?