cd /news/developer-tools/vercel-sandbox-commands-now-support-… · home › topics › developer-tools › article
[ARTICLE · art-158137] src=vercel.com ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Vercel Sandbox commands now support stdin

Vercel added standard input (stdin) support to commands in Vercel Sandbox, letting developers send input to running commands, including exchanging messages with stdio MCP servers such as agent-browser. In the TypeScript SDK, developers set `stdin: true` and `detached: true` in `runCommand()`, then use `writeStdin()` to send input and `closeStdin()` when finished, or pass a Node.js readable stream like `process.stdin`. In the Python SDK, developers set `stdin=subprocess.PIPE`, send input with `server.stdin.send()`, and call `communicate()` to close stdin, collect remaining output and wait for the process to exit.

by read1 min views2 publishedOct 26, 2026

Vercel Sandbox now lets you send input to running commands through standard input (stdin). Use it to exchange messages with stdio MCP servers such as agent-browser, or send data to other command-line programs while they run.

In the TypeScript SDK, set stdin: true and detached: true in runCommand(). Use writeStdin() to send input and closeStdin() when you’re done: You can also set stdin to a Node.js readable stream, such as process.stdin. The SDK forwards the stream’s data and closes the command’s standard input when the stream ends.

In the Python SDK, set stdin=subprocess.PIPE and send input with server.stdin.send(). Call communicate() to close stdin, collect remaining output, and wait for the process to exit:

For commands that receive all their input at once, you can pass `input` directly to Python’s `run_process()`.

Read the [Sandbox documentation](https://vercel.com/docs/sandbox/sdk-reference#writestdin) to get started.
── more in #developer-tools 4 stories · sorted by recency
── more on @vercel 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/vercel-sandbox-comma…] indexed:0 read:1min 2026-10-26 · —