Catalog PyPI
PACKAGE EXPLORERView in registry

agent-leash

PyPI

Isolated sandbox for AI coding agents

Versions collected1
Direct dependencies6From release 0.13.0
Last observed20 Oct, 22:33 UTC

README

Version 0.13.0 documentation

agent-leash

Sandbox runner for AI coding agents:

  • Restricts filesystem access to the current directory
  • Custom allow-list to expose more directories as read-only or read-write
  • Intercepts all network traffic with interactive per-domain approval
  • Controls access to host services (podman, docker, ssh-agent, etc.)
$ pipx install agent-leash
$ aleash claude
Sandbox UI available on http://localhost:7612/

aleash demo

How it works

  • Filesystem — bubblewrap restricts the agent to the current working directory. The rest of the filesystem is read-only or hidden.
  • Network — mitmproxy intercepts all outbound HTTPS. Each new domain triggers a browser popup (and desktop notification). You choose: always allow, allow once, always block, or block once.
  • Web UI — Vue 3 + xterm.js frontend served on localhost:7612. Shows live terminal output, domain decisions

Requirements

ToolInstall
bwrap (bubblewrap)dnf install bubblewrap / apt install bubblewrap
xdg-dbus-proxydnf install xdg-dbus-proxy / apt install xdg-dbus-proxy
Python ≥ 3.11system or pyenv

mitmproxy is installed automatically as a Python dependency.

Usage

Pass arguments

aleash claude -- --dangerously-skip-permissions
aleash run python script.py --some-flag

Terminal size

By default the local terminal controls the PTY size. The browser shows the fixed-size terminal with scrollbars. Use --browser-master to invert this (browser FitAddon resizes the PTY):

aleash --browser-master claude

Profile override

aleash --profile generic claude   # run claude with the generic profile

Profiles

ProfileWhat it binds
claude~/.claude, ~/.claude.json, ~/.gitconfig, ~/.local/share/claude
opencode~/.opencode, ~/.gitconfig, and opencode config/cache dirs
genericnothing extra

claude and opencode are auto-detected by binary name. Use --profile to override.

Data

All state lives in CWD/.aleash/:

PathContent
CWD/.aleash/data.dbSQLite: sessions, terminal logs, domain decisions
~/.mitmproxy/mitmproxy CA cert (auto-generated on first run)

Delete CWD/.aleash/data.db to reset all history.

Contributing

See CONTRIBUTING.md.

License

MIT — see LICENSE.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.13.028 Jun 20266

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
mathieu-lacage/agent-leash

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:33 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:69e98cd917fd050ea92dea1f14b06cb0a6e1b17440643914a613c6054baa2a38