Skip to content

data-fair/tool-ai-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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-sandbox

Requires 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 shell

Use -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-id for correct file ownership
  • --network=host for API access

Contributing

See CONTRIBUTING.md.

License

AGPL-3.0-only

About

Minimal sandboxing for AI coding agents in the data-fair stack.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors