SandboxOS CLI - Command-line interface for managing sandboxes
Project description
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:
- Command-line flags (
--api-key,--domain,--protocol, ...) - Environment variables (
SANDBOXOS_API_KEY,SANDBOXOS_DOMAIN,SANDBOXOS_PROTOCOL,SANDBOXOS_REQUEST_TIMEOUT,SANDBOXOS_USE_SERVER_PROXY) - 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 managementsandboxos command— command execution and persistent sessionssandboxos file— file and directory operationssandboxos egress— runtime egress policysandboxos diagnostics— stable diagnostics logs and eventssandboxos devops— experimental legacy diagnosticssandboxos config— local CLI configurationsandboxos 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
opensandboxSDK (installed automatically)
License
Licensed under the Apache License, Version 2.0. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sandboxos-0.1.1.tar.gz.
File metadata
- Download URL: sandboxos-0.1.1.tar.gz
- Upload date:
- Size: 43.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8cb455e56772c5d02d087f60aa2cc9848c35fff5a5cab6ddad40263d506cc45
|
|
| MD5 |
8a993eb44139d65a4bf207be80c78d52
|
|
| BLAKE2b-256 |
6c8eb495f98f8df921090f7aa743a360f6dcfd7cd66896d36d555f979c67e4f1
|
File details
Details for the file sandboxos-0.1.1-py3-none-any.whl.
File metadata
- Download URL: sandboxos-0.1.1-py3-none-any.whl
- Upload date:
- Size: 63.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78e3e0b754a36ea4bd697016b3820fb5330983d118bee818fabde082404c9075
|
|
| MD5 |
7f50655f4eeebb34d63f8514e947a0e2
|
|
| BLAKE2b-256 |
58752718856b571496bc5200a96b22c0a0973ce2388549752a7579f110119d2c
|