Mosaic Sandbox Python SDK
mosaic-sandbox is the Python SDK and CLI for Mosaic Sandbox, a Firecracker-based
runtime for coding agents.
Install:
python -m pip install mosaic-sandbox
Authenticate once with the CLI:
mar auth --token msk_live_...
mar whoami
Run the CLI smoke test:
mar doctor
mar run --template node-20 node -v
mar create --template node-20 --ssh
mar ssh <sandbox-id> --print-command
Or run the one-command first-run check:
mar smoke
Python example:
from mosaic_sandbox import Sandbox
sbx = Sandbox.create(
template="node-20",
endpoint="https://sandbox.mosaicos.com",
api_token="msk_live_...",
enable_ssh=False,
)
try:
result = sbx.run_command("node -v")
print(result.stdout)
print(result.tti_ms)
finally:
sbx.destroy()
Release files for mosaic-sandbox 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mosaic_sandbox-0.5.1.tar.gz | 73.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mosaic_sandbox-0.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 131.8 kB
Release files / mosaic_sandbox-0.5.1.tar.gz
| Download URL | mosaic_sandbox-0.5.1.tar.gz |
|---|---|
| Size | 73.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d0776b363e5f394d809643aece8e9ff242864242ca24be8368c8ea4c3e748fc
|
|
BLAKE2b-256 checksum How to use checksums |
9ec2a1e84d7ea653e501ea7727717147c396573c98f7c0a45032bfae29d2fb13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / mosaic_sandbox-0.5.1-py3-none-any.whl
| Download URL | mosaic_sandbox-0.5.1-py3-none-any.whl |
|---|---|
| Size | 58.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ab136d55f1950058a3b41ff6e70d28964b1401aea90bfce1ecad6bcb2626600
|
|
BLAKE2b-256 checksum How to use checksums |
0894524a23ad990f9c3a5fb4ac2fe1609d3f9c5c8ce8b5a848c5e2e9c0325b7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|