This is a template to run Claude Code with full priviledges in an isolated enviroment.
It is based on Podman Compose.
Advantages:
- works for any type of agent which comes with a TUI: OpenCode, Ralph, Junie, etc.
Disadvantages:
- Need to install required software beforehand
- Can run the agent as root to allow it to install software, but it does not persist across reboots
- Install WSL (as administrator):
wsl --install - Install Podman Desktop with the Compose extension from https://podman-desktop.io/
- Reboot
- In Podman Desktop: click containers and follow instructions until you can start the demo container quay.io/podman/hello. Open the logs of the demo container to verify that it worked.
- Alternatively, run the commands:
podman machine init podman machine start podman run quay.io/podman/hello
- Alternatively, run the commands:
- Open this project in a terminal, run
podman compose run opencode. The agent terminal interface should be running. - Bob's your uncle.