Sandbox as a Service

com.sandbox-as-a-service由 sandbox-as-a-service.com 發布v1.1.0更新於 Oct 24, 2026

Give an agent a real Linux VM: run commands, move files, expose a preview URL, destroy it.

發布方自己的服務:sandbox.co

概覽

AI 產生的概覽

為 AI 助理提供一台真實的 Linux 虛擬機器,可執行指令、讀寫檔案、對外開放預覽網址,並在用完後銷毀。

可以做什麼
建立、檢視、延長與銷毀沙箱,並列出帳號下所有沙箱的狀態、規格與到期時間,以及透過 get_usage 查看剩餘額度與近期用量。以非特權使用者身分執行 shell 指令,回傳標準輸出、標準錯誤與結束碼。在沙箱內寫入、讀取與列出檔案,檔案內容以帶外方式傳輸。將沙箱內的連接埠開放為公開的 https 預覽網址。
適用情境
適合需要助理真正執行程式碼、安裝套件或在隔離的 Linux 環境中執行服務,而不只是提出推理結果的情境;也適合需要讀回執行產物或透過公開網址分享結果的情境。
執行需求
以本機 stdio 程序執行,通常透過 npx 從託管套件啟動。需要設定環境變數 AAS_API_KEY,值為服務儀表板取得的 API 金鑰;可選的 AAS_BASE_URL 可覆寫預設端點。需要能連線至該服務的網路,另外也提供託管的 Streamable HTTP 端點。
安裝前請注意
API 金鑰屬於機密,不應放入網址或共用設定中。沙箱會消耗額度:建立與延長會扣減帳號餘額,呼叫 destroy_sandbox 可停止計費。指令以非特權使用者執行且沒有 sudo;expose_port 會把沙箱連接埠發布到公開網址,因此該連接埠上的內容他人可存取。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Sandbox as a Service,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

sandbox-as-a-service-mcp

An MCP server that gives an agent a real Linux virtual machine it can break.

Eleven tools: create a sandbox, run shell commands in it, write and read files, list what a run produced, expose a port on a public preview URL, extend the lifetime, destroy it, and check what it all cost.

Each sandbox is a dedicated VM with its own kernel — not a container sharing a host with other people's code. It is never reused between accounts and is destroyed when it expires, whether or not anything remembered to ask.

Use it

Maintained by the operator of Sandbox as a Service.

Hosted MCP (no local package)

For a client that supports Streamable HTTP, connect to:

https://sandbox-as-a-service.com/v1/mcp

Send your own API key on each request as Authorization: Bearer <your-api-key> or x-api-key: <your-api-key>. Get it at Dashboard → API keys. Never put an API key in the URL or share one through a registry.

The hosted server exposes 12 tools: the eleven account/execution tools below plus get_service_info. Anonymous initialize, tools/list, and get_service_info work for free hosted discovery; account and execution calls still require your key. The local stdio server (including the current downloadable mcp.tgz v1.1.0) exposes the eleven account/execution tools. Use the hosted endpoint for keyless service information. A GET-only check is not a connection test: this endpoint uses MCP POST requests and SSE responses.

On Smithery, set apiKey to your own raw key; it maps to the x-api-key header. Connection documentation.

Local stdio (current hosted package)

AAS_API_KEY=aas_sk_... npx -y https://sandbox-as-a-service.com/mcp.tgz

Get a key at sandbox-as-a-service.com — new accounts start with free credit and no card.

Claude Desktop / Claude Code

{
  "mcpServers": {
    "sandbox": {
      "command": "npx",
      "args": ["-y", "https://sandbox-as-a-service.com/mcp.tgz"],
      "env": { "AAS_API_KEY": "aas_sk_..." }
    }
  }
}

The tools

ToolWhat it does
create_sandboxCreates a VM and returns its id once it is ready.
run_commandRuns a shell command as an unprivileged user. Returns stdout, stderr, exit code.
write_fileWrites a file. Content travels out of band, so quotes and binary survive.
read_fileReads a file back — how an agent gets at what its code produced.
list_filesLists a directory tree, so an agent can find what a run produced.
expose_portGives a server inside the sandbox a public https URL to share.
get_sandboxStatus, size and expiry.
list_sandboxesEverything on the account, newest first — useful for finding strays.
extend_sandboxPushes the expiry out when a job outgrows its timeout.
destroy_sandboxDestroys it and stops billing.
get_usageRemaining credit and recent usage.

Notes for agents

  • Code runs as an unprivileged user. There is no sudo, so apt-get will not work; use pip install --user --break-system-packages or npm install, both of which do.
  • run_command waits for the command to finish. Start a server with & or it will hold the call open until the timeout.
  • A sandbox is destroyed when its timeout expires whether or not destroy_sandbox is called, so a forgotten sandbox costs minutes, not money forever. Calling it anyway returns the minutes you were not going to use.

Environment

Variable
AAS_API_KEYRequired. Your API key.
AAS_BASE_URLOptional. Defaults to https://sandbox-as-a-service.com. Use the origin only, without /v1; the client adds that API prefix.

MIT licensed. The service it talks to is at sandbox-as-a-service.com; docs.

來源:README.md,提交 7436886

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Sandbox 整合