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.4.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.4.0.tar.gz | 56.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mosaic_sandbox-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 101.3 kB
Release files / mosaic_sandbox-0.4.0.tar.gz
| Download URL | mosaic_sandbox-0.4.0.tar.gz |
|---|---|
| Size | 56.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a219f3668028ebf6b63b1785020e8f13bb5128a9e780b7afdc145213ae8245f8
|
|
BLAKE2b-256 checksum How to use checksums |
85ad0380a528a7f9979a6fae4a930237825d6b5aef7c672e4642f1140f92ab14
|
| 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.4.0-py3-none-any.whl
| Download URL | mosaic_sandbox-0.4.0-py3-none-any.whl |
|---|---|
| Size | 45.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6becc7f37de27bb3df8668eb3a484938236012429e0985c95b1b059ac43196a5
|
|
BLAKE2b-256 checksum How to use checksums |
c82595ef49b101ff52b3b68669164b75cb8791482142c66f061a5841a633a46d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.8
|