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).
Search
# 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.0
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 |
|---|---|---|---|---|
| runledger_cli-0.1.0.tar.gz | 28.3 kB | Without provenance | Details for runledger_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| runledger_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for runledger_cli-0.1.0-py3-none-any.whl |
Total release size: 60.1 kB
Release files / runledger_cli-0.1.0.tar.gz
| Download URL | runledger_cli-0.1.0.tar.gz |
|---|---|
| Size | 28.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7496fdbaeac6f1d7c021a985c3f83429dae5c78fe42dc530767887f7539d7ff4
|
|
BLAKE2b-256 checksum How to use checksums |
a9a17b770202e6091253ff76fc07f9dc551875583124b759fd3b940bc5416408
|
| 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.0-py3-none-any.whl
| Download URL | runledger_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 31.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b948bac36269c4e501e1b615bd782d31a2c91712e196ff3330777ce0bedccbe
|
|
BLAKE2b-256 checksum How to use checksums |
b16fb94a62cddeb4eab0bba0c602a4b7496d70f726497189f9ae6e2c0c2e63d9
|
| 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.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.
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.