Mesocosm CLI
Central hub for the mesocosm command-line tool — SWECC’s BenchAnything / Mesocosm platform.
New here?
Event logistics → SWECCATHON 2026 slides. Then the platform tour → mesocosm overview slides.
Install with pip (recommended — the package is published on PyPI):
pip install swecc-mesocosmUse pip, not Homebrew, uv, Poetry, or other wrappers, unless you know what you are doing. Those can install a different Python environment or an outdated build and cause confusing mesocosm: command not found errors. No backend source code required.
Quick start
python3 -m venv .venv
source .venv/bin/activate # macOS/Linux — Windows: .venv\Scripts\activate
pip install swecc-mesocosm
mesocosm --help
mkdir my-env && cd my-env
mesocosm init
ollama serve # or open the Ollama app
ollama pull llama3.2
python adapter.py # terminal 1
mesocosm run local # terminal 2Platform:
mesocosm auth login
mesocosm env submit --name "My env" --github-url https://github.com/you/your-repo
mesocosm run create --domain YOUR_DOMAIN_ID --vow-version 1.0.0 --model gemini/gemini-3.1-flash-liteGuides
- slides — Overview slides — visual tour of the platform
- getting-started — Install, first commands, production vs local
- local-development — Ollama loop, adapter,
run local - authentication — Login, guest, tokens, logout
- teams — Create, join, active team context
- submitting-environments —
env submit, GitHub requirements - running-benchmarks — Platform runs, local runs, eval
- showcase — Replay JSON,
run export - command-reference — Full parameter reference
- troubleshooting —
doctor, URLs, common errors
Who this is for
- Environment authors —
benchanything.json,env.py, adapter - Platform users — runs, teams, showcase exports
Production vs local
| Mode | Typical use |
|---|---|
| Production (default) | mesocosm auth login, env submit, run create → https://api.swecc.org |
| Local | export MESOCOSM_LOCAL=1, mesocosm doctor --local, mesocosm run local with Ollama |
Details: Configure · Troubleshooting
Related vault notes
- SWECCATHON 2026 — Event slides — logistics, tracks, judging, deadlines
CLI help
mesocosm --help
mesocosm auth --help
mesocosm run --helpEvery flag and default: Command reference.