Hermes Agent 现已支持 Vercel AI Gateway 与 Vercel Sandbox

Hermes Agent 现已支持 Vercel AI Gateway 与 Vercel Sandbox

💡 原文英文,约300词,阅读约需1分钟。
📝

内容提要

Hermes Agent 现已支持 Vercel AI Gateway 作为推理层,可访问 200 多种模型且无加价,并在 Vercel Sandbox 微虚拟机中运行命令。用户可通过安装向导或更新配置切换,支持 node24、node22 和 python3.13 运行时,所有请求显示在 AI Gateway 仪表板中。

🔎

延伸解读

切换方式与验证

已安装 Hermes 的用户可通过 `hermes update` 更新,然后使用 `hermes setup model` 和 `hermes setup terminal` 分别切换推理层和终端后端。切换后可用 `hermes doctor` 验证配置。安装向导中也可直接选择 Vercel AI Gateway 和 Sandbox,并粘贴密钥。

Sandbox 的默认与本地开发

Vercel Sandbox 后端是可选功能,默认情况下命令仍在本地运行。启用后,命令在云端微虚拟机中执行,工作区根目录为 `/vercel/sandbox`。支持 node24(默认)、node22 和 python3.13 运行时。本地开发时需使用 `VERCEL_OIDC_TOKEN`,并通过 `vercel link` 和 `vercel env pull` 获取开发令牌。

模型选择与成本透明

通过 AI Gateway 可访问 200 多种模型,且无加价。模型选择器会实时拉取可用模型和当前定价,帮助用户根据需求和预算做出选择。所有请求都会显示在 AI Gateway 仪表板中,便于统一监控使用量和花费。

Q&A

Hermes Agent 如何接入 Vercel AI Gateway?

安装 Hermes 后,在设置向导中选择 Vercel AI Gateway 并粘贴你的密钥即可。如果已经安装,先运行 hermes update 更新,然后运行 hermes setup model 选择 Vercel AI Gateway。

Vercel AI Gateway 支持哪些模型?

Vercel AI Gateway 支持 200 多种模型,且无加价。

使用 Vercel AI Gateway 时,请求记录在哪里查看?

所有请求都会显示在 Vercel AI Gateway 仪表板中,与你的其他使用情况和支出一起。

如何启用 Vercel Sandbox 来运行 Hermes Agent 命令?

运行 hermes setup terminal 并选择 Vercel Sandbox,或者手动将 terminal.backend 设置为 vercel_sandbox。启用后,命令将在云微虚拟机中运行,工作区根目录为 /vercel/sandbox。

Vercel Sandbox 支持哪些运行时?

Vercel Sandbox 支持 node24(默认)、node22 和 python3.13 运行时。

本地开发时如何使用 Vercel Sandbox?

本地开发时,使用 VERCEL_OIDC_TOKEN,并运行 vercel link 和 vercel env pull 来获取开发令牌。

🏷️

标签

➡️

继续阅读