0rrery

中文文档
0.1.2发布于 2026/07/10MIT零依赖构建来源已验证

Trace-first, local-first observability for AI agent workflows

原始使用文档
文档目录9 节
  1. Quickstart
  2. Commands
  3. What gets written where
  4. Configuration
  5. Agent skill
  6. Releases
  7. Upgrade
  8. Uninstall
  9. Development

0rrery

Trace-first, local-first observability for AI agent workflows. Watch what your Claude Code sessions actually did (every tool call, subagent, LLM call, and permission decision) as live traces in a local dashboard. One process, one SQLite file, no cloud. Ingests Claude Code and OpenAI Codex CLI sessions.

Quickstart

npm install -g 0rrery    # or: bun install -g 0rrery
0rrery init

init does three things (each skippable): installs Claude Code hooks (--no-hooks), sets up a user service so 0rrery runs persistently (--no-service), and imports your existing session history (--no-import). Then open http://localhost:7317.

Requires Bun ≥ 1.1 at runtime: the CLI runs on Bun even when installed via npm, so npm install succeeds without Bun, but the 0rrery command exits with an install-Bun message until Bun is on your PATH. Claude Code hooks require the global install (the hook command is 0rrery hook); bunx 0rrery serve works for a look around without installing.

Commands

CommandWhat it does
0rrery inithooks + agent skill + service + history import, idempotently
0rrery serverun the server + dashboard in the foreground
0rrery install(re)install Claude Code hooks into ~/.claude/settings.json; replaces stale 0rrery entries
0rrery import <file.jsonl>import one transcript
0rrery import --allimport everything under ~/.claude/projects
0rrery service install|uninstall|statusmanage the systemd user unit (Linux) / launchd agent (macOS)

What gets written where

  • ~/.claude/settings.json — hook entries (command 0rrery hook)
  • ~/.0rrery/ — SQLite DB + tailer offsets
  • ~/.config/systemd/user/0rrery.service or ~/Library/LaunchAgents/com.0pon.0rrery.plist

Configuration

Env varDefault
ORRERY_PORT7317dashboard/API port
ORRERY_HOST127.0.0.1bind address (localhost-only by design)
ORRERY_DATA_DIR~/.0rrerydata directory
ORRERY_DB<data dir>/0rrery.dbdatabase path
ORRERY_URLhttp://localhost:7317where hooks/import post to
ORRERY_CLAUDE_DIR~/.claudeClaude Code config/transcripts root

Agent skill

init installs a skill at ~/.claude/skills/0rrery/ that teaches Claude to answer questions like "what did I spend this week", "what keeps failing in this repo", or "what did my last session do" by querying the local API. Skip with --no-skill; remove with rm -rf ~/.claude/skills/0rrery.

Releases

Versions are published by CI via npm Trusted Publishing: bump the version in scripts/build-pkg.ts, tag vX.Y.Z, push the tag — the workflow tests, stages, and publishes with provenance. No tokens.

Upgrade

npm install -g 0rrery@latest    # or: bun install -g 0rrery@latest
0rrery service uninstall && 0rrery service install   # regenerate if the bin path changed

After upgrading (or when developing from the repo), rebuild and force a reinstall so the dashboard picks up the new bundle: bun run build:pkg, then bun install -g 0rrery@latest for registry installs, or cd ~ && bun install --force for file:-pinned dev installs — an unchanged file: dep may skip re-copying otherwise.

Uninstall

0rrery service uninstall
npm uninstall -g 0rrery    # or: bun remove -g 0rrery
rm -rf ~/.0rrery

Hook entries: re-run a Claude session or remove entries whose command is 0rrery hook from ~/.claude/settings.json.

Development

bun install
bun run build        # dashboard
bun test
bun packages/cli/src/index.ts serve
bun run build:pkg    # stage the npm package in dist-pkg/

Specs live in docs/superpowers/specs/.

Want 0rrery to ingest another agent CLI? See ADAPTERS.md.

版本与发布记录

0rrery 共发布 3 个版本,首次发布于 2026/07/06;过去 12 个月发布了 3 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.1.2latest2026/07/103 个月前
0.1.12026/07/063 个月前
0.1.02026/07/063 个月前

关于 0rrery 的常见问题

0rrery 是什么?

AI代理工作流的跟踪优先、本地优先的可观察性

如何安装 0rrery?

在项目目录运行 npm install 0rrery,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 0rrery,可以用 npx 0rrery 直接运行。

0rrery 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/0rrery 是否存在。

0rrery 可以商用吗?

0rrery 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

0rrery 还在维护吗?

最新版本 0.1.2 发布于 2026/07/10(3 个月前);至今共发布 3 个版本,其中过去 12 个月发布了 3 个;首次发布于 2026/07/06。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。