Skip to main content

Miniverse SDK

miniverse-sdk installs the miniverse command for validating and uploading immutable .mini simulation bundles to Miniverse. It also builds canonical heightfield assets from ordinary 2-D .npy or JSON arrays so the viewer, collision backend, and policy queries share one grid.

Install

uv tool install miniverse-sdk
miniverse agent-help

For a trusted persistent workspace, run:

miniverse auth login

Interactive access and refresh tokens are stored in a user-only file and renewed automatically. On persistent Linux agents, the state is under $XDG_STATE_HOME/miniverse, or ~/.local/state/miniverse.

For CI, remote environments, and ephemeral machines, create a personal token from an authenticated workspace and place its one-time value in the remote secret manager as MINIVERSE_API_TOKEN:

miniverse token create --name "gpu-runner" --json
miniverse token list --json
miniverse token delete TOKEN_ID --json

Heightfield terrain

miniverse terrain build heights.npy environment/terrain.glb \
  --id experiment-001 --cell-size 0.05 0.05 --out-of-bounds clamp --json

Add "environment": {"kind": "glb", "path": "environment/terrain.glb"} to bundle.json, then pack the generated file at that declared path. Run miniverse agent-help terrain for the coordinate-frame, origin, scaling, and policy-query contract.

MuJoCo-only bundles may instead declare an MJCF world entrypoint, for example "environment": {"kind": "mjcf", "path": "environment/world.xml"}. Store its exact local include and STL mesh closure as ordinary files under environment/. Run miniverse agent-help environments for the supported passive-world subset and fail-closed limitations.

Use 512 x 512 or smaller as the portable terrain budget. The CLI warns above that size; the 1,048,576-sample hard limit should be used only after measuring the target browser and simulator profile.

Agent skill

The repository includes a Miniverse skill at skills/miniverse/SKILL.md. Install that skill in your agent, then follow its setup steps. The skill installs or upgrades this package and reads the versioned instructions bundled with the CLI through miniverse agent-help.

Develop

python -m pip install -e .
python -m unittest discover -s tests -v
python -m build
python -m twine check dist/*

Miniverse server-side import remains authoritative. Local validation is preflight feedback for bundle authors and agents.

Approved tests

Run bounded test code against an uploaded immutable revision with miniverse test start ID@REVISION_ID --file test_policy.py --json. The command waits for the retained report by default; use --no-wait, then test status, test results --wait, or test stop to manage the session. See miniverse agent-help tests for the sandbox and canonical frame contract.

License

Apache License 2.0. See LICENSE.

Metadata

Release files for miniverse-sdk 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for miniverse-sdk 0.6.0
File Size Uploaded Provenance Actions
miniverse_sdk-0.6.0.tar.gz 75.7 kB Without provenance Details for miniverse_sdk-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for miniverse-sdk 0.6.0
File Interpreter ABI Platform Actions
miniverse_sdk-0.6.0-py3-none-any.whl Python 3 none any Details for miniverse_sdk-0.6.0-py3-none-any.whl

Total release size: 148.9 kB

Release files / miniverse_sdk-0.6.0.tar.gz

Download URL miniverse_sdk-0.6.0.tar.gz
Size 75.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e1cd9c4726d731cd456eb407d721ff8638b415fa0c2944af91fdc04481734717
BLAKE2b-256 checksum
How to use checksums
0461d56c9b3eff2cc4fbd9a671767f9e5cc7e4f81fbb67e0558603b19b01d25d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / miniverse_sdk-0.6.0-py3-none-any.whl

Download URL miniverse_sdk-0.6.0-py3-none-any.whl
Size 73.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
983d441288e04a66ae4489543ce68017ffc48e997c031b2bc0c1080e463b13a1
BLAKE2b-256 checksum
How to use checksums
482cb4485f6807d81e5915510514014a10f79bf7c8010febc6643229f96541db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for miniverse-sdk 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page