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

pip install yoru-cli
yoru init --server https://yoru.acme.com

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.1.3.tar.gz (36.3 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.1.3-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yoru_cli-0.1.3.tar.gz
  • Upload date:
  • Size: 36.3 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.1.3.tar.gz
Algorithm Hash digest
SHA256 cf615e4d4f8583292c1017954602a651ea7efc9d474d0e970755aa6779fdfe71
MD5 4f12f49276af417954c14eabb1cb8e42
BLAKE2b-256 2f639595799c1f7a59295f7544c788b312c924aebf98d666b2d0aa67aba2db85

See more details on using hashes here.

Provenance

The following attestation bundles were made for yoru_cli-0.1.3.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.1.3-py3-none-any.whl.

File metadata

  • Download URL: yoru_cli-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 27.5 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.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 833ab6980d8c2cc69adb4a36c4d8018cfae86c0e75024a11d1d8169935d213e6
MD5 ee3f0bde1678133fc5cb5ae0d8e4888a
BLAKE2b-256 34786b6fc614fb91c15d1896ccbe9a5dba2be58a049b3be99ceb4991d06f281e

See more details on using hashes here.

Provenance

The following attestation bundles were made for yoru_cli-0.1.3-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