Skip to main content
reopt Handbook
reopt Handbook
Enterprise Eve Agent Development

Core Architecture

Ch1. Eve Mental ModelCh2. Source Code AtlasCh3. Project Layout and DiscoveryCh4. Compiler and Runtime Graph

Agent Quality Design

Ch5. agent.ts, Models, CompactionCh6. Context, Skills, Dynamic CapabilitiesCh7. Tools, Approval, ConnectionsCh8. Sandbox Secure Runtime

Operational Runtime

Ch9. Channels, Auth, StreamingCh10. Subagents, Workflows, Remote AgentsCh11. Schedules, State, HooksCh12. Evals and Quality Gates

Production Operations

Ch13. Observability and DeploymentCh14. Enterprise PatternsCh15. Migration and Governance

Appendix

Official Docs CrosswalkVerification ReportUpdates
Handbook›엔터프라이즈 Eve 에이전트›Ch8. Sandbox Secure Runtime
한국어English

Ch8. Sandbox Secure Runtime

Turn Eve sandbox trust boundaries, backends, network policy, credential brokering, and workspace lifecycle into operating standards.

Key takeaways

  • Eve sandbox isolates built-in shell/file work; it does not sandbox authored tool execute.
  • Backend choice, network policy, workspace seed, and credential brokering define production posture.
  • Sandbox state follows the durable session, so retention, reproducibility, and egress need governance.

The sandbox is where model-driven shell and file work happens. The mistake is assuming that "there is a sandbox" means "it is safe." The real question is what is allowed inside it.

Trust Boundary

ConcernApp runtimeSandbox
secrets/envavailablenot available by default
custom tool executeruns heredoes not run here
shell/file effectsproxiedapplied to /workspace
filesystemapp codeisolated workspace
networkruntime environmentsandbox network policy

Built-in Sandbox Tools

ToolFunction
bashrun shell commands
read_fileread text with line numbers
write_filecomplete file write with read-before-write enforcement
globfile pattern search
grepregex content search

Disable or override tools that do not fit the agent's purpose.

agent/tools/bash.ts
import { disableTool } from "eve/tools";

export default disableTool();

Backend Selection

BackendRuns whereUse
vercel()Vercel Sandbox microVMhosted production
docker()local Docker containerlocal/self-host with real binaries
microsandbox()local lightweight VMlocal isolation close to Vercel Sandbox
justbash()JS bash interpreterfallback with limited capabilities
defaultBackend()availability-aware choicefast start, less explicit

For production, prefer explicit backend policy, especially when network or resource controls matter.

defineSandbox Pattern

agent/sandbox/sandbox.ts
import { defineSandbox } from "eve/sandbox";
import { vercel } from "eve/sandbox/vercel";

export default defineSandbox({
  backend: vercel({
    runtime: "node24",
    resources: { vcpus: 2 },
    networkPolicy: "deny-all",
  }),
  revalidationKey: () => "bootstrap-v1",
  async bootstrap({ use }) {
    const sandbox = await use();
    await sandbox.run({ command: "mkdir -p reports" });
  },
  async onSession({ use, ctx }) {
    const sandbox = await use({ networkPolicy: "deny-all" });
    const principal = ctx.session.auth.current?.principalId ?? "anonymous";
    await sandbox.writeTextFile({
      path: "SESSION_PRINCIPAL.txt",
      content: `${principal}\n`,
    });
  },
});

Bootstrap vs onSession

LifecycleScopePut hereAvoid
bootstraptemplate-scopedcommon packages, baseline repo cloneper-user secrets, tenant data
onSessiondurable session-scopedprincipal markers, per-session setupexpensive common setup repeated

Workspace Seed

Files under agent/sandbox/workspace/** are copied into /workspace.

agent/sandbox/
├── sandbox.ts
└── workspace/
    ├── schema.sql
    └── scripts/run-report.sh

Do not put secrets in seed files. If you seed customer snapshots, define retention and deletion policy.

Network Policy

Default sandbox egress is allow-all. Sensitive or production agents should narrow it.

PolicyMeaning
"allow-all"all egress allowed
"deny-all"egress blocked
allow-list objectdomain/subnet controls
networkPolicy: {
  allow: ["api.github.com", "*.vercel.com"],
  subnets: { deny: ["10.0.0.0/8"] },
}

Backend capability differs. Docker and just-bash do not provide the same network-control semantics as hosted Vercel Sandbox or microsandbox.

Credential Brokering

Vercel Sandbox and microsandbox support credential brokering: headers can be inserted at the network/firewall layer for allowed hosts without exposing token strings to the model.

Use it carefully:

UseJudgment
private repo clonegood fit with allow-list
arbitrary curl bearer tokenrisky
internal API callprefer custom tool or connection when possible
token string in prompt or workspaceprohibited

Session Persistence

The sandbox filesystem persists for the same durable session. Vercel may idle the VM but preserve filesystem state. Docker keeps long-lived containers; just-bash stores a local virtual filesystem cache.

Operating points:

  • monitor workspace growth
  • delete sensitive artifacts when no longer needed
  • include sandbox id/session id in audit logs
  • remember that declared subagents may have separate sandboxes

Security Checklist

ItemStandard
backendexplicit production backend
networkdeny-all or allow-list
secretsno secrets in workspace or seed
default toolsdisable/override when unnecessary
bootstrapno tenant data; revalidation key set
onSessionapplies auth-derived policy
credential brokeringonly with host allow-list
evalvalidates tool access and network limits

Related docs

Ch13. Observability and Deployment

Operate Eve with OpenTelemetry, Workflow tags, deployment checklists, health checks, and production runbooks.

Sandbox Tool Runtime

Vercel Enterprise AI Platform · Isolate code, file, browser, and shell execution for AI agents.

Ch15. Migration and Governance

Migrate existing agents into Eve and establish enterprise governance for agent portfolios.

Cmd. /debug-config

Codex Command Master · Inspect Codex config layers, policy sources, and requirements diagnostics.

Cmd. /sandbox

Claude Code Command Master · Toggle sandbox mode on supported platforms.

Ch7. Tools, Approval, Connections

Design Eve authored tools, human approval, MCP/OpenAPI connections, and OAuth boundaries as enterprise security surfaces.

Ch9. Channels, Auth, Streaming

How Eve channels own session creation, continuation tokens, route auth, NDJSON streams, and frontend/client integration.

On this page

Trust BoundaryBuilt-in Sandbox ToolsBackend SelectiondefineSandbox PatternBootstrap vs onSessionWorkspace SeedNetwork PolicyCredential BrokeringSession PersistenceSecurity Checklist