stariov

Pluto Sandbox — Development skill for Claude Code

Development community

Run Claude Code in a rootless Podman sandbox under a seperate, locked user.

How to install Pluto Sandbox

This entry records only its repository, not the path inside it, so there is no exact command to give. Open stariov/pluto-sandbox and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Pluto Sandbox does

Run Claude Code in a rootless Podman sandbox under a seperate, locked user. Assumes the agent is compromised and limits what it can reach.

Alternatives in Development

  • Vibekit — A simple SDK for safely running Codex, Gemini CLI, and Claude Code in a secure sandbox 1.7k ★
  • Sandbox Init — You are the {{tentacleId}} tentacle agent — a specialist responsible for the work domain defined in your vault 1.4k ★
  • Sandbox-agent (Rivet) — Run Claude Code and other coding agents in sandboxes controlled over HTTP 1.2k ★

README

Claude Code in a Podman sandbox

Run Claude Code isolated from your own user account, built on one assumption: **the process running Claude Code is under an attacker's full control**, and the setup minimizes what that gets them. Claude runs in a rootless Podman container, owned by a separate, locked system user, and only sees the project you start it in.

Requirements

  • Linux (tested on Ubuntu 26.04)
  • Podman (rootless)
  • systemd and nftables (sudo apt install nftables if nft is missing)
  • sudo rights

Installation

git clone https://github.com/stariov/pluto-sandbox.git
cd pluto-sandbox
sudo ./install.sh

Running `install.sh` again is safe; use it to update the setup. If you request to delete Claude, `~/.claude` settings are kept.

Installed Git after `install.sh`, or answered "n" to the Git question? This will only affect new repos.

git config --global core.sharedRepository 0600
git config --global safe.bareRepository explicit

**Important:** installing claude after our install will shadow our command and launch unsandboxed claude. Check with `type -a claude` and look for pluto-sandbox in file.

If this setup is useful to you, please ⭐ star the project. Would make me happy.

Usage

**Important:** whatever you run from `/srv/pluto-projects` (scripts, `make`, `npm install`, …) runs with **your** rights, or root's with `sudo`. No container or VM can prevent that. Review code before running it.

mkdir /srv/pluto-projects/my-project
cd /srv/pluto-projects/my-project
claude
  • claude (or claude-pluto) only starts inside /srv/pluto-projects. Anywhere else it refuses.
  • Inside the sandbox, the current project appears as /projects. Other projects are not visible.
  • Git: a repo belongs to whoever creates it (git init/git clone). Yours are closed to Claude; Claude's are refused by your Git with dubious ownership. Never add a repo to safe.directory.
    • Repos from before the install: