GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gaiaaiagent/regen-claims-cli: Stateless CLI for the Regen Network Claims Engine — sister to regen-claims-mcp

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
regen_claims_cli
regen_claims_cli
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SKILL.md
SKILL.md
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

regen-claims-cli

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)

Why a CLI when there's already an MCP?

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.

Install

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

Authentication

Token-discovery order:

  1. --api-key <token> flag
  2. KOI_API_KEY env var (service tokens for CI / backend-to-backend)
  3. ~/.koi-auth.json (OAuth, written by regen-koi-mcp's regen_koi_authenticate tool)

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.

Usage

Claims

# 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

Verification policy (attestation gates)

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.

Attestations

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>

Commitments (hackathon extension)

regen-claims commit draft "I can offer 20 hours of permaculture consulting through June"
regen-claims commit pool-routes --commitment-rid <rid>

Auth diagnostics

regen-claims auth status

Output

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>

Configuration

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

Claude Code skill

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.

Common errors

  • 401 Unauthorized on writes → regen-claims auth status. If "NOT authenticated" or "EXPIRED", re-run regen_koi_authenticate from regen-koi-mcp.
  • 422 Reviewer / claimant entity not found → the URI isn't registered. Run regen-claims auth whoami to see your known URIs, or use resolve_entity from regen-koi-mcp.
  • 409 need ≥ N approved attestations → see the verification policy table above. You need peer attestations before advancing to peer_reviewed or verified.
  • 409 Self-attestation not allowed → reviewer URI cannot match the claim's claimant URI. Use a different entity or a second team member.
  • anchor returns 202 → broadcast accepted, confirmation pending. Call claim reconcile <rid> after ~60s.

Related

  • 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)

License

MIT

About

Stateless CLI for the Regen Network Claims Engine — sister to regen-claims-mcp

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.