coding-agent
What it does
Sets up a separate virtual machine where a coding agent can edit your project and install tools, while your computer stays protected. It is for developers who want an agent to run with full permissions.
When to use it
- ✓When you want a coding agent to run without asking for permission on every step.
- ✓When you want an agent's installs and experiments kept away from your own computer.
- ✓When you want a disposable environment that can still reach your project folder.
Skill link
https://github.com/smol-machines/smolvm/blob/main/docs/coding-agent/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Set up a safe virtual machine so Claude Code can run with full permissions on my project folder.”
5 new skills a week. 1 minute to read.
How it works
A Smolfile sets up the machine and mounts your project. You start the machine and run the agent inside it, and file edits appear in your project folder on your computer.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
A coding agent in a machine
Verified on smolvm v1.27.4 on Linux x86_64, 2026-10-14, and on v1.29.0 on macOS arm64, 2026-10-15. Done means the agent runs inside the machine from the project directory, its edits appear on the host, and git works on the mounted repo.
Procedure
1. Copy the Smolfile into the project. Edit the npm install line in init to the agents you
use; any install command works.
cp docs/coding-agent/assets/agent.smolfile ./Smolfile
2. Create and start the machine. Pass API keys as references so they are read from your host at launch, never written to the machine record:
smolvm machine create --name agent -s Smolfile --secret-env ANTHROPIC_API_KEY=ANTHROPIC_API_KEY
smolvm machine start --name agent # first start runs init: under a minute once the image is pulled
The Smolfile forwards your SSH agent, so start needs SSH_AUTH_SOCK set on the host: without it,
it stops with ssh-agent: SSH_AUTH_SOCK is not set. Start one with eval $(ssh-agent), or delete
the [auth] block.
3. Run the agent.
smolvm machine exec --name agent -it -- claude --dangerously-skip-permissions
smolvm machine exec --name agent -it -- opencode
machine shell --name agent gives a shell in /workspace for anything else.
4. Check git. smolvm machine exec --name agent -- git status must print the repo's status,
not dubious ownership; if it does not, the safe.directory line in init did not run.
5. Stop or delete. machine stop --name agent keeps the installed agents for next time, and the
next start takes about a second. machine delete --name agent -f removes the machine; the project
stays on the host.
Notes
initruns once. Changing it later needs a new machine, or run the new commands withexec.- To keep the agent off your LAN and the host's ports, add
block_private = trueunder[network](from v1.28.1). SeeREADME.md. - An agent that needs Docker: add
"/var/lib/docker", "/var/lib/containerd"to[dev] volumes(from v1.28.1) and see docker-in-machine.
FAQ
Will the agent change files on my computer?
Edits to the mounted project folder show up on your computer. The agent runs inside the machine rather than directly on your system.
Which agents does it support?
The skill names Claude Code, OpenCode and Codex, and says any agent with an install command can work.
Does it need my SSH agent?
The Smolfile forwards your SSH agent, so the host needs one running, or you can delete that block from the file.
Details
Original description by the author
Runs a coding agent (Claude Code, OpenCode, Codex or any other) inside a persistent smolvm machine with the project mounted, so it can run with full permissions without touching the host. Use when someone wants to sandbox their coding agent, run it in skip-permissions or YOLO mode safely, or give it a disposable environment it can install anything into. Do not use it to run untrusted code with no network; use throwaway-machine for that.
repo: smol-machines/smolvm
Popularity
- GitHub stars
- 6.9k
- Ranking position
- #13715
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
branch-and-checkpoint
6.9kHelps your agent save a running smolvm virtual machine as checkpoints, restore it later, pause and resume it, and branch it into copies.
credentials
6.9kLets your agent call an API with your key while the key itself never enters its virtual machine, so untrusted code cannot read it.
dev-env
6.9kTeaches your agent to keep a smolvm dev machine with its tools installed, so it restarts quickly and keeps packages across sessions.
docker-in-machine
6.9kHelps your agent run a Docker daemon inside a smolvm virtual machine, so tests, builds and agents that start containers can work there.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.