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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4709165f043de18b00d811cb24bfcc94bd4924b6b73b69a9227a1cc3c140cbf3
|
|
| MD5 |
8c703fd98e80b9290dd8b6e00173d4a8
|
|
| BLAKE2b-256 |
ec94edaf9f1f51f137bb3b6e8709751297d437af4b6828d254ece0d449f3c617
|
Provenance
The following attestation bundles were made for yoru_cli-0.1.2.tar.gz:
Publisher:
publish-cli.yml on helios-code/overnight-saas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yoru_cli-0.1.2.tar.gz -
Subject digest:
4709165f043de18b00d811cb24bfcc94bd4924b6b73b69a9227a1cc3c140cbf3 - Sigstore transparency entry: 1368339598
- Sigstore integration time:
-
Permalink:
helios-code/overnight-saas@9847d83cd57e359f3c8ae06e6d7796383906ba9e -
Branch / Tag:
refs/tags/cli-v0.1.2 - Owner: https://github.com/helios-code
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-cli.yml@9847d83cd57e359f3c8ae06e6d7796383906ba9e -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
749d905c7ac962dfac875dae950d94fb978ee017c65306148d641fd362b87bdb
|
|
| MD5 |
8fcd046b8cebec1a2e6137b9cd5dafa9
|
|
| BLAKE2b-256 |
31963c9a4796df1fd5b75c641d5f7733935aef4b60117d0f3e9ed1af797b9272
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yoru_cli-0.1.2-py3-none-any.whl -
Subject digest:
749d905c7ac962dfac875dae950d94fb978ee017c65306148d641fd362b87bdb - Sigstore transparency entry: 1368339605
- Sigstore integration time:
-
Permalink:
helios-code/overnight-saas@9847d83cd57e359f3c8ae06e6d7796383906ba9e -
Branch / Tag:
refs/tags/cli-v0.1.2 - Owner: https://github.com/helios-code
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-cli.yml@9847d83cd57e359f3c8ae06e6d7796383906ba9e -
Trigger Event:
push
-
Statement type: