Skip to main content

reverie-cli

The reverie command-line interface.

Commands

reverie run <cmd...>          Run any command with Reverie auto-instrumentation.
reverie status                Ping the configured backend and show its health.
reverie runs list             List recent runs.
reverie runs show <run-id>    Show one run plus its event timeline.
reverie replay <run-id>       Stream a run's events to the terminal (Phase 1 preview).

How reverie run works

reverie run python my_agent.py does three things:

  1. Prepends a small bootstrap directory to PYTHONPATH. The directory contains a sitecustomize.py that Python imports automatically before any user code.
  2. The bootstrap calls reverie_openai.auto(), which registers a tracing processor with the OpenAI Agents SDK. Your agent code is unchanged.
  3. Spawns your command as a subprocess and waits for it to exit, then exits with the same status code.

This works for any Python entrypoint — python script.py, python -m module, python -c "..." — and is the same mechanism opentelemetry-instrument uses.

Limitations of the bootstrap

If your project ships its own sitecustomize.py, our hook tries to import yours afterward but cannot guarantee perfect compatibility. Set REVERIE_NO_SITECUSTOMIZE_CHAIN=1 to disable chaining if it causes issues.

For non-Python commands (reverie run node app.js), the CLI still runs the command but no instrumentation is injected.

Configuration

Var Default Description
REVERIE_BACKEND_URL http://127.0.0.1:8000 Backend base URL
REVERIE_NO_SITECUSTOMIZE_CHAIN unset Skip chaining to user's sitecustomize

Install

uv pip install -e ".[dev]"
reverie status

Release files for reverie-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)

Source distribution for reverie-cli 0.1.0
File Size Uploaded
reverie_cli-0.1.0.tar.gz 38.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for reverie-cli 0.1.0
File Interpreter ABI Platform
reverie_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 76.9 kB

Release files / reverie_cli-0.1.0.tar.gz

Download URL reverie_cli-0.1.0.tar.gz
Size 38.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8f7b67bef2322525fadccbd5c4e7134da8ab4f4604986080eca2f8cd60956f8f
BLAKE2b-256 checksum
How to use checksums
3ecd92ca1dd721f86f213587409587661ff71e0a2c2c0e28bb20a96cc6e43173
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / reverie_cli-0.1.0-py3-none-any.whl

Download URL reverie_cli-0.1.0-py3-none-any.whl
Size 38.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b0a3273c3a40fba1539e178f6e2a8bb8d7b59e3fc057b4ec8d01e0ac4a565aa
BLAKE2b-256 checksum
How to use checksums
15871f2ca33cc62abf1cecf2db35cd038c5cbef35595695eb4c2b8cb8dc1a94d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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