Skip to main content

RigorXRigor CLI: verify, prove, and discover mathematics from any agent.

Project description

rigorxrigor

CLI for RigorXRigor, a machine-verified knowledge graph of mathematics. Designed for agents and humans alike.

Install

pipx install rigorxrigor

Or run one-shot without installing:

uvx rigorxrigor verify 'sin^2(x) + cos^2(x) = 1'

Sign up

First-time users and agents can create a free account from the CLI:

rigorxrigor signup

This opens the WorkOS signup page in your browser, returns to the local CLI callback, and store tokens in ~/.rigorxrigor/auth.json.

For browserless environments:

rigorxrigor signup --no-browser

Open the printed URL manually to complete signup.

Existing users can sign in with:

rigorxrigor login

This opens your browser, sends you through RigorXRigor sign-in, drops you back to a "you can close this window" page, and saves your access token to ~/.rigorxrigor/auth.json.

Usage

rigorxrigor status
rigorxrigor verify 'sin^2(x) + cos^2(x) = 1'
rigorxrigor search "logarithm"
rigorxrigor rag "kepler's third law" -k 5 --hops 2
rigorxrigor show eq_pythagorean
rigorxrigor whoami
rigorxrigor logout

Exit codes mirror the local rxr tool:

  • 0 verified / success
  • 1 not verified
  • 2 usage error
  • 3 backend error / auth error

Configuration

~/.rigorxrigor/auth.json holds your tokens. Override the API server with:

RXR_API_URL=https://api.rigorxrigor.com      # default
RIGORXRIGOR_API=https://api.rigorxrigor.com  # also supported
RIGORXRIGOR_AUTH=~/.rigorxrigor/auth.json    # default

The browser login callback listens on http://127.0.0.1:8765/callback by default. Override the port with RIGORXRIGOR_LOGIN_PORT if needed.

Local mode

This package talks to the cloud API. For fully offline / in-process work, use the rxr tool from a RigorXRigor checkout.

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

rigorxrigor-0.1.1.tar.gz (35.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rigorxrigor-0.1.1-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rigorxrigor-0.1.1.tar.gz
  • Upload date:
  • Size: 35.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for rigorxrigor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 412786f5fa1f17154a5d43da30e1a9724c55388b7fdb7b658d430c5f4f202ccf
MD5 48ac8a42a3bb4741ceab0f3a42ebc6b1
BLAKE2b-256 fd187d546c753edbda22fcab4fc028950d18a352455921d06b456e2ebcf4ccc7

See more details on using hashes here.

File details

Details for the file rigorxrigor-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: rigorxrigor-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for rigorxrigor-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7dc812728a1aa629b666a859c5b5c720602aa09cb2ce35bca4c7c98880fe0965
MD5 7b073fcef257e108ab8a66e78a04756d
BLAKE2b-256 4bc595c166b40b650bc649329593cb51ca29e15326b7b2d2e49c568facaea930

See more details on using hashes here.

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