Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/vercel/eve/llms.txt

Use this file to discover all available pages before exploring further.

Your eve agent runs across two contexts, with a hard trust boundary between them and every secret kept on the trusted side. Use this mental model when deciding what an agent — and the model driving it — is allowed to reach.

Trust boundaries

App runtimeSandbox
process.env / secrets✅ Yes❌ No
Your Node.js code✅ Yes❌ No
NetworkUnrestrictedControlled by policy
FilesystemApp’s ownIsolated /workspace
The app runtime is the trusted side. Your tool implementations, model calls, connections, state, and durable execution all run here, with process.env and full Node.js available. On Vercel, this is a Vercel Function. The sandbox is the isolated side. The model runs shell commands there through the built-in bash, read_file, write_file, glob, and grep tools. It gets its own /workspace filesystem, but no process.env, no secrets, and no path back into the app runtime. On Vercel, each sandbox is a Vercel Sandbox microVM with hardware-level isolation.
Only shell commands execute in the sandbox. Even the built-in bash/read_file/write_file tools live in the app runtime and proxy into the sandbox. The model sees tool definitions and results — never your secrets.

A concrete trace

When the model calls a custom charge_card tool:
  1. Its execute runs in the app runtime
  2. Reads process.env.STRIPE_KEY
  3. Calls Stripe
  4. Returns { ok: true }
The model sees only { ok: true }. The key never leaves the app runtime, and nothing about the call touches the sandbox. The built-in write_file is the mirror image: it runs in the app runtime and proxies the write into the sandbox /workspace. Either way the model drives the work through tool calls and their results — never by holding a credential or reaching the runtime directly.

Data flow at a glance

eve sends data where your agent configuration and runtime choices send it:
  • Inbound channel data flows through the channel provider you configure, then into the eve app runtime.
  • Model inputs and outputs flow to the model or routing path selected in agent.ts — such as a Vercel AI Gateway model ID or a provider-authored LanguageModel.
  • Tool and connection calls flow to the external services, MCP servers, OpenAPI endpoints, and channels you configure.
  • Sandbox commands can reach network destinations allowed by the sandbox network policy.
  • Telemetry and eval data flows to the exporters and providers you configure in instrumentation.ts or eval settings.
eve stores durable session and workflow state needed to resume conversations, stream events, replay completed steps, and show run observability. You are responsible for deciding whether the selected channels, model providers, connected services, sandbox egress destinations, telemetry exporters, retention settings, and deletion controls are appropriate for your data and use case.

Credential brokering

Credential brokering gives the model authenticated network access from inside the sandbox — such as a git clone of a private repo or an authenticated curl — when there is no tool or connection to route the call through. On the Vercel Sandbox backend, auth headers are injected at the sandbox’s network firewall for matching domains. The secret stays in the app runtime; the sandbox process only ever sees the response.

Connection credentials

Connection tokens (MCP and OpenAPI) come from either getToken() or an interactive OAuth flow. eve injects the resolved token into every outbound request. The token is cached per step and never serialized to durable state.

Channel verification

A channel is your agent’s front door, so authenticating inbound traffic is its job. The built-in platform channels follow two rules, and any channel you write must follow them too:

Rule 1: Verify signatures in constant time

Platform channels (Slack, GitHub, Telegram, Twilio) verify the platform’s HMAC signature over the raw request body with a constant-time comparison. This means timing the response cannot reveal a forged signature.
Use a constant-time compare for any secret you check — never === on a signature. A non-constant-time comparison is vulnerable to timing attacks that can reveal a valid signature character by character.

Rule 2: Don’t trust body-supplied identity

Derive the caller from a verified signature or token — never from a principalId (or similar field) the request body claims.
A body field is attacker-controlled. Treating a body-supplied principal as identity enables cross-user impersonation, even if the request is otherwise authenticated.
A custom channel accepting dashboard-style webhooks should follow the same shape: authenticate the raw body with an HMAC, compare signatures in constant time, and trust any body-supplied principal only after the signature verifies.

Route auth

Routes reject unauthenticated traffic by default. If no AuthFn in the walk accepts the request, the caller receives a 401. Admitting anonymous callers requires an explicit none(). The scaffold’s placeholderAuth() keeps a half-configured app closed in production until you replace it with a real AuthFn.

Subagent data isolation

Each subagent gets its own context and its own durable session. A declared subagent also gets its own sandbox, skills, and state. Nothing crosses the subagent boundary implicitly — the parent session only sees what the child explicitly returns.

Authored markdown is data

Skill and schedule files are markdown with YAML frontmatter. eve treats that frontmatter strictly as data. The code-capable engines (---js / ---javascript, which would eval() the frontmatter body at parse time) are disabled — such a fence throws rather than running. Frontmatter must parse to a plain YAML object.

Pre-production checklist

Before exposing an agent to real traffic, complete these checks:
  • Replace placeholderAuth() in agent/channels/eve.ts with a real AuthFn (vercelOidc(), httpBasic(), oidc(), or your own). Verify an unauthenticated production request gets 401.
  • Verify channel signatures. Each platform channel needs its signing secret set. Custom channels must verify signatures in constant time and never trust body-supplied identity.
  • Keep secrets in process.env — never in compiled artifacts, never passed into the sandbox. Route privileged calls through tools or connections.
  • Scope connection tokens to the least privilege the agent needs. They reach hosts but never the model.
  • Set a sandbox network policy tighter than allow-all if the model should not have open egress. Use credential brokering for authenticated egress.
  • Don’t surface untrusted text as markup. Model- or user-controlled strings rendered into a channel UI should be escaped for that surface.

Channels

The full auth walk and channel verifier helpers.

Sandbox

Backends, network policy, and credential brokering config.

Execution Model

How durable sessions run and where state lives.

Connections

Static-token and OAuth connections.

Build docs developers (and LLMs) love