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 organized into command groups, each covering a distinct area of sandbox management. This reference lists every command with its flags, arguments, and working examples drawn directly from the source. All examples assume you have already configured the CLI with osb config init — see the CLI Overview for setup instructions.
Global Flags
These flags apply to the rootosb command and override any config file or environment variable setting for the current invocation.
| Flag | Description |
|---|---|
--api-key | Override the API key for authentication (OPEN_SANDBOX_API_KEY env var). |
--domain | Override the server domain (e.g. localhost:8080) (OPEN_SANDBOX_DOMAIN env var). |
--protocol | Protocol to use: http or https. |
--request-timeout | HTTP request timeout in seconds (integer). |
--use-server-proxy / --no-use-server-proxy | Route execd and endpoint traffic through the sandbox server proxy. |
--config | Path to an alternate config file. |
-v, --verbose | Enable verbose/debug output. |
--no-color | Disable colored output. |
-o / --output is per-command, not global. Pass it after the subcommand name (e.g. osb sandbox list -o json).osb sandbox
sandbox create
sandbox create
defaults.image in the config file.| Flag | Description |
|---|---|
--image, -i | Container image (e.g. python:3.12). Uses defaults.image from config if omitted. |
--timeout, -t | Sandbox lifetime: duration like 10m or 1h, none for manual cleanup, or omit to use config/SDK default. |
--entrypoint | Entrypoint argv item. Repeat to build the full list. |
--env, -e | Environment variable as KEY=VALUE. Repeatable. |
--metadata, -m | Metadata key-value pair as KEY=VALUE. Repeatable. |
--extension | Extension parameter as KEY=VALUE. Repeatable. |
--resource | Resource limit as KEY=VALUE (e.g. cpu=1, memory=2Gi). Repeatable. |
--image-auth-username | Registry username for a private image. |
--image-auth-password | Registry password or token for a private image. |
--network-policy-file | Path to a network policy JSON file. |
--volumes-file | Path to a volumes JSON file (list of volume objects). |
--credential-proxy | Enable Credential Vault transparent proxy. Requires --network-policy-file. |
--skip-health-check | Skip waiting for sandbox readiness. |
--ready-timeout | Max time to wait for readiness (e.g. 30s). |
create commands can omit the flags:sandbox list
sandbox list
| Flag | Description |
|---|---|
--state, -s | Filter by sandbox state (e.g. running, paused). Case-insensitive. Repeatable. |
--metadata, -m | Metadata filter as KEY=VALUE. Repeatable. |
--page | Page number (1-indexed). |
--page-size | Items per page. |
sandbox get
sandbox get
| Argument | Description |
|---|---|
sandbox-id | The sandbox ID returned by sandbox create or sandbox list. |
sandbox kill
sandbox kill
sandbox pause
sandbox pause
sandbox resume
sandbox resume
| Flag | Description |
|---|---|
--skip-health-check | Skip waiting for sandbox readiness after resume. |
--resume-timeout | Max time to wait for readiness after resume (e.g. 30s). |
sandbox renew
sandbox renew
| Flag | Description |
|---|---|
--timeout, -t | Required. New TTL duration (e.g. 30m, 2h). |
sandbox health
sandbox health
sandbox metrics
sandbox metrics
| Flag | Description |
|---|---|
--watch | Stream metrics updates in real time. |
sandbox endpoint
sandbox endpoint
| Flag | Description |
|---|---|
--port, -p | Required. The port number to resolve to an endpoint URL. |
osb command
command run
command run
-- to separate osb flags from the sandbox command payload.Foreground (default): streams stdout and stderr directly to your terminal. Only -o raw is accepted.-o table, json, or yaml.| Flag | Description |
|---|---|
--background, -d | Run in background and return an execution ID. |
--workdir, -w | Working directory inside the sandbox. |
--timeout, -t | Command timeout (e.g. 30s, 5m). |
command status
command status
command logs
command logs
| Flag | Description |
|---|---|
--cursor | Integer cursor for incremental log reads. |
command interrupt
command interrupt
command session (persistent shell)
command session (persistent shell)
session run calls.session create flags:| Flag | Description |
|---|---|
--workdir, -w | Initial working directory for the session. |
session run flags:| Flag | Description |
|---|---|
--workdir, -w | Working directory override for this run. |
--timeout, -t | Command timeout (e.g. 30s, 5m). |
osb file
file write
file write
-c or pipe it from stdin.| Flag | Description |
|---|---|
--content, -c | Content to write. Reads from stdin if omitted. |
--encoding | File encoding (default: utf-8). |
--mode | Permission mode as an integer (e.g. 644, 755). |
--owner | File owner. |
--group | File group. |
file cat
file cat
| Flag | Description |
|---|---|
--encoding | File encoding (default: utf-8). |
-o | Only raw is supported. |
file upload
file upload
| Argument | Description |
|---|---|
local_path | Path to the local file (must exist). |
remote_path | Destination path inside the sandbox. |
file download
file download
| Argument | Description |
|---|---|
remote_path | Source path inside the sandbox. |
local_path | Destination path on the local filesystem. |
file search
file search
| Flag | Description |
|---|---|
--pattern, -p | Required. Glob pattern to match filenames. |
file info
file info
file chmod
file chmod
| Flag | Description |
|---|---|
--mode | Required. Permission mode as an integer (e.g. 755, 644). |
--owner | File owner. |
--group | File group. |
file replace
file replace
| Flag | Description |
|---|---|
--old | Required. The string to search for. |
--new | Required. The replacement string. |
file rm and file mv
file rm and file mv
file mkdir and file rmdir
file mkdir and file rmdir
file mkdir flags:| Flag | Description |
|---|---|
--mode | Directory permission mode as an integer. |
--owner | Directory owner. |
--group | Directory group. |
osb egress
egress get
egress get
egress patch
egress patch
ACTION=TARGET pairs.| Flag | Description |
|---|---|
--rule | Required. Rule in allow=TARGET or deny=TARGET form. Repeatable. |
osb diagnostics
--scope is required for all diagnostics commands. Common scopes for logs are lifecycle (manager logs) and container (sandbox stdout). Common scopes for events are lifecycle and runtime.
diagnostics logs
diagnostics logs
| Flag | Description |
|---|---|
--scope, -s | Required. Log scope: lifecycle, container, or a server-defined scope. |
-o raw prints the inline log text, or the content URL if the diagnostic is delivered as a temporary URL.diagnostics events
diagnostics events
| Flag | Description |
|---|---|
--scope, -s | Required. Event scope: lifecycle, runtime, or a server-defined scope. |
devops inspect / devops summary (legacy)
devops inspect / devops summary (legacy)
osb diagnostics for stable API-backed output.osb config
config init
config init
~/.opensandbox/config.toml with empty values.--config at the root level:config set
config set
config show
config show
osb skills
skills list
skills list
skills show
skills show
skills install
skills install
already_present or updated instead of prompting.| Flag | Description |
|---|---|
--target, -t | Required. Target agent tool: claude, cursor, codex, copilot, windsurf, cline, opencode, or all. |
--scope | Required. project (current directory) or global (home directory). |
--all-builtins | Install all five bundled skills at once. |
--force, -f | Accepted for compatibility. Installs are already non-interactive and idempotent. |
skills uninstall
skills uninstall
| Flag | Description |
|---|---|
--target, -t | Required. Target agent tool (same choices as install). |
--scope | Required. project or global. |
osb credential-vault
credential-vault commands
credential-vault commands
--credential-proxy and an explicit --network-policy-file before writing vault state.