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:
mos auth --token msk_live_...
mos whoami
Run the CLI smoke test:
mos doctor
mos run --template node-20 node -v
mos create --template node-20 --ssh
mos ssh <sandbox-id> --print-command
Or run the one-command first-run check:
mos 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.6.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.6.0.tar.gz | 98.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mosaic_sandbox-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 177.5 kB
Release files / mosaic_sandbox-0.6.0.tar.gz
| Download URL | mosaic_sandbox-0.6.0.tar.gz |
|---|---|
| Size | 98.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
021d0904afee972d39c2fc02e8544bb727d37b33a3032e3d2b5c57a463cd8374
|
|
BLAKE2b-256 checksum How to use checksums |
25a89867c6fdf1323b050ffec25c5898fa020c88da5243935fe420cbf166af92
|
| 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.6.0-py3-none-any.whl
| Download URL | mosaic_sandbox-0.6.0-py3-none-any.whl |
|---|---|
| Size | 79.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5784882d49509eb81d4d0ab53dc6d5f19a6b3b1795b92f8846e995f271d54a2f
|
|
BLAKE2b-256 checksum How to use checksums |
a61916f74694344c7864112157fb9c02f2e3e79e0f4bc2018c724c092555af2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|