Vercel eve: an open framework for building AI agents
By Flavio
Updated
Tagged: AI
A look at eve, Vercel's open-source agent framework. An agent is a directory of files, with durable execution, sandboxes, approvals, and evals built in.
Vercel released an open-source framework for AI agents called eve (lowercase). It’s still in beta, and the idea is simple: give agents the same file-based structure that Next.js gave to web apps.
Once you try taking an agent past a toy demo, calling the model is the easy part. The annoying work is everything around it: keeping long conversations durable across crashes, running agent code in a sandbox, pausing for human approvals, and tracing what went wrong. eve tries to handle all of that out of the box.
An agent is a directory
In eve, an agent is a folder of files where each file defines one capability:
agent/
agent.ts # the model it runs on
instructions.md # who it is
tools/
run_sql.ts # what it can do
skills/
revenue.md # what it knows
subagents/
investigator/ # who it delegates to
channels/
slack.ts # where it lives
schedules/
monday.ts # when it acts on its own
Just by reading the directory tree, you can see what the agent does, where it responds, and when it runs on a schedule, without digging through registration boilerplate. If you’ve used Next.js, the convention feels natural: where Next.js turns files into routes, eve turns files into agent capabilities and runs the loop for you.
Who the agent is
Two files define the basics of an agent. instructions.md holds the system prompt in plain Markdown:
You are a senior data analyst. You answer questions about the team's data.
- Prefer exact numbers to hand-waving. If you can compute it, compute it.
- State the assumptions behind any number you report.
- Use the tools available rather than guessing.
Then agent.ts selects the model and configures the runtime:
import { defineAgent } from 'eve'
export default defineAgent({
model: 'anthropic/claude-sonnet-4.6',
})
Model IDs change often, so pick a current one from the Vercel AI Gateway list when you try this.
An instructions.md file alone is enough to get a working agent. Everything else in the folder adds capabilities on top.
What it can do: tools
A tool is an action the agent can call. In eve, you add a TypeScript file inside tools/, and the filename becomes the tool name automatically:
import { defineTool } from 'eve/tools'
import { z } from 'zod'
export default defineTool({
description: 'Get the weather for a city',
inputSchema: z.object({
city: z.string(),
}),
async execute({ city }) {
const res = await fetch(`https://api.weather.com/current?city=${city}`)
return res.json()
},
})
The Zod schema tells the model what arguments to pass, and eve wires the function into the agent loop for you.
What it knows: skills
A skill is a Markdown playbook that loads only when the task needs it, so you don’t cram every team rule into every prompt:
---
description: How this team defines revenue. Load before any revenue question.
---
Revenue is recognized net of refunds, over the subscription term.
Weeks are Monday-anchored, in UTC.
Exclude trial and internal accounts from every number.
eve reads the description field to decide whether a skill applies to the current question, and skips it when it isn’t relevant.
The rest of the shape
The same one-file-per-capability layout applies to the rest of the folder:
subagents/holds child agents with their own instructions and tools, which the parent can call like any other tool.channels/connects the agent to Slack, Discord, Teams, and other messaging platforms, one small file per channel.schedules/pairs a cron expression with a handler so the agent runs on its own clock.connections/manages auth to services like GitHub, Linear, or Stripe so your tools don’t have to juggle tokens.
Once you understand how tools/ works, the other folders follow the same pattern.
What you get for free
File-based conventions are nice, but the reason to look at eve is the production plumbing it includes from day one.
Every conversation runs as a durable workflow, with each step checkpointed. If a server crashes, a deploy rolls out, or the agent waits hours for a reply, it picks up right where it left off. On a Pi-based agent, Pi Durable gives you the same kind of checkpoints in SQLite so a fresh process can resume an unfinished run.
Agent-written code is treated as untrusted, so every agent runs inside its own sandbox for shell commands and file access. Locally that can be Docker, and in production it switches to Vercel Sandbox.
For risky actions, you can add human-in-the-loop approvals right on a tool definition. When needsApproval returns true, the agent pauses without burning compute until a person approves it, then continues:
export default defineTool({
description: 'Run a SQL query against the warehouse',
inputSchema: z.object({ sql: z.string() }),
needsApproval: ({ toolInput }) => estimateScanGb(toolInput.sql) > 50,
async execute({ sql }) {
// ...
},
})
If you need that kind of restart-safe approval flow outside eve, I wrote about keeping the exact proposal in SQLite.
Finally, every run emits standard OpenTelemetry traces covering each model and tool call with its inputs and outputs, and evals let you run scored checks against your agent locally or in CI.
The dev loop
To run an agent locally, use:
eve dev
This opens a terminal UI where you can chat with the agent and see which skills it loaded, which tools ran, and what it returned, instead of digging through raw stdout.
You write evals as files too and run them with:
eve eval
When you’re ready to deploy, an eve agent is a standard Vercel project:
vercel deploy
The same folder you ran on your laptop deploys to Vercel, swapping the local container for Vercel Sandbox without code changes.
It runs on Vercel’s primitives
eve stitches together the infrastructure pieces Vercel already built: AI Gateway for model calls and provider fallbacks, Vercel Sandbox for isolated execution, Vercel Workflows for durable sessions, and Vercel Connect for external auth. You don’t have to wire four separate services together before your first agent works.
My take
I like this direction, and not just because of eve itself. A clear convention is settling in across agent frameworks: an agent as a directory of files, with Markdown for instructions and skills, code for tools, and folders for channels and schedules. I wrote about Flue from the Astro team recently, and it landed on a very similar shape.
What stands out with eve is that durability, sandboxing, approvals, and evals come bundled on infrastructure Vercel already operates at scale. If you’ve built an agent and felt how much glue code sits around the model call, give it a try.
Try it
The public preview is open, and the CLI scaffolds a starter agent in about a minute:
npx eve@latest init my-agent
The source is at github.com/vercel/eve and the docs live at eve.dev/docs.
Want me to talk about your product? You can sponsor this site.
Related posts about ai: