Hermes Agent Gains Vercel AI Gateway and Sandbox Backends: The Agent Stack Goes Plug-and-Play

TL;DR
Hermes Agent now supports Vercel AI Gateway and Vercel Sandbox. What shipped, how to switch, and why agent infrastructure is going bring-your-own.
Last updated: August 8, 2026
On August 7, Vercel announced that Hermes Agent can now use AI Gateway as its inference layer and run every agent command inside a Vercel Sandbox microVM. Hermes is the open-source, MIT-licensed agent from Nous Research (227k GitHub stars at the time of writing), built around a self-improving loop: it creates skills from its own experience, refines them during use, and keeps persistent memory across sessions. Our Hermes Agent guide covers local setup with Ollama and skills. The Vercel integration is significant not because Hermes needed another model provider, but because it completes the pattern of the agent as a portable program: the model layer and the execution layer are both now fully yours to choose.
What shipped, concretely#
Two independent switches, both opt-in, both configurable from the CLI:
AI Gateway as the inference layer. Hermes now appears in the AI Gateway setup wizard, and the picker pulls live model availability and pricing. Once configured, the agent can route through 200+ models on the gateway, with no markup on token cost, and every request lands in the AI Gateway dashboard alongside all your other usage and spend. For an agent whose whole pitch is provider-agnosticism, that removes the last reason to hardcode a single vendor: you get one dashboard for model choice, latency, and cost across whatever the agent touches.
Vercel Sandbox as a terminal backend. Hermes runs its shell commands locally until you set terminal.backend to vercel_sandbox. After that, each agent command executes in an isolated cloud microVM with a workspace root of /vercel/sandbox, instead of on your machine. The backend supports node24 (default), node22, and python3.13 runtimes. Local development authenticates with VERCEL_OIDC_TOKEN (a short-lived OIDC credential from vercel link and vercel env pull), not a long-lived API key.
For an existing install, the switch is three commands:
hermes update
hermes setup model # pick Vercel AI Gateway
hermes setup terminal # pick Vercel Sandbox
hermes doctor # verify
This makes Vercel Sandbox the seventh terminal backend in Hermes' list, alongside local, Docker, SSH, Singularity, Modal, and Daytona. The agent has been a bring-your-own-execution tool for a while; Vercel is now one of the turnkey options rather than something you wire up by hand.
Why this matters to developers#
Three takeaways, in order of how much they change your setup.
Agents are becoming BYO infrastructure, and that is the healthy version of the market. Hermes already ran on models from Nous Portal, OpenRouter, OpenAI, and your own endpoints. AI Gateway slots in as the neutral middleman: one provider-agnostic API, one spend surface, 200+ models with no markup. If you are running several agents or several apps through the gateway, the spend-budget scoping Vercel added earlier this month now covers the agent's traffic too, with hard dollar limits that reject requests. Your cost guardrails stop being per-tool and become per-account.
Sandboxing is the feature, not a footnote. Running an agent's commands in a cloud microVM instead of your laptop is a real security posture change. Hermes is a general agent: it browses, schedules automations, runs subagents, and executes shell commands. Pointing that at your local filesystem is convenient and genuinely risky; an isolated microVM that exists for the duration of a command and can be revoked via OIDC is the containment layer most agent setups are missing. The cost is opt-in and cheap: microVMs that only spin up while the agent is working, with no idle baseline.
The agent control plane is consolidating, and both major clouds are racing there. Cloudflare unified Workers AI and AI Gateway into a single AI control plane on the same day this shipped. Vercel is positioning AI Gateway as the same thing from its side: the neutral routing, observability, and cost layer that sits between your agents and every model vendor. When two infrastructure vendors ship the identical abstraction in the same week, it is a signal that the winning position in the agent stack is not the agent itself, but the plane it runs on. For developers, the practical effect is that switching agents becomes cheaper than switching gateways, and switching models is now a config change in both.
The skills angle#
Hermes is also part of the skills ecosystem: it auto-generates skills from solved problems and supports the agentskills.io open standard. That puts it in the same design family as the skill compilation and typed harnesses wave, where agent capability is defined in portable files rather than baked into one vendor's runtime. The combination with Vercel's infrastructure is coherent: portable skills define what the agent can do, a neutral gateway defines what it can call, and a sandbox defines where it runs. None of the three layers cares which vendor the others come from.
FAQ#
How do I connect Hermes Agent to Vercel AI Gateway and Vercel Sandbox?#
On an existing install, run hermes update, then hermes setup model and pick Vercel AI Gateway, then hermes setup terminal and pick Vercel Sandbox, and finish with hermes doctor to verify. Both switches are opt-in and independent, so you can enable one without the other.
What does the Vercel Sandbox terminal backend do for Hermes?#
Hermes runs its shell commands locally until you set terminal.backend to vercel_sandbox. After that, each agent command executes in an isolated cloud microVM with a workspace root of /vercel/sandbox. It supports node24 (the default), node22 and python3.13 runtimes, and local development authenticates with a short-lived VERCEL_OIDC_TOKEN rather than a long-lived API key.
Does Vercel AI Gateway add a markup on Hermes Agent token costs?#
No. Through AI Gateway, Hermes can route to 200+ models with no markup on token cost, and every request shows up in the AI Gateway dashboard alongside your other usage and spend. Gateway spend budgets also apply to the agent's traffic.
Which terminal backends does Hermes Agent support?#
Vercel Sandbox is the seventh terminal backend, alongside local, Docker, SSH, Singularity, Modal and Daytona.
Continue Reading#
- The Vercel Agentic Infrastructure Stack - how AI Gateway, Sandbox, and the agent runtime fit together as a platform
- Cloudflare Folds Workers AI Into AI Gateway - the same consolidation story from Cloudflare's side, shipped the same week
- The Agent Containment Capability Ledger - what isolation really covers, and where microVMs fit
- Vercel AI Gateway Adds Spend Budgets - the cost-cap math for agent workloads
- SIGIL: Skill Compilation With Typed Harnesses - why portable skills are becoming the standard unit of agent capability
- Agent Skills Moves to the Agentic AI Foundation - the Agent Skills standard now has a vendor-neutral home
- DeepSeek V4 Flash Is 90% Off Through Novita on Vercel AI Gateway: The Cost Math
- Best AI Agent Frameworks (2026) - more agent frameworks compared and ranked
- Code Sandboxes for AI course - how sandbox backends for agents work, hands-on
- Google Agent Compute Engine: A MicroVM Per Agent, Explained - Google's microVM-per-agent service with no credentials inside the sandbox
Sources#
- Vercel Changelog: Vercel AI Gateway and Vercel Sandbox now available on Hermes Agent (fetched August 8, 2026)
- Hermes Agent by Nous Research (fetched August 8, 2026)
- NousResearch/hermes-agent on GitHub (repo stats fetched August 8, 2026)
- Vercel Docs: Configuring Hermes for AI Gateway
- Vercel Sandbox documentation
Get the next deep dive like this in your inbox
One email a week on News and the rest of the AI dev stack. Free.
Read next on AI coding tools
Vercel's Agentic Infrastructure Stack Explained
Vercel's agentic infrastructure explained: what the announcement actually names, how AI Gateway, Sandbox, Workflows and Flags compose, with code checked against the SDKs.
11 min readCloudflare Folds Workers AI Into AI Gateway: One Control Plane for Every Model Provider
Cloudflare is merging Workers AI and AI Gateway into one control plane with a unified /ai/ API, default gateways and shared credits. What changes for you.
6 min readAI Agent Containment Needs a Capability Ledger
Anthropic's Claude containment writeup points to the next security layer for coding agents: deterministic capability ledgers, not another approval prompt.
9 min readNew here? Start with
Technical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.








