Skip to content
Docs

Build durable backend agents with eve
Beta

Build durable backend AI agents with eve, an open-source, filesystem-first framework. Agent files compile into an app that runs locally or on Vercel.
agent/instructions.md
You are a concise assistant. Use tools when they are available.
agent/agent.ts
import { defineAgent } from 'eve';
 
export default defineAgent({
  model: 'openai/gpt-5.4-mini',
});
agent/tools/get_weather.ts
import { defineTool } from 'eve/tools';
import { z } from 'zod';
 
export default defineTool({
  description: 'Get the current weather for a city.',
  inputSchema: z.object({ city: z.string() }),
  async execute({ city }) {
    return { city, condition: 'Sunny', temperatureF: 72 };
  },
});
terminal
# Run against a local eve agent
curl -X POST http://127.0.0.1:3000/eve/v1/session \
  -H 'content-type: application/json' \
  -d '{"message":"What is the weather in Brooklyn?"}'

eve is currently in beta and subject to the Vercel beta terms. The framework, APIs, documentation, and behavior may change before general availability.

These docs cover deploying and running eve on Vercel. In this environment, the compiled app runs on Vercel Functions and integrates with these services:

The eve CLI scaffolds a new agent project, installs dependencies, initializes Git, and starts the development server.

terminal
npx eve@latest init my-agent

To add eve to an existing app, follow the quickstart steps.

Follow the generated README for the project-specific dev command, or run the agent locally with the standard script from the scaffold:

terminal
pnpm dev

See the eve Getting Started guide for the complete setup, local development, and first-session walkthrough.

A minimal agent is two files. agent/instructions.md:

You are a concise assistant. Use tools when they are available.

And agent/agent.ts:

import { defineAgent } from 'eve';
 
export default defineAgent({
  model: 'openai/gpt-5.4-mini',
});

eve resolves model strings such as openai/gpt-5.4-mini through AI Gateway, so on Vercel you authenticate with OIDC and don't need to manage provider API keys.

Each file in agent/tools/ is one tool. Create agent/tools/get_weather.ts:

import { defineTool } from 'eve/tools';
import { z } from 'zod';
 
// The runtime tool name comes from the filename, so the model sees `get_weather`.
export default defineTool({
  description: 'Get the current weather for a city.',
  inputSchema: z.object({
    city: z.string(),
  }),
  async execute(input) {
    return { city: input.city, condition: 'Sunny', temperatureF: 72 };
  },
});

Start a durable session and stream its output:

terminal
curl -X POST http://127.0.0.1:3000/eve/v1/session \
  -H 'content-type: application/json' \
  -d '{"message":"What is the weather in Brooklyn?"}'

The response returns a continuationToken in the body and an x-eve-session-id header. Attach to the session stream to receive NDJSON lifecycle events:

terminal
curl http://127.0.0.1:3000/eve/v1/session/<sessionId>/stream
  • Agent project: Author an agent from files under agent/, including instructions, runtime config, tools, skills, channels, connections, and a sandbox.
  • Durable sessions: Create sessions that stream incremental output and resume after cold starts, deploys, or long pauses.
  • Tools and skills: Give the model typed actions and load larger procedures only when relevant.
  • Agent Runs: Inspect sessions, turns, tools, reasoning, timing, and token usage in the Vercel dashboard.

Deploy an eve template to start building AI agents that use Vercel Connect to securely access third-party services and APIs:


Was this helpful?

supported.