TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/opensandbox-group/OpenSandbox/llms.txt
Use this file to discover all available pages before exploring further.
osb CLI is the primary terminal interface for OpenSandbox. Built on top of the OpenSandbox Python SDK, it covers every common workflow — creating and managing sandbox lifecycle, executing commands with foreground streaming or background tracking, reading and writing files, inspecting runtime egress policy, managing the Credential Vault, collecting diagnostics, and installing bundled skills directly into coding agents like Claude, Cursor, and Codex. If you need to automate a sandbox workflow from a script or shell, osb is the shortest path to get there.
Installation
Installopensandbox-cli using your preferred Python package manager. All three options install the same osb entry point.
Before You Start
Theosb CLI connects to a running OpenSandbox server. If you are working locally, start the server before running any osb commands.
See the Server Deployment guide for full setup instructions, including production configuration options.
Configuration
Before running sandbox commands, point the CLI at your server and authenticate with an API key. The default config file is~/.opensandbox/config.toml.
If you need a non-default config file path, pass
--config at the root level for the entire invocation:
~/.opensandbox/config.toml looks like this:
Config Resolution Priority
The CLI resolves connection and runtime settings in this order, from highest to lowest priority:- Root CLI flags —
--api-key,--domain,--protocol,--request-timeout,--config - Environment variables —
OPEN_SANDBOX_API_KEY,OPEN_SANDBOX_DOMAIN - Config file — defaults to
~/.opensandbox/config.toml - SDK defaults — built-in fallback values from the OpenSandbox Python SDK
Output Formats
Output format is selected per-command with the-o flag. Not every command supports every format — run <command> --help to see what is available.
| Format | Description |
|---|---|
table | Human-readable tables and panels (default for most commands) |
json | Machine-readable JSON, suitable for scripting and piping |
yaml | Machine-readable YAML |
raw | Unformatted text or streaming output (default for command run and file cat) |
Available Command Groups
| Group | Description |
|---|---|
osb sandbox | Lifecycle management (create, list, get, kill, pause, resume, renew, health, metrics, endpoint) |
osb command | Execute commands, background jobs, persistent shell sessions |
osb file | cat, write, upload, download, search, info, replace, chmod, rm, mv, mkdir, rmdir |
osb egress | Runtime egress policy (get, patch rules) |
osb diagnostics | Stable logs and events by scope |
osb devops | Low-level experimental diagnostics (inspect, summary) |
osb config | Init, show, set config values |
osb skills | Install and manage bundled AI agent skills |
osb credential-vault | Manage sandbox Credential Vault entries and bindings |
Agent Skills
The CLI ships with five bundled skills that teach coding agents how to use OpenSandbox effectively. Installing a skill writes the skill definition into the agent’s expected location so it is available immediately. Bundled skills:sandbox-lifecycle— creating, inspecting, and cleaning up sandboxescommand-execution— running foreground and background commandsfile-operations— reading and writing sandbox filesnetwork-egress— managing egress policysandbox-troubleshooting— collecting diagnostics and debugging
| Target | Install location |
|---|---|
claude | ./.claude/skills/ or ~/.claude/skills/ |
cursor | ./.cursor/rules/ or ~/.cursor/rules/ |
codex | ./.codex/skills/<name>/SKILL.md or ~/.codex/skills/<name>/SKILL.md |
copilot | ./.github/copilot-instructions.md or ~/.github/copilot-instructions.md |
windsurf | ./.windsurfrules or ~/.windsurfrules |
cline | ./.clinerules or ~/.clinerules |
opencode | ./.agents/skills/<name>/SKILL.md or ~/.agents/skills/<name>/SKILL.md |