Skip to main content

yoru-cli

The Claude Code hook installer for Yoru. One command installs a PostToolUse hook that forwards every tool call, file edit, and red-flag event to a Yoru backend. Your next session shows up in the dashboard automatically.

PyPI License: MIT

Install

pipx install yoru-cli                       # or: uv tool install yoru-cli
yoru init --server https://yoru.acme.com

Use pipx/uv — a bare pip install yoru-cli fails on Homebrew/Debian Python with error: externally-managed-environment (PEP 668). No pipx? A venv works too: python3 -m venv .venv && .venv/bin/pip install yoru-cli.

Yoru is self-hosted — point the CLI at your own backend with --server. yoru init opens a pairing URL in your browser, writes ~/.claude/hooks/yoru.sh, and registers the hook in ~/.claude/settings.json. Don't have a server yet? Stand one updocker-compose up.

Requires Python 3.10+. One runtime dep: httpx.

Usage

yoru init --server https://yoru.acme.com       # pair against your server (--server required)
yoru init --server https://yoru.acme.com --token yoru_xxx --force   # non-interactive (CI / scripted rotation)

yoru tail < events.jsonl                # post a batch of events (debug)

yoru --version
yoru --help

Exit codes: 0 ok · 1 already installed (use --force) · 2 auth failed · 3 4xx · 4 5xx/network.

How the hook works

The installed script is ~20 lines of Bash that POSTs one JSON event per Claude Code tool call:

{"session_id": "…", "user": "…", "kind": "tool_use", "tool": "Bash", "content": "…"}

It uses curl --max-time 2 || true so a Yoru outage never stalls your terminal — Claude Code doesn't notice the hook is even there.

Self-host the server

The CLI is MIT. The server (backend + dashboard) is AGPL-3.0 and lives at github.com/TsukumoHQ/yoru. docker-compose up, then yoru init --server https://your-host — done. There is no hosted Yoru; you run it.

License

MIT · Copyright (c) 2026 Yoru authors. Issues and PRs welcome at github.com/TsukumoHQ/cli-yoru.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yoru_cli-0.2.0.tar.gz (39.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yoru_cli-0.2.0-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file yoru_cli-0.2.0.tar.gz.

File metadata

  • Download URL: yoru_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 39.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yoru_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b41d1c588ed255c25c6d94449f693eb29724729bc09497f5defe38ceec148b18
MD5 0b13c6e1225b048deba4a3ed5a4a7b83
BLAKE2b-256 c9bb8e47347b37efaf7546037ff4c9b68731ccba6bbbc47484282fd65ea451b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for yoru_cli-0.2.0.tar.gz:

Publisher: publish-cli.yml on helios-code/overnight-saas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yoru_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: yoru_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 31.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yoru_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bcdb40736060fef88da4185cc3a58fe467f2d42a1ecf709308344eec1f545d6f
MD5 f74416b412d5a73cf725f0577f15590d
BLAKE2b-256 238fad0b665920c555d963351698dd2bc36a9f2822769e985fd5ca59772be242

See more details on using hashes here.

Provenance

The following attestation bundles were made for yoru_cli-0.2.0-py3-none-any.whl:

Publisher: publish-cli.yml on helios-code/overnight-saas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page