CLI Sandbox — DevOps skill for Claude Code
claude, codex, pi CLI sandbox docker container.
How to install CLI Sandbox
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open libops/cli-sandbox and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What CLI Sandbox does
claude, codex, pi CLI sandbox docker container.
Alternatives in DevOps
- Claudable — Claudable is an open-source web builder that leverages local CLI agents, such as Claude Code, Codex, Gemini CL 4k ★
- Codeg — Aggregate and browse AI coding agent sessions (Claude Code, Codex, Gemini CLI, etc.) in one place 850 ★
- Zhikuncode — Codex/Claude Code/Cursor的开源增强版,专注一句话实现复杂长程任务(教育、编程、办公、生活、娱乐、游戏) 473 ★
README
cli-sandbox
Run `claude`, `codex`, or `pi` in a docker container.
The image defaults to the managed Task Agent egress profile. That profile allows one operator-configured model gateway IPv4/TCP tuple, blocks runtime DNS, and drops all IPv6 traffic. Broader direct-provider access is available only through an explicit interactive profile that is not a confidentiality boundary.
Requirements
- docker
- With Docker's default capability set, pass
--cap-add=NET_ADMIN --cap-add=NET_RAWso the image can configure the firewall. - If you also use
--cap-drop=ALL, add back exactlyNET_ADMIN,NET_RAW,SETGID, andSETUID. The container starts asnode; the latter two are required only for the constrainedsudotransition that runs firewall bootstrap. The sudo rule is revoked before the requested CLI starts, and the CLI remains an unprivileged process with no effective, permitted, or ambient capabilities.
- With Docker's default capability set, pass
- Managed runs must provide
TASK_AGENT_MODEL_BASE_URLwith the literal IPv4 address provisioned for the project's model-gateway Private Service Connect endpoint. - You will need to mount the codebase you want to work on inside the container
- To persist your auth and settings for gemini and claude, you'll want to mount those directories into
/home/node(see usage below)
Usage
CODE_CLI=claude
cd /path/to/codebase
docker run \
-v $HOME/.$CODE_CLI:/home/node/.$CODE_CLI \
--cap-add=NET_ADMIN --cap-add=NET_RAW \
-e CLI_SANDBOX_EGRESS_PROFILE=interactive \
-v ./:/workspace \
-w /workspace \
--rm -it \
ghcr.io/libops/cli-sandbox:main \
"$CODE_CLI"
# chit chat
Task Agent model gateway
`managed` is the default profile. It requires `TASK_AGENT_MODEL_BASE_URL` and accepts only a literal IPv4 authority, matching the per-project Private Service Connect address provisioned by the LibOps platform:
docker run \
--cap-drop=ALL \
--cap-add=NET_ADMIN \
--cap-add=NET_RAW \
--cap-add=
Related Skills
Antigravity Sandbox
Lightweight CLI manager for Docker SBX and AI coding agents (Omp, Agy, Opencode, Prime, Codex, Claude, etc). B
AI Dev Container
devc creates isolated, sandboxed Docker containers for AI coding agents (Claude Code, Codex, Gemini CLI, Openc
Claude Pod
Docker sandbox for the Claude Code CLI. Runs Claude against one project folder — including with --dangerously-
Hort
Sandbox any CLI AI agent so it runs unrestricted without touching your machine. Written in Rust, daemonless, n
Viwo CLI
by Hal Shin - Run Claude Code in a Docker container with git worktrees as volume mounts to enable safer usage
Jvsl.Env.Agents.Code Server
A code-server dev container for agent work: the Claude Code CLI sandboxed by default with ai-jail, opt-in ai-m
Related Agents
Developer Overview
code-container (container) creates isolated Docker environments for AI coding harnesses (Claude Code, OpenCode
Tsk - AI Agent Task Manager And Sandbox
by dtormoen - A Rust CLI tool that lets you delegate development tasks to AI agents running in sandboxed Docke
Codex Runner
codex CLI(codex exec / codex exec resume)を最後まで走り切らせる専任エージェント。呼び出し元(メイン Claude / スキル)からプロンプト・model・effort・sandb