@data-fair/tool-ai-sandbox
v0.2.1
Published
Run Claude Code and OpenCode in a Podman-based sandbox
Readme
@data-fair/tool-ai-sandbox
Run AI coding tools (Claude Code, OpenCode) inside a Podman-based sandbox with network access but filesystem isolation.
Install
npm i -g @data-fair/tool-ai-sandboxRequires Podman on the host.
Usage
# Run Claude Code in the current directory
df-ai-sandbox claude
# Run OpenCode
df-ai-sandbox opencode
# Open a shell in the sandbox
df-ai-sandbox shellUse -e VAR (repeatable) to forward environment variables to the container.
How it works
The CLI pulls a pre-built container image and runs your chosen tool inside it with:
- The current directory mounted as
/workspace - Host git config and tool state directories bind-mounted
--userns=keep-idfor correct file ownership--network=hostfor API access
Contributing
See CONTRIBUTING.md.
