Manage Mounts manage-mounts
Configure which host directories agent containers can access. View, add, or remove mount allowlist entries. Triggers on "mounts", "mount allowlist", "agent access to directories", "container mounts".
- Our test
- 7/10✓ Verified
- tested Dec 6, 2026
- GitHub stars
- 31k
- nanocoai/nanoclaw
- Added by
- 0
- members
- Updated
- Dec 6
- commit 7189cc5
- Content
- 1 file
- no scripts · 2 KB
- License
- MIT
- free to use
What our test found
The skill gives a clear workflow and sensible read-only default, but it should explicitly require preserving existing settings before using a forced overwrite.
Limits spotted
- Does not explain how to merge additions or removals while preserving existing blockedPatterns and other entries.
- Does not specify safeguards for sensitive paths, symlinks, or path expansion.
- Relies on NanoClaw project commands being available in the working directory.
name: manage-mounts description: Configure which host directories agent containers can access. View, add, or remove mount allowlist entries. Triggers on "mounts", "mount allowlist", "agent access to directories", "container mounts".
Manage Mounts
Configure which host directories NanoClaw agent containers can access. The mount allowlist lives at ~/.config/nanoclaw/mount-allowlist.json.
Show Current Config
cat ~/.config/nanoclaw/mount-allowlist.json 2>/dev/null || echo "No mount allowlist configured"Show the current config to the user in a readable format: which directories are allowed, and whether each is read-only or read-write.
Add Directories
Ask which directories the user wants agents to access. For each path:
- Validate the path exists
- Ask if it should be read-write (
allowReadWrite: true) or read-only (allowReadWrite: false, the safer default)
Build the JSON config and write it:
pnpm exec tsx setup/index.ts --step mounts --force -- --json '{"allowedRoots":[{"path":"/path/to/dir","allowReadWrite":true}],"blockedPatterns":[]}'Use --force to overwrite the existing config.
Remove Directories
Read the current config, show it, ask which entry to remove, then write the updated config through the same write path (build the trimmed JSON and pass it to --step mounts --force -- --json):
pnpm exec tsx setup/index.ts --step mounts --force -- --json '{"allowedRoots":[],"blockedPatterns":[]}'Reset to Empty
pnpm exec tsx setup/index.ts --step mounts --force -- --emptyAfter Changes
The allowlist is read fresh when a container is spawned, so new mounts apply to newly spawned containers automatically — no service restart needed.
To apply the new config to a group that already has a running container, restart just that group:
ncl groups restart --id <group-id>