Guide 02 · templates: claude, claude-terminal, codex, opencode, amp, grok
Run Claude Code & autonomous coding agents safely
A coding agent wants a full shell, a repo checkout, and hours of uninterrupted time — exactly what you don't want on your laptop or prod boxes. PillDrops ships ready templates for the five major agent CLIs; the agent gets root in its own microVM, you get a wall.
1
Boot an agent box with real resources
$ pilldrops sandbox create --template claude-terminal \ --vcpu 4 --mem 8192 --storage 20480 --timeout 86400 sb_a41f88 running claude-terminal 4 vCPU · 8 GB
2
Push the repo and credentials in
$ pilldrops cp ./my-service sb_a41f88:/work $ pilldrops exec sb_a41f88 -- bash -c 'echo "$ANTHROPIC_API_KEY" > /root/.anthropic'
3
Set the agent loose, watch it live
$ pilldrops exec sb_a41f88 -- bash -c \ 'cd /work && claude -p "fix the failing tests and refactor the auth module"' $ pilldrops logs sb_a41f88 -f # stream everything it does
4
Pull the diff out, judge it, destroy the box
$ pilldrops exec sb_a41f88 -- bash -c 'cd /work && git diff' > agent.patch $ pilldrops history sb_a41f88 # exact runtime + cost of the run $ pilldrops sandbox rm sb_a41f88
Tip: pause overnight instead of destroying —
pilldrops sandbox pause stops
compute billing but keeps the agent's working state for the morning.