Headmesh Agent Sandbox
概览
作者提供的说明(英文原文)
Run commands, edit files and manage Git and persistent sessions in your own isolated sandbox.
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在云端运行
- 传输方式: Streamable HTTP
- 分类: 开发者工具
安装
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 你的提问会经过开发者的服务器({sandbox_host})
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 Headmesh Agent Sandbox 的密钥(在开发者网站注册,可能收费) · 地址中有 {…} 部分,需要先改成你自己的 · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个
打开 Claude 的 Connectors 页面
CustomizeConnectors
点击“+ Add” → “Add custom connector”,填写这 2 项
把这里的内容复制到 Claude 中同名的输入框,然后点击 Continue
Name · 名称Headmesh Agent SandboxRemote MCP server URL · 地址https://{sandbox_host}/mcp在 Request headers 下添加这个名称和值
Header 名称Authorization值Bearer <在这里粘贴你的密钥>只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
Authentication 保持 Claude 检测到的设置,然后点击 Add
在聊天中开启
+ConnectorsHeadmesh Agent Sandbox
试一试
用 Headmesh Agent Sandbox 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Headmesh Agent Sandbox,或回答中出现 Headmesh Agent Sandbox 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Headmesh Agent Sandbox
Headmesh Agent Sandbox 连接时需要你自己的密钥,但 OpenAI 帮助页面只说明了 OAuth 登录,没有我们能核实的填密钥方式
你可以改用这些方式
A · 使用能连接 Headmesh Agent Sandbox 的应用
- 需要 Headmesh Agent Sandbox 的密钥(在开发者网站注册,可能收费) · 地址中有 {…} 部分,需要先改成你自己的 · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个
- 需要 Headmesh Agent Sandbox 的密钥(在开发者网站注册,可能收费) · 地址中有 {…} 部分,需要先改成你自己的
- 需要 Headmesh Agent Sandbox 的密钥(在开发者网站注册,可能收费) · 地址中有 {…} 部分,需要先改成你自己的
- 需要 Headmesh Agent Sandbox 的密钥(在开发者网站注册,可能收费) · 地址中有 {…} 部分,需要先改成你自己的
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Sentry✓ ChatGPT
- Front-End Checklist✓ ChatGPT
- Compiler Explorer✓ ChatGPT
可连接 Claude Code,但需要先准备
需要 Headmesh Agent Sandbox 的密钥(在开发者网站注册,可能收费) · 地址中有 {…} 部分,需要先改成你自己的
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --transport http headmesh-sandbox 'https://{sandbox_host}/mcp' --header 'Authorization: Bearer {sandbox_token}'按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Claude Code 中输入 /mcp
应能看到 Headmesh Agent Sandbox 在列表中并显示已连接
试一试
用 Headmesh Agent Sandbox 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Headmesh Agent Sandbox,或回答中出现 Headmesh Agent Sandbox 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Headmesh Agent Sandbox 的密钥(在开发者网站注册,可能收费) · 地址中有 {…} 部分,需要先改成你自己的
打开 Cursor 的 MCP 设置文件
~/.cursor/mcp.json
粘贴这些设置,填写空着的值并保存
{ "mcpServers": { "headmesh-sandbox": { "url": "https://{sandbox_host}/mcp", "headers": { "Authorization": "Bearer {sandbox_token}" } } } }填写你的密钥
在 Headmesh Agent Sandbox 的设置中,Authorization 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Headmesh Agent Sandbox 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Headmesh Agent Sandbox,或回答中出现 Headmesh Agent Sandbox 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Headmesh Agent Sandbox 的密钥(在开发者网站注册,可能收费) · 地址中有 {…} 部分,需要先改成你自己的
打开 VS Code 的 MCP 设置文件
MCP: Open User Configuration
粘贴这些设置,填写空着的值并保存
{ "servers": { "headmesh-sandbox": { "type": "http", "url": "https://{sandbox_host}/mcp", "headers": { "Authorization": "Bearer {sandbox_token}" } } } }填写你的密钥
在 Headmesh Agent Sandbox 的设置中,Authorization 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Headmesh Agent Sandbox 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Headmesh Agent Sandbox,或回答中出现 Headmesh Agent Sandbox 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
通过网页连接
Claude Code
claude mcp add --transport http headmesh-sandbox 'https://{sandbox_host}/mcp' --header 'Authorization: Bearer {sandbox_token}'Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"headmesh-sandbox": {
"url": "https://{sandbox_host}/mcp",
"headers": {
"Authorization": "Bearer {sandbox_token}"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"headmesh-sandbox": {
"type": "http",
"url": "https://{sandbox_host}/mcp",
"headers": {
"Authorization": "Bearer {sandbox_token}"
}
}
}
}需要你填写的值
AuthorizationHTTP headerA scoped bearer token issued by your own Headmesh sandbox
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
通过互联网连接,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast
它能做什么
这个地址需要填入你自己的值,所以我们无法替你读取工具列表。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月11日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 headmesh-dev 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于4天前
- ✓ 通过
有许可证
使用 Apache-2.0
- – 不适用
端点有响应
这个地址需要填入你自己的账户信息,所以我们无法替你检查
- – 不适用
使用 OAuth 登录
这个地址需要填入你自己的账户信息,所以我们无法替你检查
- … 尚未检查
工具描述中没有隐藏指令
尚未检查;我们会在检查端点时读取工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5760 个服务器的 69%
- 发布到注册中心的时间比此分类中其他 5760 个服务器的 74% 更新
- 基础检查结果等于或优于此分类中其他 5760 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Headmesh Agent Sandbox 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。
它还在维护吗?
GitHub 仓库最后更新于4天前,最新版本(0.1.0)于7天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,因此也能用于支持远程 MCP 的应用,例如 ChatGPT Business 及以上方案。
有什么可以替代它?
同一分类中有:REA, Netdata, Front-End Checklist
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Front-End Checklist
Review frontend code and live pages against 386 quality-gated web development rules.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Headmesh agent sandbox
A persistent Docker container on the ASUS that joins Aaryn's Headscale tailnet as its own tagged node, so cloud agents can work with real files, real dependencies and private services. Agents reach it through several front doors:
- an MCP server,
headmesh-sandboxd; - the Claude self-hosted runner and Claude Remote Control;
- Codex over Tailscale SSH;
- the OpenAI Secure MCP Tunnel;
codex exec-server, driven from the host through the Agents API.
It implements plan §6 and §7 (docs/plan.md).
| Path | What |
|---|---|
image/ | Multi-stage Dockerfile on ubuntu:26.04 (pinned by digest), s6-overlay services, git hooks, guidelines template, docker-bake.hcl, container-structure-test, hadolint config |
compose/ | compose.yaml with the regular and yolo profiles (embedded in the CLI) |
config/ | sandbox.example.toml and its JSON Schema (sandbox.schema.json) |
sandboxd/ | The MCP daemon: tools, sessions (tmux), auth, audit, status |
cmd/headmesh-sandboxd/ | Daemon binary, plus the in-container helpers (hm) |
cmd/headmesh-sandbox/ | Host CLI |
host/ | Egress firewall and restic backup units. Aaryn installs them with sudo; see host/README.md |
tests/acceptance/ | The five-check harness, the recreate bonus and prompt.md |
tests/e2e/ | Live test against a running container |
docs/ | container-contract.md (the interface between image, Compose, CLI and daemon) and the ADRs |
This is its own Go module, github.com/headmesh-dev/headmesh/sandbox; the root go.work includes it. Run go test -race ./... here.
What's verified (2026-10-27)
All of this was run locally, without tailnet enrollment:
go test -race ./...passes. That includes integration tests on real tmux and real git, and the harness against an in-process sandboxd.golangci-lint runwith the repo config reports 0 issues.docker buildx bake -f sandbox/image/docker-bake.hcl sandbox-localbuildsheadmesh-sandbox:dev(2.39 GB). hadolint is clean, and container-structure-test passes 43/43.headmesh-sandbox upstarts the container through Compose with the §6.3 hardening. It reports healthy with tailscaled logged out, and the unconfigured front doors idle and say why.statusanddoctorwork.- Against the running container,
tools/list(31 tools),exec,session_*andfs_*pass over the unix socket, and over HTTP with a bearer token. Both protocol versions work: 2026-07-28 stateless and the 2025-11-25 handshake (tests/e2e). - Acceptance, route
mcpand routessh(run inside the container, phase 1, then phase 2 from a new process): - Checks 1–3 pass: uid 1000, Ubuntu 26.04, the file hash matches the host's copy, and the dependency runs.
- Check 5's mechanics pass: the session is still running after the reconnect, and the marker exists.
- Checks 4 and 5 still fail because the node isn't enrolled yet.
acceptance recreatepasses 5/5: home and~/.bash_historypersist, the boot identity changes, and old sessions reportlost (container restarted at …). The tailnet identity part was skipped (not enrolled).- YOLO:
- It is refused without a fresh backup record.
- With one, it starts with the per-subtree read-only
/host. Writes fail even as root, propagation isprivate,/etc/shadowreads as 0 bytes,~/.sshis masked, and the host tailscaled state and Docker data-root are left out. - It halts itself at the TTL, with an audit entry, and the next
upis Regular.
Spike outcomes are in docs/adr/spike-t0{1,2,3,7,8}-*.md and docs/adr/spike-t16-*.md. Other implementation decisions are in docs/adr/0001-sandbox-implementation-decisions.md.
Security findings to act on
- Install the egress firewall before enrolling (
host/firewall, step 1 below). A Docker bridge container can otherwise reach whatever the host can: its LAN, its own services and, on a host that is itself a tailnet node, that tailnet. Host-specific findings are in the internal ops notes. - YOLO shows the host read-only. That includes data directories and certificates, wherever file permissions allow. Agents run as uid 1000; root-only files stay unreadable to them, but tailscaled and the runner run as root in the container. Add anything sensitive to
[mounts] extra_denylist: denylisted subtrees are left out of/host. - Inside the sandbox,
UV_PROJECT_ENVIRONMENT=.venv-sandbox, souvnever rebuilds a project's host.venvagainst container paths. Make sure each project's.gitignorecovers.venv-sandbox(or.venv*).
Quick start (host)
cd /mnt/storage/projects/headmesh/sandbox
go build -o ~/.local/bin/headmesh-sandbox ./cmd/headmesh-sandbox docker buildx bake -f image/docker-bake.hcl sandbox-local # headmesh-sandbox:dev headmesh-sandbox init # /mnt/storage/headmesh/sandbox $EDITOR /mnt/storage/headmesh/sandbox/config/sandbox.toml # image = "headmesh-sandbox:dev" until GHCR has a release headmesh-sandbox scan-secrets # review, then --apply headmesh-sandbox token create claude-code-mac > ~/.config/headmesh/sandbox-token headmesh-sandbox render --diff headmesh-sandbox up headmesh-sandbox status headmesh-sandbox doctor
Other commands: down [--yolo|--all], recreate, logs [service|audit] [-f], shell [--root], attach (watch agents in tmux), backup, token list|revoke, acceptance run|verify|report|recreate, and agent run --provider openai.
Secrets live in /mnt/storage/headmesh/sandbox/secrets/ , mode 0600; an empty file means that front door is off. They are never mounted. The CLI passes them to docker compose through the environment, and Compose copies each one into the container as root:root 0400 (spike T-1).
Steps that need Aaryn
Each step needs sudo, a production change or an account. None of them has been done.
1. Host (sudo)
- Install the egress firewall and the home backup units, then run a first backup. The exact commands are in
host/README.md. Check the result withheadmesh-sandbox doctor; it should showegress firewall ✓andhome backup ✓. - Install restic (plan §5.3). Sleep targets are already masked (
doctorchecks this).
2. Headscale policy (production ACL change; maintenance window)
This builds on plan §5.2 and §6.6. Add the tags and grants to api/infra/headscale/policy.hujson in the Xcelsior repo. Run headscale policy check first; the policy tests must pass.
"tagOwners": { "tag:sandbox": ["group:admin"], "tag:sandbox-yolo": ["group:admin"] },
"grants": [ // Regular: only the private services you list (keep sandbox.toml [mode.regular] reach in sync). { "src": ["tag:sandbox"], "dst": ["tower-server"], "ip": ["tcp:11434"] }, { "src": ["tag:sandbox-yolo"], "dst": ["*"], "ip": ["*"] }, ], "ssh": [ { "action": "accept", "src": ["xcelsior@"], "dst": ["tag:sandbox", "tag:sandbox-yolo"], "users": ["agent"] }, ],
xcelsior@ must mean Aaryn's own devices only. That's true once the provider hosts are tagged (§5.2).
3. Enroll the node
# On prod-hetzner: a single-use pre-auth key that carries the tag (Headscale 0.29.6).
sudo headscale preauthkeys create --user --tags tag:sandbox --expiration 1h
On the ASUS: store it and recreate.
install -m 600 /dev/stdin /mnt/storage/headmesh/sandbox/secrets/ts_authkey # paste, then Ctrl-D headmesh-sandbox recreate headmesh-sandbox status # tailnet Running, node asus-sandbox, dns-check ok
- The key alone sets the tags.
--advertise-tagsis never passed, because Headscale rejects it with a tagged key (spike T-8).tailscale-upchecks the enrolled tags againstTS_TAGSinstead. tailscale upruns with the key only while no state exists, so later restarts never re-authenticate. Tagged nodes don't expire. Clear the key file after enrollment.- YOLO is a separate node (
asus-sandbox-yolo,tag:sandbox-yolo) with its own state directory. Enroll it the same way, with a tag:sandbox-yolo key, during the firstup --yolo.
4. Front doors
MCP over the tailnet (Claude Code, any MCP client):
headmesh-sandbox token create claude-code-mac # prints hms_… once
claude mcp add --transport http sandbox http://asus-sandbox.mesh.xcelsior.ca:8780/mcp \ --header "Authorization: Bearer hms_…"
Tokens are scoped (sandbox:read|exec|write|admin) and can be revoked: headmesh-sandbox token revoke claude-code-mac takes effect within seconds. OAuth (RFC 9728 metadata is already served at /.well-known/oauth-protected-resource/mcp) arrives with the Headmesh authorization server in M3.
Claude self-hosted runner (plan §7.1):
- Turn on "Allow self-hosted environments" in claude.ai admin settings.
- Put the environment secret in
secrets/claude_env_secret, and fillsecrets/github_tokenwith a fine-grained PAT. - Set
[entrypoints.claude_runner] enabled = true, then runheadmesh-sandbox up.
The runner runs as root. Every session goes through claude-session, which drops to agent with setpriv, so sessions can't read the secret (spike T-1). The checkout hook links repos mapped in [repos] to the shared working copy, on main. One live check is still pending: what the runner puts in the sessions' environment.
Claude Remote Control (plan §7.2):
- Set
[entrypoints.claude_rc] enabled = true, then runheadmesh-sandbox up. - Run
headmesh-sandbox shell, thenclaude auth login(a full claude.ai login), trust/home/agent, and runclaude remote-controlonce to answer "Enable Remote Control? y". - Run
headmesh-sandbox recreate.
Never set DISABLE_TELEMETRY, DO_NOT_TRACK, CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC or DISABLE_GROWTHBOOK: Remote Control refuses to start with any of them (spike T-2). Whether it restarts on its own without a TTY still needs checking after this login.
Codex over Tailscale SSH (plan §7.3):
- This needs the
sshrule from step 2. - In Codex desktop, add the remote host
agent@asus-sandbox.mesh.xcelsior.ca. - Smoke test:
ssh agent@asus-sandbox.mesh.xcelsior.ca codex --version. - Tailscale SSH works inside the container (spike T-3). Codex desktop itself is untested.
OpenAI Secure MCP Tunnel (plan §7.4):
- In the Platform, create a Tunnel and a runtime key with Read+Use only. Put the key in
secrets/openai_tunnel_keyand the id in[entrypoints.openai_tunnel] tunnel_id. Setenabled = true, then runup. - Create a token for the tunnel route:
headmesh-sandbox token create chatgpt-tunnel --route tunnel(exec ≤ 110 s, responses ≤ 8 MiB). - In ChatGPT: Plugins → Add custom MCP server → Connection: Tunnel, with bearer auth using that token.
Codex `exec-server` via the Agents API (plan §7.6):
- Store the application key outside the sandbox. The CLI runs as you, so use
secrets/openai_app_key(0600; never mounted, and denylisted from YOLO's/host)./etc/headmesh/openai-app.keyis also accepted if you can read it. - Put the environment key (Agents tab, every other permission None) in
secrets/openai_env_key. - Run:
headmesh-sandbox agent run --provider openai --repo xcelsior \
--prompt-file sandbox/tests/acceptance/prompt.md
The executor runs as agent in the repo with --linux-sandbox-pid-namespace inherit and full access inside the container. Codex's bubblewrap sandbox can't run under the container's seccomp and AppArmor profiles, so the container is the boundary (spike T-16). The environment key reaches the executor through stdin, and the transcript goes to logs/agent-runs/ .jsonl.
5. Acceptance (plan §6.15)
headmesh-sandbox acceptance run --route mcp \
--url http://asus-sandbox.mesh.xcelsior.ca:8780/mcp --token-file ~/.config/headmesh/sandbox-token ssh agent@asus-sandbox.me