Skip to content

About

A Lightweight Bash Execution Sandbox

Resources

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

lite-sandbox

lite-sandbox gives AI coding agents a bash tool to use instead of their built-in shell, so they can run commands without a permission prompt for each one. Rather than matching commands with regexps or asking an LLM to judge them, it parses every command into an AST and checks the programs, flags, and paths it finds.

Quick start

curl -fsSL https://github.com/gartnera/lite-sandbox/raw/main/install.sh | sh

Try it for one session first. This doesn't touch your agent configuration:

lite-sandbox launch claude

If you like it, configure your agents permanently:

lite-sandbox install

This sets up every supported agent it finds. Run lite-sandbox install --help for options.

All agents share one sandbox config file, so you can switch agents without reconfiguring anything.

The default is strict: only allowlisted commands run, and toolchains like Go, Rust, and uv are opt-in. To start looser and tighten over time, see incremental adoption.

Agent support

Claude Code Codex CLI opencode v1 opencode v2 Crush Grok Build pi
Sandboxed bash tool, built-in shell blocked ✅ ✅ ✅ ✅ ✅ ✅ ✅
Built-in file tools confined to sandbox paths --with-tool-hook --with-tool-hook ✅ ✅
AST-check the built-in shell (--bash-ast-hook-mode) ✅ ✅ ✅ ✅
Config requests ✅ ✅
lite-sandbox launch ✅ ✅ ✅ ✅ ✅ ✅

Documentation

About

A Lightweight Bash Execution Sandbox

Resources

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages