{"id":50390837,"url":"https://github.com/utensils/claudex","last_synced_at":"2026-05-30T18:00:32.131Z","repository":{"id":352165048,"uuid":"1214078851","full_name":"utensils/claudex","owner":"utensils","description":"Query, search, and analyze Claude Code sessions.","archived":false,"fork":false,"pushed_at":"2026-05-30T17:11:14.000Z","size":333,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T17:11:18.164Z","etag":null,"topics":["anthropic","claude","claude-code","cli","developer-tools","fts5","observability","rust","session-analysis","sqlite"],"latest_commit_sha":null,"homepage":"https://utensils.io/claudex/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/utensils.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-18T05:07:34.000Z","updated_at":"2026-05-30T16:20:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/utensils/claudex","commit_stats":null,"previous_names":["utensils/claudex"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/utensils/claudex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utensils%2Fclaudex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utensils%2Fclaudex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utensils%2Fclaudex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utensils%2Fclaudex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utensils","download_url":"https://codeload.github.com/utensils/claudex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utensils%2Fclaudex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33703065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anthropic","claude","claude-code","cli","developer-tools","fts5","observability","rust","session-analysis","sqlite"],"created_at":"2026-05-30T18:00:24.943Z","updated_at":"2026-05-30T18:00:32.121Z","avatar_url":"https://github.com/utensils.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# claudex\n\n[![CI](https://github.com/utensils/claudex/actions/workflows/ci.yml/badge.svg)](https://github.com/utensils/claudex/actions/workflows/ci.yml)\n[![Deploy Docs](https://github.com/utensils/claudex/actions/workflows/pages.yml/badge.svg)](https://github.com/utensils/claudex/actions/workflows/pages.yml)\n[![codecov](https://codecov.io/gh/utensils/claudex/graph/badge.svg)](https://codecov.io/gh/utensils/claudex)\n\n**Query, search, and analyze Claude Code sessions from the command line.**\n\nclaudex reads the JSONL transcripts Claude Code writes under `~/.claude/projects/`, indexes them into a local SQLite database at `~/.claudex/index.db`, and exposes reports as subcommands. It can also summarize OpenAI Codex CLI state from `~/.codex`. Every read command supports `--json` for machine-readable output; most Claude Code reports also support `--no-index` to bypass the index and scan files directly.\n\n📚 **Docs:** \u003chttps://utensils.io/claudex/\u003e — guide, per-command reference, index schema, pricing.\n\n---\n\n## Quickstart\n\n```bash\nclaudex summary                              # dashboard: sessions, cost, top projects, model mix\nclaudex summary --plan flat-monthly:250      # reframe cost for a flat subscription (Pro/Pro Max)\nclaudex codex                                # Codex CLI session/state stats\nclaudex sessions --limit 10                  # recent sessions\nclaudex session 3f2a1b                       # drill into one session (ID prefix or project name)\nclaudex search \"migration\"                   # full-text search across all transcripts\nclaudex cost --per-session                   # token \u0026 cost breakdown\nclaudex export 3f2a1b --format markdown \u003e session.md\n```\n\nSee the [flag support matrix](https://utensils.io/claudex/commands/) for per-command `--json` / `--no-index` coverage.\n\n## Install\n\nPick one. All four paths are covered in depth in the [installation guide](https://utensils.io/claudex/guide/installation) — pinning, module inputs, verification.\n\n### Install script — macOS + Linux\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/utensils/claudex/main/install.sh | sh\n```\n\nFetches a prebuilt, stripped, SHA256-verified binary into `~/.local/bin/claudex`. Override with `CLAUDEX_VERSION=v0.5.2` or `CLAUDEX_INSTALL_DIR=/usr/local/bin`. \u003c!-- x-release-please-version --\u003e\n\n### Cargo\n\n\u003c!-- x-release-please-start-version --\u003e\n\n```bash\ncargo install --git https://github.com/utensils/claudex --tag v0.5.2 claudex\n```\n\n\u003c!-- x-release-please-end-version --\u003e\n\n### AUR — Arch Linux\n\n```bash\nparu -S claudex-bin      # prebuilt binary (fastest)\nparu -S claudex          # build from source\nparu -S claudex-git      # track main HEAD\n```\n\nMaintained in-tree at [`packaging/aur/`](./packaging/aur/) and auto-published on every release.\n\n### Nix flake\n\n```bash\nnix run     github:utensils/claudex -- summary    # run without installing\nnix profile install github:utensils/claudex       # install into user profile\nnix build   github:utensils/claudex               # build locally → ./result/bin/claudex\n```\n\nAs a flake input:\n\n```nix\ninputs.claudex.url = \"github:utensils/claudex\";\n```\n\nSource builds require Rust 1.95+. Prebuilt binaries have no runtime dependencies.\n\n## Subcommands\n\n| Command                                                                   | What it does                                                              |\n| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- |\n| [`summary`](https://utensils.io/claudex/commands/summary)                 | Dashboard — sessions, cost, top projects/tools, model mix                 |\n| [`codex`](https://utensils.io/claudex/commands/codex)                     | Codex CLI session/state stats from `~/.codex`                             |\n| [`sessions`](https://utensils.io/claudex/commands/sessions)               | List sessions grouped by project                                          |\n| [`session \u003cselector\u003e`](https://utensils.io/claudex/commands/session)      | Drill into one session: cost, tools, files, PRs, turns, stop reasons      |\n| [`cost`](https://utensils.io/claudex/commands/cost)                       | Token usage and approximate cost per project or per session               |\n| [`search \u003cquery\u003e`](https://utensils.io/claudex/commands/search)           | Full-text search across session messages (FTS5), with JSON hits           |\n| [`tools`](https://utensils.io/claudex/commands/tools)                     | Tool usage frequency                                                      |\n| [`models`](https://utensils.io/claudex/commands/models)                   | Per-model call counts, token usage, and cost                              |\n| [`turns`](https://utensils.io/claudex/commands/turns)                     | Per-turn timing (avg / p50 / p95 / max)                                   |\n| [`prs`](https://utensils.io/claudex/commands/prs)                         | Sessions linked to pull requests                                          |\n| [`files`](https://utensils.io/claudex/commands/files)                     | Most frequently modified files across sessions                            |\n| [`export \u003cselector\u003e`](https://utensils.io/claudex/commands/export)        | Export a session transcript as Markdown or JSON                           |\n| [`watch`](https://utensils.io/claudex/commands/watch)                     | Tail Claude Code's debug log in real time                                 |\n| [`index`](https://utensils.io/claudex/commands/index-cmd)                 | Manage the session index (normally updated automatically)                 |\n| [`update`](https://utensils.io/claudex/commands/update)                   | Self-update claudex, or print the right upgrade recipe for Nix/cargo/brew |\n| [`completions \u003cshell\u003e`](https://utensils.io/claudex/commands/completions) | Generate shell completions (bash, zsh, fish, elvish, powershell)          |\n\nGlobal flag: `--color auto|always|never` (respects `NO_COLOR`).\n\n## Documentation\n\n- [Quickstart](https://utensils.io/claudex/guide/quickstart) — first five minutes.\n- [How it works](https://utensils.io/claudex/guide/architecture) — data flow, modules, key invariants.\n- [The index](https://utensils.io/claudex/guide/indexing) — sync semantics, staleness window.\n- [JSON output](https://utensils.io/claudex/guide/json-output) — stable shapes for pipelines.\n- [Recipes](https://utensils.io/claudex/guide/recipes) — copy-paste one-liners.\n- [Reference](https://utensils.io/claudex/reference/) — file layout, index schema, pricing.\n\n## Development\n\n```bash\ngit clone https://github.com/utensils/claudex\ncd claudex\nnix develop        # auto via direnv + use_flake\nci-local           # fmt-check → check → clippy → test → build\n```\n\nAdditional commands: `coverage` runs `cargo llvm-cov` (pass `--html` for a browsable report). See [CLAUDE.md](CLAUDE.md) for the full development guide.\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futensils%2Fclaudex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futensils%2Fclaudex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futensils%2Fclaudex/lists"}