© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Friends of the Crustacean 🦞🤝FotC�
Friends of the Crustacean 🦞🤝•3d ago•
27 replies
Nathan Carter

Failing to set up agents.defaults.sandbox.docker.binds using docs

✅Solved
Just getting started with OpenClaw running locally on my Mac, model is Claude 4.6 through GitHub Copilot subscription.
Reading https://docs.openclaw.ai/gateway/sandboxing I see that one can sandbox OpenClaw's use of tools, which sounds like a smart idea. So I altered my .openclaw/openclaw.json to include the settings I find there.
I'd like to enable it to read/write from certain project folders elsewhere on my computer, selectively, so I'm trying to use the docker.binds feature documented there.
Specifically, inside agents.defaults, I have this:
"sandbox": {
"mode": "all",
"scope": "agent",
"workspaceAccess": "rw",
"docker": {
"binds": ["/Users/ncarter/path/to/myproject:/myproject:rw"]
}
}
But whenever I ask OpenClaw to take a look in the folder in question, it reports a "sandbox boundary checks failed" concern. The paths aren't wrong, because when I get the paths wrong it's a different error. OpenClaw itself doesn't know how to help me, and I've re-read that docs page repeatedly and can't see what I'm missing. Also, the FAQ at https://docs.openclaw.ai/help/faq#how-do-i-bind-a-host-folder-into-the-sandbox just repeats the docs, so that didn't help.
Perhaps based on https://docs.openclaw.ai/help/faq#can-agents-work-outside-the-workspace, I should just be telling the agent that its workspace is the folder for my project? But wouldn't that mean I have to keep editing the config every time I want to switch which project I'm working on?
Any tips? Thanks, community!
Solution
That log is super actionable: you’re past TCC now — you’ve hit OpenClaw’s sandbox bind security policy.

What’s happening

By default, OpenClaw only allows sandbox bind-mount sources that live under the agent’s workspace root(s). In your case, the allowed root is:

-
/Users/ncarter/.openclaw/workspace
/Users/ncarter/.openclaw/workspace


So a bind like:

-
/Users/ncarter/GitHub/myprojectname:/myprojectname:rw
/Users/ncarter/GitHub/myprojectname:/myprojectname:rw


gets blocked as “outside allowed roots”.

This is intentional: bind mounts are basically “poke a hole through the sandbox”, so OpenClaw forces an explicit opt-in before it’ll let you mount arbitrary host paths.

---
Jump to solution
Friends of the Crustacean 🦞🤝 banner
Friends of the Crustacean 🦞🤝Join
The AI that actually does things. Emails, calendar, home automation - all from your favorite chat app. New shell, ready to help. The lobster way.
129,194Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements
Recent Announcements
Krill 🦐

Stats: +442 / -147 (files changed: 71)

Krill 🦐 · 1h ago

Krill 🦐

## Freshbits — release prep + Gemini tweaks ### Fixes - [#39508](https://github.com/openclaw/openclaw/pull/39508) [c381034](https://github.com/openclaw/openclaw/commit/c3810346f) CLI: avoid false update restart failures without listener attribution - [e0f80cf](https://github.com/openclaw/openclaw/commit/e0f80cf0e) fix(ui): align control-ui device auth token signing - [06ffef8](https://github.com/openclaw/openclaw/commit/06ffef846) fix(ci): repair zalouser CI failures ### Features - [59102a1](https://github.com/openclaw/openclaw/commit/59102a1ff) fix: add gemini 3.1 flash-lite support - [5d22bd0](https://github.com/openclaw/openclaw/commit/5d22bd029) fix: add google flash-lite forward compat ### Chore - [0521784](https://github.com/openclaw/openclaw/commit/05217845a) build: bump version to 2026.3.8 - [3896471](https://github.com/openclaw/openclaw/commit/389647157) build: update stable appcast release URL - [c217237](https://github.com/openclaw/openclaw/commit/c217237a3) style(daemon-cli): format lifecycle test - [42a1394](https://github.com/openclaw/openclaw/commit/42a1394c5) build: prepare 2026.3.7 release

Krill 🦐 · 1h ago

Shadow

<@&1471741366311583785> https://x.com/openclaw/status/2030522386894946620 https://x.com/openclaw/status/2030522692147830966

Shadow · 1h ago

Similar Threads

OPENCLAW_SANDBOX=1 ./docker-setup.sh failing
Friends of the Crustacean 🦞🤝FotC�Friends of the Crustacean 🦞🤝 / help
6d ago
Failing to set up Tailscale serve
Friends of the Crustacean 🦞🤝FotC�Friends of the Crustacean 🦞🤝 / help
2mo ago
how to remove agents.defaults.models
Friends of the Crustacean 🦞🤝FotC�Friends of the Crustacean 🦞🤝 / help
3w ago
agents.defaults.heartbeat.every config not being applied - defaults to 60s
Friends of the Crustacean 🦞🤝FotC�Friends of the Crustacean 🦞🤝 / help
2mo ago