Command-line interface for the Regen Network Claims Engine. Stateless wrapper over the koi-processor REST API. JSON output by default — pipeable through jq, xargs, etc.
Live dashboard: https://regen.gaiaai.xyz/claims MCP equivalent: https://github.com/gaiaaiagent/regen-claims-mcp (use whichever fits your workflow — same auth, same backend)
Different tradeoffs:
| CLI (this) | MCP | |
|---|---|---|
| Context cost | Zero until invoked | ~8K tokens loaded at session start |
| Composability | Unix pipes (jq, xargs, ...) |
JSON-RPC calls only |
| Outside Claude Code | cron, shell scripts, CI | No |
| Iteration | pip install -U, no restart |
Republish + restart Claude Code |
| Cross-runtime | Wherever there's a shell | Any MCP-aware client |
| Type safety | None (stringly-typed) | Schemas enforced |
Use both. Same backend, same auth (~/.koi-auth.json), same data.
pip install --user git+https://github.com/gaiaaiagent/regen-claims-cli.git # Or from source: git clone https://github.com/gaiaaiagent/regen-claims-cli.git cd regen-claims-cli && pip install -e .
Verify:
regen-claims --version regen-claims auth status
Token-discovery order:
--api-key <token>flagKOI_API_KEYenv var (service tokens for CI / backend-to-backend)~/.koi-auth.json(OAuth, written byregen-koi-mcp'sregen_koi_authenticatetool)
If you've authenticated through regen-koi-mcp once, this CLI just works. Reads work without auth — only writes need it.
To authenticate fresh: in Claude Code, run the regen_koi_authenticate tool (from regen-koi-mcp), open https://regen.gaiaai.xyz/activate, sign in with your @regen.network email. The token is shared.
# Search regen-claims claim search --limit 5 regen-claims claim search --type ecological --verification verified # Get one regen-claims claim get <claim_rid> # Create regen-claims claim create \ --claimant 'https://regen.network/org/<id>' \ --statement "Restored 500 hectares of mangrove habitat in Q1 2026" \ --type ecological \ --metadata '{"quantity": 500, "unit": "hectares"}' # Verify (advance level) regen-claims claim verify <rid> peer_reviewed --actor "[email protected]" --reason "..." # Find your entity URIs (needed for --claimant and --reviewer) regen-claims auth whoami # Link evidence regen-claims claim link-evidence <rid> <evidence_uri> # AI extraction (from stdin or --from-file) cat report.txt | regen-claims claim extract --source <doc_rid> --auto-create # On-chain regen-claims claim anchor <rid> # broadcasts MsgAnchor regen-claims claim reconcile <rid> # check pending status regen-claims claim proof <rid> # download verification bundle
| Level | Requirement |
|---|---|
self_reported |
none — default on create |
peer_reviewed |
≥ 1 approved attestation |
verified |
≥ 2 approved attestations from different reviewers |
ledger_anchored |
set by claim anchor, not claim verify |
Self-attestation is blocked: --reviewer URI cannot match the claim's --claimant URI.
regen-claims attest create <rid> \ --reviewer 'https://regen.network/person/<id>' \ --verdict approved \ --rationale "Verified against satellite imagery" regen-claims attest list <rid> regen-claims attest get <rid> <attestation_rid> regen-claims attest anchor <rid> <attestation_rid>
regen-claims commit draft "I can offer 20 hours of permaculture consulting through June" regen-claims commit pool-routes --commitment-rid <rid>
regen-claims auth status
Default: compact JSON to stdout (pipeable). Errors → stderr, non-zero exit code.
# JSON to jq regen-claims claim search --limit 50 \ | jq '.[] | select(.verification == "ledger_anchored") | .claim_rid' # Pretty-print (option goes BEFORE the subcommand) regen-claims --pretty claim get <rid>
| Var | Default | Override |
|---|---|---|
| Endpoint | https://regen.gaiaai.xyz |
KOI_API_ENDPOINT env or --endpoint flag |
| Bearer | ~/.koi-auth.json |
KOI_API_KEY env or --api-key flag |
This package ships with a SKILL.md that Claude Code loads conditionally when claims-related context is detected. To install the skill:
mkdir -p ~/.claude/skills/regen-claims cp SKILL.md ~/.claude/skills/regen-claims/
Once installed, Claude Code will automatically use this CLI for claims-related work — no MCP server, no upfront token cost.
401 Unauthorizedon writes →regen-claims auth status. If "NOT authenticated" or "EXPIRED", re-runregen_koi_authenticatefromregen-koi-mcp.422 Reviewer / claimant entity not found→ the URI isn't registered. Runregen-claims auth whoamito see your known URIs, or useresolve_entityfromregen-koi-mcp.409 need ≥ N approved attestations→ see the verification policy table above. You need peer attestations before advancing topeer_reviewedorverified.409 Self-attestation not allowed→ reviewer URI cannot match the claim's claimant URI. Use a different entity or a second team member.anchorreturns 202 → broadcast accepted, confirmation pending. Callclaim reconcile <rid>after ~60s.
- regen-claims-mcp — same surface area as MCP tools (load into Claude Code via stdio)
- regen-koi-mcp — KOI knowledge search + the canonical auth flow (
regen_koi_authenticate) - koi-processor — backend (REST API + claims router source)
MIT