Skip to main content

SandboxOS CLI

sandboxos (short alias: sbx) is the command-line interface for managing sandboxes. It's built for the common day-to-day flows:

  • create and manage sandboxes
  • run commands inside a sandbox
  • read and modify sandbox files
  • inspect runtime egress policy
  • collect low-level diagnostics
  • install sandbox skills for coding agents

It uses the opensandbox Python SDK under the hood and is the shortest path from a terminal to a working sandbox workflow.

Install

pip install sandboxos

or with a tool installer:

uv tool install sandboxos
# or
pipx install sandboxos

Confirm the install:

sandboxos --help
sandboxos --version

Configuration

The CLI reads connection settings, in order of precedence:

  1. Command-line flags (--api-key, --domain, --protocol, ...)
  2. Environment variables (SANDBOXOS_API_KEY, SANDBOXOS_DOMAIN, SANDBOXOS_PROTOCOL, SANDBOXOS_REQUEST_TIMEOUT, SANDBOXOS_USE_SERVER_PROXY)
  3. Config file at ~/.sandboxos/config.toml
sandboxos config init
sandboxos config set connection.domain localhost:8080
sandboxos config set connection.protocol http
sandboxos config set connection.api_key <your-api-key>
sandboxos config show -o json

Point at a non-default config for a whole invocation:

sandboxos --config /tmp/dev.toml config show -o json

Quick start

# Create a sandbox
sandboxos sandbox create --image python:3.12 --timeout 30m -o json

# Run a command inside it (payload after --)
sandboxos command run <sandbox-id> -o raw -- python -c "print(1 + 1)"

# Read/write a file
sandboxos file write <sandbox-id> /workspace/hello.txt -c "hello" -o json
sandboxos file cat   <sandbox-id> /workspace/hello.txt -o raw

# Clean up
sandboxos sandbox kill <sandbox-id> -o json

Command groups

  • sandboxos sandbox — lifecycle management
  • sandboxos command — command execution and persistent sessions
  • sandboxos file — file and directory operations
  • sandboxos egress — runtime egress policy
  • sandboxos diagnostics — stable diagnostics logs and events
  • sandboxos devops — experimental legacy diagnostics
  • sandboxos config — local CLI configuration
  • sandboxos skills — bundled skills for AI tools

Run sandboxos <group> --help for details.

Output formats

Output selection is command-scoped via -o: table (default), json, yaml, raw. Not every command supports every format — use --help on the specific command when in doubt.

Requirements

  • Python 3.10+
  • A reachable sandbox server
  • The opensandbox SDK (installed automatically)

License

Licensed under the Apache License, Version 2.0. See LICENSE.

Metadata

Release files for sandboxos 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sandboxos 0.1.1
File Size Uploaded
sandboxos-0.1.1.tar.gz 43.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sandboxos 0.1.1
File Interpreter ABI Platform
sandboxos-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 107.0 kB

Release files / sandboxos-0.1.1.tar.gz

Download URL sandboxos-0.1.1.tar.gz
Size 43.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e8cb455e56772c5d02d087f60aa2cc9848c35fff5a5cab6ddad40263d506cc45
BLAKE2b-256 checksum
How to use checksums
6c8eb495f98f8df921090f7aa743a360f6dcfd7cd66896d36d555f979c67e4f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / sandboxos-0.1.1-py3-none-any.whl

Download URL sandboxos-0.1.1-py3-none-any.whl
Size 63.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
78e3e0b754a36ea4bd697016b3820fb5330983d118bee818fabde082404c9075
BLAKE2b-256 checksum
How to use checksums
58752718856b571496bc5200a96b22c0a0973ce2388549752a7579f110119d2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page