Skip to main content

Yoru — audit-grade session receipts for autonomous AI coding agents.

Project description

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

yoru init opens a pairing URL in your browser, writes ~/.claude/hooks/yoru.sh, and registers the hook in ~/.claude/settings.json. By default it points at Yoru Cloud (yoru.sh) — free forever for one developer.

Requires Python 3.10+. One runtime dep: httpx.

Usage

yoru init                               # pair against https://api.yoru.sh
yoru init --server https://yoru.acme    # pair against your self-hosted server
yoru init --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/yoru-sh/yoru. docker-compose up, then yoru init --server https://your-host — done.

License

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

Project details


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.1.tar.gz (27.7 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.1-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yoru_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 27.7 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.1.tar.gz
Algorithm Hash digest
SHA256 b3a08e9df2151bd2347536a70892964452b776645984d222164cbb7448f4ebdf
MD5 7e12d85b5c7de7d2557e42a7b52b048b
BLAKE2b-256 2cd7af908a7603f765ac9b79fd5af581ed8f1c90e4532f6c71b123d0ec2a052d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: yoru_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45b2c3370e826cb7c6272fed3f526dc98d84cb1336b7eeebe303c3d2b41d749a
MD5 16419f406e2a2a101b86e8c9c5756da0
BLAKE2b-256 c4dc45ba6519aec4fad95d0f8224a2f8d210df7913e6b843b1d1e2f1df60996c

See more details on using hashes here.

Provenance

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