---
id: 20261027-T0-17
title: "Vercel Sandbox支持stdin输入，可向运行中命令发送数据"
title_en: "Vercel Sandbox Adds stdin Support for Running Commands"
url: https://ai.daily.yangsir.net/daily/20261027-T0-17
issue_date: 2026-10-27
publish_date: 2026-10-26T06:00:00.000Z
category: release
source_name: "Vercel Blog"
source_url: https://vercel.com/changelog/vercel-sandbox-commands-now-support-stdin
---

# Vercel Sandbox支持stdin输入，可向运行中命令发送数据

Vercel Sandbox现在支持通过标准输入（stdin）向运行中的命令发送数据。开发者可以用它和stdio类MCP服务器（如agent-browser）交换消息，或在命令行程序运行期间向其传入数据。在TypeScript SDK中，调用runCommand()时设置stdin: true和detached: true即可启用。这意味着依赖交互式输入的AI agent工具链可以直接跑在Sandbox里，不用再绕开或改造原有程序。

## English Version

**Vercel Sandbox Adds stdin Support for Running Commands**

Vercel Sandbox now supports sending input to running commands via standard input (stdin). Developers can use it to exchange messages with stdio-based MCP servers such as agent-browser, or pipe data into command-line programs while they run. In the TypeScript SDK, enable it by setting stdin: true and detached: true in runCommand(). This lets interactive AI agent tooling run directly inside Sandbox without workarounds or modifications to existing programs.

---

**来源**：[Vercel Blog](https://vercel.com/changelog/vercel-sandbox-commands-now-support-stdin)

**详情页**：https://ai.daily.yangsir.net/daily/20261027-T0-17

---

*智语观潮 · Daily — https://ai.daily.yangsir.net/llms.txt*