Skip to main content

CLI for composing simulation environments, running agents, and evaluating tasks

Project description

SimLab

A self-serve simulation lab, enabling you to build and refine long-horizon AI agents.

PyPI Docs Website Python 3.13 License Discord


SimLab is the data layer for adaptively composing RL simulations and evaluating and refining agents. SimLab is toolset, agent harness and sandbox agnostic. Browse pre-built scenario templates or bring your own CLI/MCP toolset.

  • Browse & compose environments from a catalog of tool servers and scenario templates
  • Run agents against tasks using any LLM provider (OpenAI, Fireworks, custom endpoints)
  • Generate custom tasks with built-in task generation pipelines
  • Evaluate automatically with verifiers and reward model scoring
  • Scale to the cloud with Daytona for remote sandbox execution (if you want to experiment with large-scale parallel rollouts, reach out to us or join the Discord!)

Quickstart

Install

# Recommended: install with all extras
uv pip install "simulationlab[npc,daytona,langchain]"

# Or install only what you need:
uv tool install simulationlab
uv tool install "simulationlab[npc]"        # NPC chat simulation
uv tool install "simulationlab[daytona]"    # Remote sandbox execution
uv tool install "simulationlab[langchain]"  # LangChain/LangGraph agents

# pipx works too:
pipx install simulationlab

The PyPI package is named simulationlab. The installed CLI command is simlab. SimLab currently supports Python 3.13.

Install from source
git clone https://github.com/collinear-ai/simlab.git
cd simlab/cli/simlab
uv tool install .
# or with extras:
uv tool install ".[daytona]"

Then run with simlab <command>. To run directly from the repo without installing:

uv run simlab <command>

Get your API keys and export them:

export SIMLAB_COLLINEAR_API_KEY="col_..."   # from platform.collinear.ai (Developers > API Keys)
export DAYTONA_API_KEY="dtn_..."            # from app.daytona.io
export OPENAI_API_KEY="sk-..."              # from platform.openai.com/api-keys
export SIMLAB_VERIFIER_MODEL="gpt-5.2"      # reward model (tasks also come with a programmatic verifier so can skip this)
export SIMLAB_VERIFIER_PROVIDER="openai"    # litellm compatible provider name
export SIMLAB_VERIFIER_API_KEY="$OPENAI_API_KEY" # corresponding key

Create an environment:

simlab env init my-env --template hr

