翻篇收录说明
翻篇网页快照

Cline with AI Gateway

https://vercel.com/docs/ai-gateway/coding-agents/cline

最近抓取:2026-12-04 03:08:53(北京时间)

最近内容变化:2026-12-04 03:08:53(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Connect Cline to AI Gateway through the Vercel CLI or VS Code settings. Configure model access and monitor usage and spending in one dashboard.

正文摘录

Copy pageCopy pageCline with AI GatewayCopy pageCopy pageCline is a VS Code extension that provides autonomous coding assistance. You can configure it to use AI Gateway for unified model access and spend monitoring. Set up with the Vercel CLI Run the Vercel CLI setup command for Cline CLI: terminalnpx vercel@latest ai-gateway setup --agent cline The command provisions a key and writes Cline's provider store at ~/.cline/data/settings/providers.json. Configuring Cline To configure the Cline VS Code extension manually, use these steps: Create an API keyGo to the AI Gateway section in the Vercel dashboard sidebar and click API keys to create a new API key.Install ClineInstall the Cline extension from the VS Code marketplace.Open Cline settingsOpen the Cline settings panel in VS Code.Configure AI GatewayIn the settings panel: Select Vercel AI Gateway as your API Provider Paste your AI Gateway API Key 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.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. Maintain separate API keys for different environments (dev, staging, production) to better track usage across your workflow. Troubleshooting 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 Last updated October 16, 2026PreviousClaude DesktopNextCodexWas this helpful?