Run Claude Code inside a podman container, wrapped by gVisor.
Project description
Run claude code in a gVisor sandbox, inside a container.
You need to have podman installed and ready, and be signed-in in claude-code on the host.
uvx trusted-agent claude --dangerously-skip-permissions "Do something"
Variants
Pick a pre-built image variant with --variant NAME (defaults to default):
default— node + python + common dev tools.nodejs— addspnpmandyarn.rust— adds the Rust stable toolchain (with clippy and rustfmt).android— adds JDK 17 and the Android SDK.
uvx trusted-agent --variant rust claude
Drop your own Dockerfile at ~/.config/trusted-agent/variants/<name>/Dockerfile to add a variant. User variants take precedence over bundled ones with the same name. To extend the lean base, start your file with FROM trusted-agent-default:latest.
Changelog
All notable changes to this project are documented in this file. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.7.2
Fixed
nodejsvariant build no longer collides with the pnpm/yarn corepack shims that ship innode:22-slim(npm install -gnow passes--force).
0.7.1
Fixed
trusted-agent --help/-hnow prints local usage and exits instead of building the image and forwarding the flag toclaudeinside the sandbox.
0.7.0
Added
- Image variants. The single Dockerfile is split into
default(lean base with Python),nodejs(adds pnpm + yarn),rust, andandroid. Pick one with--variant NAME. Users can drop their own variant at~/.config/trusted-agent/variants/<name>/Dockerfile; user variants take precedence over bundled ones.
Changed
- Image is now tagged
trusted-agent-<variant>:latestinstead oftrusted-agent:latest. The old image is no longer built and can be removed withpodman image rm trusted-agent:latest. defaultvariant no longer bundles the Rust toolchain or the Android SDK; use--variant rust/--variant androidto get them.
0.6.2
Added
- Render the changelog on the PyPI project page alongside the README, via the
hatch-fancy-pypi-readmebuild hook.
0.6.1
Added
- Mirror the host's
~/.claude/plugins/into the sandbox at container start so installed plugins are available without manual reinstall. Carries overenabledPluginsandextraKnownMarketplacesfrom the host's~/.claude/settings.jsoninto the projected user settings.
0.5.0
Added
- Bind-mount the git common dir for linked worktrees so git commands resolve inside the sandbox.
- Rust toolchain (stable, with clippy and rustfmt) and the Android SDK (cmdline-tools, platform-tools, API 34, build-tools 34.0.0) in the image.
0.3.0
Added
- Install
uv/uvxin the sandbox image. - README with basic usage.
0.2.0
Added
- First working version: run Claude Code inside a podman + gVisor sandbox with
a projected
~/.claude.json, projected credentials, and a/workspacebind-mount.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trusted_agent-0.7.2.tar.gz.
File metadata
- Download URL: trusted_agent-0.7.2.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41ef8e1c89e585ecfd27b3b93538118808bf682c2e444e56e44a5f166d3b1794
|
|
| MD5 |
a6c1f8b0de914ad251e5d5464c4c59e3
|
|
| BLAKE2b-256 |
3516fd87fe93d6dbfd1a6031dba90016092f599b7fa9293f3f12b42be75e1504
|
Provenance
The following attestation bundles were made for trusted_agent-0.7.2.tar.gz:
Publisher:
publish.yml on almet/trusted-agent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trusted_agent-0.7.2.tar.gz -
Subject digest:
41ef8e1c89e585ecfd27b3b93538118808bf682c2e444e56e44a5f166d3b1794 - Sigstore transparency entry: 1437492497
- Sigstore integration time:
-
Permalink:
almet/trusted-agent@5c1437268ef65741e5c4d3b704e52b9afbb8079e -
Branch / Tag:
refs/tags/v0.7.2 - Owner: https://github.com/almet
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5c1437268ef65741e5c4d3b704e52b9afbb8079e -
Trigger Event:
push
-
Statement type:
File details
Details for the file trusted_agent-0.7.2-py3-none-any.whl.
File metadata
- Download URL: trusted_agent-0.7.2-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
416535cc875d20ee37b623085ef773678598a5770b8bfd05be1b38ed46c9d07c
|
|
| MD5 |
ed9b3f6699298d74aaf6dc5afb6a3257
|
|
| BLAKE2b-256 |
0e2eda97bb61833ba3b7e88c4708a96b924cae315456fd6945ac2ea3d082762c
|
Provenance
The following attestation bundles were made for trusted_agent-0.7.2-py3-none-any.whl:
Publisher:
publish.yml on almet/trusted-agent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trusted_agent-0.7.2-py3-none-any.whl -
Subject digest:
416535cc875d20ee37b623085ef773678598a5770b8bfd05be1b38ed46c9d07c - Sigstore transparency entry: 1437492566
- Sigstore integration time:
-
Permalink:
almet/trusted-agent@5c1437268ef65741e5c4d3b704e52b9afbb8079e -
Branch / Tag:
refs/tags/v0.7.2 - Owner: https://github.com/almet
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5c1437268ef65741e5c4d3b704e52b9afbb8079e -
Trigger Event:
push
-
Statement type: