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.2.tar.gz (27.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.1.2-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yoru_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 27.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.1.2.tar.gz
Algorithm Hash digest
SHA256 4709165f043de18b00d811cb24bfcc94bd4924b6b73b69a9227a1cc3c140cbf3
MD5 8c703fd98e80b9290dd8b6e00173d4a8
BLAKE2b-256 ec94edaf9f1f51f137bb3b6e8709751297d437af4b6828d254ece0d449f3c617

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: yoru_cli-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 19.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 749d905c7ac962dfac875dae950d94fb978ee017c65306148d641fd362b87bdb
MD5 8fcd046b8cebec1a2e6137b9cd5dafa9
BLAKE2b-256 31963c9a4796df1fd5b75c641d5f7733935aef4b60117d0f3e9ed1af797b9272

See more details on using hashes here.

Provenance

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