Skip to main content

cosmos

A self-hosted server where a team uploads, reads, discusses and reviews Inspect eval transcripts.

A sample's transcript in cosmos: the messages with who wrote each one, the sample's details and its comment threads beside it

You upload a folder of Inspect logs with one command (or from CI), and everyone in your project can open the run, read each transcript, link to a single message, comment and @-mention people or agents, compare epochs, runs and branches, and see at a glance which results can be trusted. Multi-agent audits written with orbit_audit get extra views: the auditor's branch tree after rollbacks, diffs between branches, every intervention, and L2 studies with their claims and blind review.

cosmos (PyPI: cosmos-evals) is unrelated to Azure Cosmos DB, the Cosmos SDK and NVIDIA Cosmos.

Why cosmos

Eval transcripts are where the findings are, and they are hard to share: a log folder on someone's laptop, a bucket with no permissions, a screenshot in chat. cosmos keeps them on one server your team controls.

  • One link per run, sample and message. Links keep working; the run page says where the logs came from (commit, branch, pull request, CI job).
  • Discussion next to the evidence. Comment on a run, a sample, one message or a range of messages, in threads that can be resolved. @-mention a teammate or an agent.
  • Permissioned projects. Each team's runs live in a project; access follows GitHub repositories or invitations. Share links for people without an account are opt-in and expire.
  • Agents in the loop. Connect Claude, ChatGPT, Codex, Cursor or Gemini CLI over MCP to read runs as yourself, or add an agent to a project that answers @-mentions in threads with links to the exact messages.
  • Trust at a glance. Each run gets a health level (unflagged, warning or problem) from errors, limits, missing scores and parse warnings, and a comparison with its baseline.
  • Multi-agent and study views. For orbit_audit runs: authorship of every message, branch trees, branch diffs, an audit of every intervention. For L2 studies: claims with citations, cosmos's own recount, blind review, judge audits.
Run page Study page
A run's samples on a grid of scenario by condition, coloured by health A study page leading with its claims, each with the auditor's verdict and cosmos's recount
Home and command palette Branch diff
The command palette open over a project's Home Two branches of an audited sample side by side, aligned at the fork

How it relates to other tools

Tool What it is for With cosmos
inspect view Inspect's own log viewer, run against a log directory Keep using it while you develop an eval; upload to cosmos when others should read, link and discuss the logs
Inspect Scout Scanning transcripts for behaviours at scale cosmos stores, shares and discusses the transcripts; it does not scan them
Docent (Transluce) Analysing agent transcripts cosmos is self-hosted, keeps persistent links and permissions per project, and puts threads and agents next to the transcript
A shared drive or bucket Storing log files cosmos parses them, so each run, sample and message has its own page, link and comments

Try it without a server

The web app has a mock mode that runs entirely in your browser against built-in example data (Node 22):

git clone https://github.com/Danhelo/cosmos.git
cd cosmos/web && npm ci && npm run dev:mock      # http://localhost:5173

There is no public demo server.

Run it locally

About five minutes, most of it the first image build. You need Docker Engine 24+ with the Compose plugin (v2.24+) and uv. cosmos runs on http://localhost:8000 with a development login, so you need no GitHub App.

  1. Get the code and create deploy/.env:

    git clone https://github.com/Danhelo/cosmos.git
    cd cosmos/deploy
    cp .env.example .env
    
  2. In deploy/.env, fill in POSTGRES_PASSWORD, set COSMOS_DEV_LOGIN=true and uncomment the COMPOSE_FILE line:

    POSTGRES_PASSWORD=<output of: openssl rand -hex 24>
    COSMOS_DEV_LOGIN=true
    COMPOSE_FILE=docker-compose.yml:docker-compose.local.yml
    

    COMPOSE_FILE publishes the app on 127.0.0.1:8000. Leave COSMOS_PUBLIC_URL=http://localhost:8000: dev login is refused whenever the public URL is https. Never turn on dev login on a server other people can reach.

  3. Start the stack (web, worker and Postgres; the migrations run on start):

    docker compose up -d --build --wait
    
  4. Sign in as an admin at http://localhost:8000/auth/dev-login?login=<your-name>&role=admin, open Settings → API tokens (/settings/tokens), create a token and copy it (it is shown once).

  5. Upload logs from the repository root:

    cd ..
    uv run cosmos login --url http://localhost:8000      # paste the token
    uv run cosmos upload path/to/your/inspect/logs       # any folder `inspect eval` wrote
    uv run cosmos upload tests/fixtures/inspect          # or the example eval set
    uv run cosmos upload tests/fixtures/rollback         # an orbit_audit run with a rollback
    

    Each upload prints the run's URL, and the worker parses it within seconds.

To stop, run docker compose down in deploy/ (add -v to delete the data too). To run the server without Docker, see Path 4: without Docker.

What you can upload

Any folder of Inspect logs (.eval or .json, nested or flat, eval sets included) or a single log, plus the HTML, Markdown and image reports next to them. A manifest.json is optional: without one, cosmos takes the commit from the logs or from git, and groups samples by task and model. Before anything is sent, the CLI scans every file for API keys and stops if it finds one; the server scans again.

