SimHub
Evaluate robot policies in simulation, from one line of Python.
SimHub runs robot environments, policies, and success criteria on hosted compute. You describe them in Python; SimHub packages your source, builds the scene, runs the episodes in parallel, checks every result against your task, and stores metrics, trajectories, and video in the SimHub console.
import simhub as sh
with sh.connect() as sim:
batch = sim.launch("my-policy-eval", checkpoint="gs://my-bucket/checkpoints/040000")
batch.wait()
Call it from a training loop to evaluate each checkpoint, from CI to block a regression, or from a notebook to compare policies across hundreds of seeds. Your machine needs no simulator, GPU, or model weights.
Console · SDK guide · Examples · Agent skills
Installation
pip install simhub
SimHub requires Python 3.9 or newer. The package installs the simhub
command-line tool too. Simulation engines run on SimHub's hosted workers, so
the base install is everything you need to submit work.
Authentication
Sign in to the SimHub console, open API keys, and create a key. Make it available to your shell or CI job:
export SIMHUB_API_KEY="your-api-key"
sh.connect() reads SIMHUB_API_KEY, plus SIMHUB_API_URL if you use a
deployment other than https://api.g-deployment.com. You can also pass
sh.connect(url=..., key=...). Keep keys out of project source and uploaded
assets.
Your first evaluation
A SimHub project defines an environment (the world), one or more
policies (the controllers), and a task (what success means). This
single-file project moves a counter toward a seeded target. Save it as
counter.py:
import numpy as np
import simhub as sh
sh.manifest("counter-demo", image="python-cpu")
class Counter(sh.Environment):
def __init__(self):
self.position = 0.0
self.target = 1.0
super().__init__()
def describe(self):
return sh.EnvSpec(
id="counter", action_dim=1, control_hz=10, max_steps=20,
observation={"state": sh.ArraySpec(shape=(2,))},
randomised=True,
metrics={"reached": sh.MetricSpec(required=True)},
)
def reset(self, seed=0):
self._steps = 0
self.position = 0.0
self.target = float(np.random.default_rng(seed).integers(3, 8))
return self.observe(("state",))
def observe(self, keys):
if "state" not in keys:
return {}
return {"state": np.array([self.position, self.target], dtype="float32")}
def step(self, action):
self.position += float(np.clip(action[0], 0, 1))
self._steps += 1
return self.observe(("state",)), sh.StepInfo(done=self.done)
@property
def done(self):
return self.position >= self.target or super().done
def score(self):
return {"reached": float(self.position >= self.target)}
class Advance(sh.PolicyBase):
def __init__(self, env):
super().__init__(sh.PolicySpec(
action_dim=1, control_hz=env.spec.control_hz, expects=("state",),
))
def act(self, obs):
position, target = obs["state"]
return np.array([min(1.0, max(0.0, target - position))], dtype="float32")
@sh.environment("counter")
def counter():
return Counter()
@sh.policy("advance")
def advance(env):
return Advance(env)
Then save this script beside it as evaluate.py:
import simhub as sh
with sh.connect() as sim:
batch = sim.project("counter.py").launch(
env="counter",
policies=["advance", "simhub:hold"], # your policy and a built-in baseline
seeds=range(8),
task=sh.Task(reached="eq:1"), # success: the target was reached
gpu=False,
)
print("Batch:", batch.id)
batch.wait()
for row in batch.report().table(): # one row per policy
print(row)
python evaluate.py
What just happened:
- SimHub packaged
counter.pyinto a content-addressed bundle and uploaded it as a new version of thecounter-demoenvironment. launch(...)queued 16 episodes, two policies × eight seeds, on hosted CPUs.- SimHub scored each episode against the task.
advancereaches every target;simhub:holdnever moves and fails, which is what a baseline is for. batch.report().table()gave one row per policy: episodes, coverage, and the success rate with its confidence interval. The same runs, with their metrics and evaluations, are under Runs in the console.
Note: Hosted runs use your organization's compute. Pass
dry_run=Truetolaunch(...), or--dry-runon the command line, to plan a batch without queueing it.
Evaluate checkpoints from training and CI
Once an environment and its policy adapter are published, one call evaluates a new checkpoint. It returns as soon as the work is submitted, so training continues while SimHub runs the evaluation:
import os
import simhub as sh
with sh.connect() as sim:
batch = sim.launch("my-policy-eval", checkpoint=os.environ["SIMHUB_CHECKPOINT"])
print("Evaluation batch:", batch.id) # resume later with sim.batch(batch_id)
In CI, wait inside the same session and fail the job unless the task passed:
batch.wait(timeout=1800, stream=False)
if not batch.runs or not all(
run.complete and run.checked and run.outcome == "success" for run in batch.runs
):
raise SystemExit("Policy evaluation did not pass")
A finished process is not a passed task, so check outcome and checked. A
wait timeout does not cancel the hosted work. To retry a pipeline step safely,
pass the same request_id= so SimHub resumes the existing submission instead
of starting another. The
pipeline guide
covers checkpoint storage setup.
Command line
The simhub command covers the same hosted workflow:
simhub launch my_project/ --runs 8 # upload a project and run a batch
simhub launch my_project/ --eval --runs 32 # run a frozen, scored evaluation suite
simhub launch my_project/ --dry-run # plan the batch without queueing it
simhub launch my-policy-eval --checkpoint gs://my-bucket/checkpoints/040000
simhub runs list --limit 10 # recent runs
simhub logs JOB_ID # saved logs for a hosted job
simhub logs --env my-policy-eval --tail 100 # newest job for an environment
simhub pull my-policy-eval ./src # check out hosted source to edit
simhub push ./src # publish your edits as a new version
Run simhub --help or simhub <command> --help for every option.
Concepts
| Concept | What it is |
|---|---|
| Environment | The simulated world. It accepts actions, returns observations, and reports metrics. |
| Policy | The controller under test: scripted, a Hugging Face or GCS checkpoint, or a served model. |
| Task | Success criteria written over the environment's metrics, such as reached="eq:1". |
| Project | The Python source and assets that build an environment and its policies. One file or a package. |
| Run | One episode of one policy on one seed, with its outcome, metrics, and recordings. |
| Batch | A group of runs submitted together. Wait on it, report on it, or cancel it. |
| Suite | A frozen set of seeds and parameters. Its content digest is its version, so scores stay comparable. |
| Experiment | A typed sweep over parameter variations with an explicit compute budget. |
Optional extras
The core install is deliberately small. Add extras for local work and analysis:
| Extra | Adds |
|---|---|
simhub[notebook] |
DataFrame tables, plots, and inline video in notebooks |
simhub[video] |
Local video encoding without a system ffmpeg |
simhub[mujoco] |
Local MuJoCo, pinned to the hosted series (Python 3.10+) |
simhub[weights] |
Hugging Face checkpoint resolution |
simhub[openpi] |
OpenPI WebSocket client |
simhub[dataset] |
Export recorded batches as LeRobot datasets |
simhub[all] |
All of the above |
pip install 'simhub[notebook]'
Learn more
The SDK guide is the complete reference. Good next stops:
- Author a project: typed environment, policy, and task definitions, project layout, and scene recipes.
- Learned policies: run Hugging Face, Google Cloud Storage, and OpenPI checkpoints.
- Compare policies: frozen suites, paired comparisons, and parameter sweeps with budgets.
- Recordings and datasets: cameras, cinematic video, trajectories, and LeRobot export.
- Debug and recover runs: logs, retries, receipts, and resuming work.
- Examples: warehouse picking, bimanual stacking, LIBERO with GR00T and MolmoAct, Blender-built scenes, and more.
Using a coding agent
The package ships portable skills that teach coding agents such as Claude Code and Codex how to author, run, and evaluate SimHub projects. Installing the package does not activate them. Copy them into your agent's skills folder:
from importlib.resources import files
from pathlib import Path
import shutil
source = files("simhub").joinpath("skills")
destination = Path(".claude/skills") # or .agents/skills for Codex
for skill in source.iterdir():
if skill.is_dir() and skill.joinpath("SKILL.md").is_file():
shutil.copytree(skill, destination / skill.name, dirs_exist_ok=True)
Then reload the agent session. The skill index describes what each one covers.
Versioning
SimHub is in 0.x: the authoring API may still change between minor versions,
and changes so far have been additive. Stored formats do not change without a
major version: the trajectory schema, the task spec format (and therefore a
task's digest), the suite format, and the run output layout. A score recorded
today keeps resolving to the same task and the same seeds.
License
Proprietary. Use of the hosted service is subject to your SimHub account terms.
Metadata
Release files for simhub 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simhub-0.2.4.tar.gz | 611.8 kB | With provenance | Details for simhub-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simhub-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for simhub-0.2.4-py3-none-any.whl |
Total release size: 1.3 MB
Release files / simhub-0.2.4.tar.gz
| Download URL | simhub-0.2.4.tar.gz |
|---|---|
| Size | 611.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6ea0f87d72aafc8a4cd64d641c4b1dbf7fd7f0263895588802b276dbf115abd
|
|
BLAKE2b-256 checksum How to use checksums |
41b68189ec378bde4b0174c4b146c008ec01d4cc8a3fc9cefb86ba383c0e2d76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / simhub-0.2.4-py3-none-any.whl
| Download URL | simhub-0.2.4-py3-none-any.whl |
|---|---|
| Size | 731.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
746012118c9d274fa4e453b332651d49ff2da64a4535ad0e1194cdf8d96c2671
|
|
BLAKE2b-256 checksum How to use checksums |
6f32746580cf1a96be631558abd226dccd777024f9d6057b4cccdd2bed819d9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for simhub 0.2.4
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for simhub-0.2.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA 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.