Skip to main content

RunLedger

Zero-instrumentation experiment registry and search engine.
Point to a folder of JSON experiment files and instantly search, filter, aggregate, diff, and export your results—no SDK, no code changes.

Quick Start

# 1. Start the backend
docker compose up -d

# 2. Ingest your experiment files
runledger scan ~/experiments --batch my-sweep

# 3. Search
runledger search --metric accuracy --op gt --value 0.9 --batch my-sweep

# 4. Aggregate
runledger aggregate --metric accuracy --agg AVG --group-by experiment --batch my-sweep

New to the tool? Try the guided wizard:

runledger guided

Key Features

🔍 Search any JSON field, no schema required

  • Structured numeric/text comparisons on arbitrary dot-paths (metrics.accuracy, config.optimizer.learning_rate).
  • Full-text phrase search with stemming.
  • Fuzzy trigram search for typos.
  • Compound AND/OR queries: combine multiple conditions.
  • Batch isolation: group runs by folder and filter within a batch.

📊 Aggregates & group-by

Answer research questions directly:

runledger aggregate --metric accuracy --agg AVG --group-by experiment --batch sweep

Supported functions: AVG, MAX, MIN, SUM, COUNT. Group by any scalar field.

🎯 Exact match pointers (“JSON line numbers”)

For array searches (results[].sst2_cacc < 0.8), the CLI shows exactly which array elements matched:

Matches:
  • results[0].sst2_cacc = 0.924312
  • results[3].sst2_cacc = 0.933486

Works for scalar, array, and compound conditions.

🔬 Block-depth control

Limit output to the relevant part of a large JSON payload with --block 0 (tightest match), --block 1 (parent), etc.

📁 JSONL ingestion

Ingest one-JSON-object-per-line logs (common in training scripts) with --jsonl.

🔎 Run diff

Compare any two runs side-by-side:

runledger diff 12 15

Or see every version of a re-scanned run with --history.

💾 Saved searches

Save frequent queries and re-run them with a single command:

runledger search --metric accuracy --op gt --value 0.9 --batch sweep --save best-accuracy
runledger search --saved best-accuracy

🧭 Interactive & guided modes

  • Filter-as-you-type interactive search (runledger interactive).
  • Step-by-step wizard for first-time users (runledger guided).

🔒 Self-hosted, local-first

Runs in Docker with a single docker compose up -d.
All data stays on your machine. No internet, no accounts, no vendor lock-in.

Installation

From PyPI (CLI only)

pip install runledger-cli

From source

git clone https://github.com/yourusername/run-ledger.git
cd run-ledger
docker compose up -d          # starts PostgreSQL + Spring Boot
pip install -e .              # installs the CLI

Quick Tour

Scan & Discover

runledger scan experiments/ --batch my-sweep

The CLI prints a schema summary showing every metric found, its full dot-path, and depth. Array keys are shown with [] notation (e.g., results[].cacc).

# Single condition
runledger search --metric loss --op lt --value 0.2 --batch my-sweep --summary

# Compound AND
runledger search --metric accuracy --op gt --value 0.9 --metric loss --op lt --value 0.2 --combine and

# Full-text
runledger search --q "weighted averaging"

# Fuzzy
runledger search --q "weighted avaraging" --fuzzy

Aggregate

runledger aggregate --metric accuracy --agg AVG --group-by config.learning_rate --batch my-sweep

Diff

runledger diff 12 15
runledger diff --history 12 --batch my-sweep

Export

runledger export --metric accuracy --op gt --value 0.9 --batch my-sweep --block 0 --output results.txt

Saved searches

runledger search --metric accuracy --op gt --value 0.9 --batch sweep --save best-accuracy
runledger search --saved best-accuracy
runledger saved list
runledger saved delete best-accuracy

Metrics-Path Convention

RunLedger uses dot-separated paths to address any value in a JSON payload.

Example Meaning
accuracy Top-level field
metrics.loss Nested field
results[].sst2_cacc Field inside each element of an array
phases[].metrics.loss Nested field inside array elements

Shorthand keys: After scanning a batch, the CLI shows a shorthand key for every leaf field. Typing cacc will automatically resolve to client.results[].cacc if that’s the only (or shallowest) occurrence. Use the full path when there’s ambiguity.

Discover available metrics with:

runledger metrics --batch my-sweep
runledger metrics --batch my-sweep --verbose   # shows full paths

API

See docs/api.md for the complete REST API reference.

Usage Examples

See docs/examples.md for real-world workflows.

License

MIT

Metadata

Release files for runledger-cli 0.1.2

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

Source distribution (sdist)

Source distribution for runledger-cli 0.1.2
File Size Uploaded Provenance Actions
runledger_cli-0.1.2.tar.gz 28.8 kB Without provenance Details for runledger_cli-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for runledger-cli 0.1.2
File Interpreter ABI Platform Actions
runledger_cli-0.1.2-py3-none-any.whl Python 3 none any Details for runledger_cli-0.1.2-py3-none-any.whl

Total release size: 61.2 kB

Release files / runledger_cli-0.1.2.tar.gz

Download URL runledger_cli-0.1.2.tar.gz
Size 28.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5d4add0aeef0376a7504b8c4099f9a9e46126d6ddcd135bea3c6a03b60dd0b58
BLAKE2b-256 checksum
How to use checksums
2397ca606dba62f517ac025a229e2db2ca1d84b9f518ef6259de0ecc436cb1f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / runledger_cli-0.1.2-py3-none-any.whl

Download URL runledger_cli-0.1.2-py3-none-any.whl
Size 32.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abdf1f8dc260f3e4387050203b7dc5b7938ebf4a606e389b3d9bcd71bae92ff3
BLAKE2b-256 checksum
How to use checksums
96884ed73e263ecceffb9176e285ce326d5b290445bf8a33bf7b44cd15396a17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for runledger-cli 0.1.2

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