cosmos reads extra records when the logs have them: per-agent conversations from Inspect agent spans, inspect_swarm members and budgets, Orbit's channels, orbit_audit's branches and interventions, and L2 studies.

  • Uploading runs: file types, limits, the secret scan, re-uploads, the manifest and the run-folder contract for frameworks.
  • Inspect compatibility: which Inspect versions' logs parse.

Who can sign in

Everyone signs in with a GitHub account (github.com or GitHub Enterprise Server). There is no email, Google, OIDC or SAML sign-in. Someone can open a project when they can read a private GitHub repository linked to it (or push to a linked public one), when a project admin invited their GitHub login, or when they are a site admin; a team without a repository just invites people. Linking a repository takes push access to it. A development login exists for a server on your own machine.

Self-hosting

cosmos is one Docker image (ghcr.io/danhelo/cosmos, amd64 and arm64) that runs as a web process and a worker, next to Postgres (16 or 17) and a blob store (a directory or an S3-compatible bucket). A 2-core, 4 GB VM holds thousands of typical runs. Setting one up for a team takes about fifteen minutes. Four ways to run it, all ending in a first-run setup in the browser that claims the server, registers its GitHub App and creates the first project:

  • one VM with docker compose and the bundled Caddy for TLS;
  • Coolify, or another reverse proxy that runs compose files;
  • your own Postgres and S3, with the image run twice (serve and worker);
  • without Docker, as a Python package next to your own Postgres.

Self-hosting guide: setup, the GitHub App, projects and access, configuration, backups, upgrades and troubleshooting.

Integrations

  • CLI: uv tool install cosmos-evals (or pipx install cosmos-evals). The plain install is the CLI only: Python 3.11+, httpx, typer and zipfile-zstd. cosmos upload, cosmos login, cosmos doctor (checks the configuration, the server and the token) and cosmos agent run.
  • GitHub Action: uses: Danhelo/cosmos/action@v2 uploads a run from a workflow, without a stored secret when the server's GitHub App is installed on the repository, and adds a check run to the commit. CI uploads.
  • HTTP API: everything the web app does, with personal API tokens; an OpenAPI schema at /api/openapi.json and a short guide for agents at /llms.txt. API and tokens.
  • MCP server: <your server>/mcp, with OAuth sign-in, for Claude, ChatGPT, Codex, Claude Code, Cursor, VS Code and Gemini CLI. MCP.
  • Agents in threads: bring your own agent (Claude Code, Codex, Gemini CLI, any ACP agent or script) with cosmos agent run, or a hosted one on your own API key, and @-mention it in comments. Agents.

Status and roadmap

2.0.0 is the first public release. It has been used by one research team since October 2026, on runs from Rover (then called ma-auto-evals) and plain Inspect evals. Releases use semantic versioning from 2.0.0. The L2 study views follow L2's export format, which is still changing.

In progress: live runs (watching an audit while it runs) and steering an audit from cosmos. What does not work yet is listed in known limitations; changes are in the changelog.

Documentation

The documentation index says which document is for whom: people uploading and reading runs, operators running a server, integrators, and maintainers. Terms such as run, sample, branch, intervention and study are defined in the glossary.

Contributing and security

See CONTRIBUTING.md for the prerequisites, the checks and how changes are proposed. Report vulnerabilities privately as described in SECURITY.md, not in an issue.

How it is built

Most of cosmos's code was written by AI coding agents (Claude), directed and reviewed by the maintainer, and the commit history shows this. AGENTS.md is the guide those agents follow, and it works as a guide for human contributors too.

The server is Python (FastAPI, SQLAlchemy, Postgres, with Inspect's own log reader), the web app React and TypeScript, and the job queue is Postgres itself. cosmos began as the place to share Rover (then called ma-auto-evals) multi-agent audits and grew into a server for any Inspect logs.

License

MIT, see LICENSE.

Metadata

Release files for cosmos-evals 2.0.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 cosmos-evals 2.0.0
File Size Uploaded Provenance Actions
cosmos_evals-2.0.0.tar.gz 2.2 MB With provenance Details for cosmos_evals-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cosmos-evals 2.0.0
File Interpreter ABI Platform Actions
cosmos_evals-2.0.0-py3-none-any.whl Python 3 none any Details for cosmos_evals-2.0.0-py3-none-any.whl

Total release size: 4.6 MB

Release files / cosmos_evals-2.0.0.tar.gz

Download URL cosmos_evals-2.0.0.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
352ad062e0dff4a6387606935a4c1fbb7ddd90c86e2e534ab8197f0c924492ba
BLAKE2b-256 checksum
How to use checksums
26001d9f376978137cf625ca2f10ba5c3f54c527d841925915be2a4e09927832
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 Dec 5, 2026.

Transparency log

Release files / cosmos_evals-2.0.0-py3-none-any.whl

Download URL cosmos_evals-2.0.0-py3-none-any.whl
Size 2.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
734844b321fcb6329b09e9e068955955485e50b5c543eef0928dad989cb249fc
BLAKE2b-256 checksum
How to use checksums
6dd82345d46ed7deeea7ea369241ff605904654a6bf721fc34bab8c820be8ea1
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 Dec 5, 2026.

Transparency log

Security for cosmos-evals 2.0.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cosmos_evals-2.0.0.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 Dec 5, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files Full provenance

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