Agents
The kvbox skill for coding agents, and what makes kvbox easy to drive from a script.
A box is a safe place to hand to an agent: a real VM, its own kernel, nothing of the host visible inside. The CLI is shaped so an agent can drive it without parsing prose.
A skill for coding agents
/kvbox/SKILL.md teaches an agent (Claude Code and others that read skills) the CLI: which command to reach for, the flags, the gotchas.
The installer (curl -fsSL https://kvbox.cloud/install.sh | bash) offers to add it for you when it finds Claude Code (~/.claude/skills), Codex or OpenCode (both read ~/.agents/skills), and a rerun refreshes it. Set KVBOX_SKILL=yes or KVBOX_SKILL=no to skip the question.
Or install it with skills, which asks which agents to add it to:
npx skills add https://kvbox.cloud/kvbox/SKILL.mdOr by hand, for Claude Code (use ~/.agents/skills/kvbox for Codex and OpenCode):
mkdir -p ~/.claude/skills/kvbox
curl -fsSL https://kvbox.cloud/kvbox/SKILL.md -o ~/.claude/skills/kvbox/SKILL.mdRerun either to update.
--json everywhere
Every command that lists or creates something takes --json and prints one object (or an array). The shape is documented at the top of each command's source file.
kvbox new --json
kvbox ls --json
kvbox snapshots ls --json
kvbox exec dev --json -- make # {"output": "...", "exit_code": N}Exit codes
kvbox exec exits with the command's status (124 after --timeout). Errors the user should see go to stderr as one line and a non-zero exit; a feature that is not built yet exits 2.
No prompts in scripts
Destructive commands (rm, snapshots rm) ask y/N on a terminal and require -y otherwise. An API key in KVBOX_TOKEN logs a program in without a prompt; kvbox login alone prints a link and a code for a person to approve in the web app, and waits up to 10 minutes: pass both on to your user. kvbox login -e <email> --password-stdin reads a password from stdin instead.
From your own code
An agent harness written in TypeScript can skip the CLI: the TypeScript SDK makes a box, runs commands in it and returns their exit code and output as objects.
const box = await kvbox.machines.create({ name: "task-42" });
await kvbox.machines.waitUntilReady(box.name);
const { exitCode, stdout } = await kvbox.machines.exec(box.name, "git clone https://github.com/acme/app && cd app && npm test");This site as text
/llms.txt lists every docs page with its description and URL, for an agent that reads the documentation.