To list templates run simlab templates list (or simlab templates list --env my-env to use that env's Scenario Manager URL)

Create and list tasks in directory ./generated-tasks

simlab tasks-gen init --preset recruiting # Can go to the config.toml to setup number of tasks etc.
simlab tasks list --tasks-dir ./generated-tasks # takes 5-10 mins with the default setting, choose haiku and 2 tasks for a faster generation.

Run a task with task id task_id.

tasks run automatically starts the environment, seeds data, runs the agent, and tears down when done.

simlab tasks run --env my-env \
  --task task_id \
  --tasks-dir ./generated-tasks \
  --daytona \
  --agent-model gpt-5.2 \
  --agent-api-key "$OPENAI_API_KEY"
Running locally with Docker

If you have Docker + Docker Compose installed, you can run environments on your machine instead of Daytona. Just omit --daytona:

simlab env init my-env --template hr
simlab tasks run --env my-env --task task_id --agent-model gpt-5.2 --agent-api-key "$OPENAI_API_KEY"

No DAYTONA_API_KEY required. First run may take several minutes while images are pulled/built.

For the full walkthrough — configuration, custom agents, task generation, verifiers, and more — see the Quickstart Guide. For framework adapters and custom agent integration patterns, see Agent Integrations.

For environment-scoped tool definitions, see Env-Local Custom Tools.

API Keys

Key Required How to get it
Collinear API key Yes platform.collinear.ai (Developers > API Keys)
OpenAI API key For running agents platform.openai.com/api-keys
Daytona API key Yes (default runtime) app.daytona.io

Configuration

SimLab resolves configuration in this order: config file < environment variables < CLI flags.

Config file: ~/.config/simlab/config.toml (override with --config-file or SIMLAB_CONFIG)

collinear_api_key = "col_..."

[agent]
model = "gpt-5-mini"
provider = "openai"
api_key = "sk-..."

[daytona]
api_key = "dtn_..."

[verifier]
model = "claude-sonnet-4-6"
api_key = "sk-ant-..."

[npc_chat]
model = "gpt-4o-mini"       # LLM model for NPC chat responses (default: gpt-4o-mini)
api_key = "sk-..."           # API key (falls back to agent key, then provider env vars)

Environment Variables

Variable Description
SIMLAB_COLLINEAR_API_KEY Collinear API key
SIMLAB_AGENT_API_KEY Agent API key
OPENAI_API_KEY Fallback agent API key (when provider is openai)
DAYTONA_API_KEY Daytona API key
SIMLAB_DAYTONA_API_KEY Daytona API key (alternative)
SIMLAB_SCENARIO_MANAGER_API_URL Override Scenario Manager API URL
SIMLAB_VERIFIER_MODEL Verifier model
SIMLAB_VERIFIER_API_KEY Verifier API key
SIMLAB_NPC_CHAT_MODEL NPC chat LLM model (default: gpt-4o-mini)
SIMLAB_NPC_CHAT_API_KEY NPC chat API key (falls back to agent key)
SIMLAB_ENVIRONMENTS_DIR Root directory for environments
SIMLAB_DISABLE_TELEMETRY Set to 1 to disable CLI telemetry

CLI Reference

Command Description
simlab env init <name> Create a new environment (from template or interactive)
simlab env custom-tools add <env> <name> Scaffold and enable an env-local custom tool
simlab env down <name> Stop and remove environment containers
simlab env seed <name> Seed initial data into a running environment
simlab tasks list List available tasks for an environment
simlab tasks run Run an agent against a task (auto-starts and tears down the environment)
simlab tasks-gen init Initialize task generation config (with presets)
simlab tasks-gen validate Validate a task generation config
simlab tasks-gen run Generate custom tasks via the API
simlab templates list List available scenario templates
simlab templates info <name> Show details for a specific template
simlab tools list List available tool servers
simlab tools info <name> Show details for a specific tool server

Run simlab --help for full usage details.

Documentation

License

This project is licensed under the Apache 2.0 License.

Contact

Questions or feedback? Reach out to us:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simulationlab-0.2.0.tar.gz (713.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simulationlab-0.2.0-py3-none-any.whl (228.2 kB view details)

Uploaded Python 3

File details

Details for the file simulationlab-0.2.0.tar.gz.

File metadata

  • Download URL: simulationlab-0.2.0.tar.gz
  • Upload date:
  • Size: 713.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for simulationlab-0.2.0.tar.gz
Algorithm Hash digest
SHA256 389c1bb063c8045689cafbea64f98e1d2a979b9bd3eab7189461dbdad4b5c354
MD5 6011b39650df55bd6f990f4399f5411c
BLAKE2b-256 de43eb674f111095ddbc6683f5140bc299f641d5e0315edcd892b0e82cc5702b

See more details on using hashes here.

Provenance

The following attestation bundles were made for simulationlab-0.2.0.tar.gz:

Publisher: release.yml on collinear-ai/simlab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file simulationlab-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: simulationlab-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 228.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for simulationlab-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2c870e4e8a2c7bf5759d63ef7c84dcb0ba896955afb997cc8dbe7448cddca80
MD5 69f6d637a5dee48557a333a947d5a01b
BLAKE2b-256 39841631a8a2cbd68b28ece10fffd4a9f3123f0eda44f07136ccb060bcaaa434

See more details on using hashes here.

Provenance

The following attestation bundles were made for simulationlab-0.2.0-py3-none-any.whl:

Publisher: release.yml on collinear-ai/simlab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page