Agent Harnesses You Can Run Durably on Vercel
Each guide gets one harness running durably on Vercel: the agent, a chat route, and the route that resumes a turn after a crash. Pick the harness your agent uses:
| Harness | Package | Runs in |
|---|---|---|
| Pi | durable-harness/pi-durable or /pi | Your function, with files in a virtual workspace or a Sandbox |
| fx | libfx | Your function, with files in a virtual workspace or a Sandbox |
| OpenCode | durable-harness/opencode | Your function, with files in a virtual workspace or a Sandbox |
| eve | eve | An eve app, durable by default |
| Claude Code (experimental) | durable-harness/claude-code | A Vercel Sandbox |
| Codex (experimental) | durable-harness/codex | A Vercel Sandbox |
The durable-harness guides share one setup, and each shows it for Next.js and for other frameworks. fx and eve are durable on their own, so their guides use libfx and eve directly. To learn how durability works, see Running Agent Harnesses Durably.
These pages apply to every durable-harness guide:
- Tools, files, and documents: what tools do after a crash, where an agent's files live, and typed state with a session.
- Observability: each session in Vercel Agent Runs.
- Security: what may run in your function, and where commands and files the model picks run instead.
- Self-hosting: sessions in another World, such as Postgres, on your own servers.
Was this helpful?