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.0
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.0.tar.gz | 60.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mosaic_sandbox-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 109.0 kB
Release files / mosaic_sandbox-0.5.0.tar.gz
| Download URL | mosaic_sandbox-0.5.0.tar.gz |
|---|---|
| Size | 60.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8497b4d288969f50684413437225317f8d9e9a553cb97746ae1832e8ffdd750
|
|
BLAKE2b-256 checksum How to use checksums |
57d731a4bff44a47bdddf5481ccbfa8acf80a11fc8e18fbd467524210914f0b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.8
|
Release files / mosaic_sandbox-0.5.0-py3-none-any.whl
| Download URL | mosaic_sandbox-0.5.0-py3-none-any.whl |
|---|---|
| Size | 48.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73201c2a56b20869903b0832bbe70d6e21cebdb2b3c73cf9921fa8095a8ee900
|
|
BLAKE2b-256 checksum How to use checksums |
0fcdbe02419cf90f87c4dc12132aa13c00c1da9fbdfc8414b2a5b6f717db0ff4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.8
|