SANDBOX
A microVM sandbox for every agent session
Each agent session gets a temporary virtual machine of its own, with root access inside. The agent can install whatever its task needs, and the VM is gone when the session ends.
Inside and outside the VM
Inside: root and Docker
The agent sees the task’s working copy and can install packages. Coding sessions also get their own Docker engine.
Outside: your credentials
Your SSH keys, git credentials and the agent service’s secrets stay on the host. The host pushes the commits once the session ends.
On your agent hosts
The VMs run on the agent hosts you add, which need KVM. Agent hosts and KVM
agent@vm:~$ sudo apt install ffmpeg
root inside; gone with the VM
agent@vm:~$ cat ~/.ssh/id_ed25519
no such file: keys stay out
Questions
Why does every agent host need KVM?
KVM runs the temporary virtual machine used for each agent session. The agent has root access inside it and can see the task’s working copy. The host’s home directory, git credentials and agent service secrets stay outside the VM. The host pushes commits after the session ends. Each agent host needs /dev/kvm for this setup.
How do agents get API keys and other secrets?
When an agent needs a key the project doesn’t have, it names the key and asks you to add it under Project settings → Secrets, as an environment variable or a file. The project’s sessions and checks get the secrets. Kanship masks the values in transcripts, comments and diffs, and refuses to push a commit that adds one. A value an agent reads can still reach your AI provider.
Does my code stay on my server?
Not necessarily. You host the app, database and workers, but agents send context to your AI providers and connect to your git remotes. Check your providers’ data policies before using private code.