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.2.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.2.0.tar.gz | 40.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mosaic_sandbox-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.4 kB
Release files / mosaic_sandbox-0.2.0.tar.gz
| Download URL | mosaic_sandbox-0.2.0.tar.gz |
|---|---|
| Size | 40.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9979ec356f6b432f92096e35eeb43140080606ebe7fe111fdfeb59a9ebb2ff4
|
|
BLAKE2b-256 checksum How to use checksums |
48b58883d95ba31c09eb922d9a0792ab56b6ba21041d7e683e96295dc668c872
|
| 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.2.0-py3-none-any.whl
| Download URL | mosaic_sandbox-0.2.0-py3-none-any.whl |
|---|---|
| Size | 34.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb6239418096e6dd5d0ad4cc3f9808993733f1fc5734d8df955a1c3bcafcdbac
|
|
BLAKE2b-256 checksum How to use checksums |
b9a27eda88f37a59be593f1b2523c4f26de262a0ea971a282a3ac651860968eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|