ToolsThe story, in brief

Introducing Run SDK: secure eval for your agents

Vercel's Run SDK gives agents a sandbox to write code without touching your secrets. Host functions replace direct access—and the approval gates are built in.

Illustration of independent geometric mechanisms passing paper tasks along branching amber tracks.
AI agents and the coordination of work.AI illustration by KeyNews
The KeyNews take

Why it matters

Agent-generated code execution is becoming standard. Run SDK solves the security problem practitioners face right now: letting agents write TypeScript that coordinates tools without exposing app credentials or requiring full context dumps. Human-in-the-loop approval and resumable execution are native.

The key facts

10 to know
  1. Run SDK executes untrusted JavaScript/TypeScript in isolated QuickJS context (worker thread, no direct Node.js/network access)

  2. Host functions expose only selected operations—database client credentials remain in application

  3. Calls cross sandbox boundary via serialization; promises supported for existing service clients

  4. Human-in-the-loop: interrupts at sensitive operations, returns signed token for approval workflow, resumes without replaying completed work

  5. Per-run and global limits on heap, values crossing boundary, execution time

  6. Powers Vercel AI SDK's 'code mode' tool execution; agent response includes both calls and logic

  7. Two concurrent requests; filtering stays local to program; only useful result returns to app

  8. Node.js 22.13+, Bun; extracted from internal just-bash js-exec module

  9. Intended for JavaScript computation; Vercel Sandbox recommended for OS-level isolation workloads

  10. Published August 26, 2026

Go to the source

Vercel Blogvercel.com

Publisher excerpt: Agents increasingly write TypeScript programs to coordinate tools and process their results. Once those programs touch real applications, some steps require authentication, while others need human approval. Executing that code with gives it the same access as the application around it, including…
Read original report
Back to today's editionMore tools news

Keep reading

Related stories

More from Tools