nono-cli-0.9.0 is not a library.
nono-cli
CLI for capability-based sandboxing using Landlock (Linux) and Seatbelt (macOS).
Installation
Homebrew (macOS)
Cargo
From Source
Usage
# Allow read+write to current directory
# Separate read and write permissions
# Multiple paths
# Block network access
# Use a built-in profile
# Start an interactive shell inside the sandbox
# Check why a path would be blocked
# Dry run (show what would be sandboxed)
Built-in Profiles
| Profile | Command |
|---|---|
| Claude Code | nono run --profile claude-code -- claude |
| OpenCode | nono run --profile opencode -- opencode |
| OpenClaw | nono run --profile openclaw -- openclaw gateway |
Rollback
Rollback snapshots automatically exclude known regenerable directories (.git, target, node_modules, etc.) and any directory with more than 10,000 files to prevent hangs on large projects.
# Zero-flag usage — auto-excludes large directories
# Force-include an auto-excluded directory
# Exclude a custom directory from rollback
# Include everything (may be slow on large projects)
# Disable rollback entirely
Note: Rollback exclusion does not affect sandbox permissions. Excluded directories are still sandboxed — they just can't be rolled back.
Command Blocking
Dangerous commands are blocked by default:
| Category | Commands |
|---|---|
| File destruction | rm, rmdir, shred, srm |
| Disk operations | dd, mkfs, fdisk, parted |
| Permission changes | chmod, chown, chgrp |
| Privilege escalation | sudo, su, doas |
Override with --allow-command:
Documentation
License
Apache-2.0