Vercel AI Gateway 支持一条命令自动发现并配置本地 Claude Code、Codex 等 9 种编程 Agent,统一管理 200+ 模型的路由、预算与用量监控。
使用 coding agents 意味着要注册多个账户、配置 API key,还要在多个地方分散管理监控和账单。现在你可以把它们都路由到 AI Gateway 实现集中管理,只需一条命令即可完成配置:
支持任意 200+ 模型,涵盖任何 agent,包括该 agent 原生不支持的模型。网关将请求路由到你选择的模型,并配置自动回退机制。
支持任意 200+ 模型,涵盖任何 agent,包括该 agent 原生不支持的模型。网关将请求路由到你选择的模型,并配置自动回退机制。
一个统一的面板查看所有 agent 流量:消费、性能、token 使用量等,覆盖你所有 agent 调用过的模型。
一个统一的面板查看所有 agent 流量:消费、性能、token 使用量等,覆盖你所有 agent 调用过的模型。
对 agent 使用的密钥设置预算、重置周期和过期时间,有效控制支出。
对 agent 使用的密钥设置预算、重置周期和过期时间,有效控制支出。
全团队统一的策略,agent 无法绕过:开启 Zero Data Retention 或限制哪些提供商可以处理请求,无需修改任何 agent 配置即可对所有 agent 请求生效。
全团队统一的策略,agent 无法绕过:开启 Zero Data Retention 或限制哪些提供商可以处理请求,无需修改任何 agent 配置即可对所有 agent 请求生效。
每个请求都有完整的追踪记录,包括费用、token 消耗和所使用的模型。
每个请求都有完整的追踪记录,包括费用、token 消耗和所使用的模型。
# Upgrade to the latest version of the Vercel CLIpnpm i -g vercel@latest
# Run coding agents setup commandvercel ai-gateway coding-agents setup
vercel ai-gateway coding-agents setup 可以在一条命令内连接 Claude Code、Codex、OpenCode 等多种 agent。它会自动检测你机器上的 agent、创建 API key,并将网关 URL 和你的凭证写入每个 agent 各自的配置格式中。
Claude Code,CLI 和桌面端
/model 或 /model <slug>,如 /model anthropic/claude-opus-5
Codex,CLI 和桌面端
/model 或 codex --model <slug>
/models,然后选择 vercel/<creator>/<model>
/model,或 pi --list-models
cline auth -p vercel-ai-gateway -m <slug>,或在会话中切换
在 Settings 下的 Models 中添加网关 slug
/model custom:vercel-ai-gateway:<slug>
/models,然后选择 openai-compatible/<creator>/<model>
将 slug 添加到 openclaw.json 的 starter list 中
文件在原地编辑并保留其格式,setup 不会固定到某个模型。此命令支持 9 种 coding agents 使用 AI Gateway 中的模型。你也可以使用 /model 内联命令打开选择器,查看所有可用模型:完整目录请参阅 models list。
传入 --yes 使用默认配置,或预先设置 key:
vercel ai-gateway coding-agents setup \ --agent claude-code --agent codex \ --budget 500 --refresh-period monthly --yes
阅读 coding agents 文档
阅读 coding agents 文档
vercel ai-gateway CLI 参考
vercel ai-gateway CLI 参考
浏览模型目录
浏览模型目录