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.
Headless agents
Agents should not need a human browser session at runtime. Put a WorkOS/RxR bearer access token in a secret-backed environment variable:
export RIGORXRIGOR_TOKEN=...
rigorxrigor whoami
The CLI also accepts RXR_ACCESS_TOKEN. To persist a token into the normal CLI
auth file for a job image or local agent profile:
rigorxrigor auth import-token --token-env RIGORXRIGOR_TOKEN
rigorxrigor auth status
rigorxrigor logout clears saved credentials. If RIGORXRIGOR_TOKEN or
RXR_ACCESS_TOKEN is still set, that process is still authenticated.
Usage
rigorxrigor agent-guide
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 bridges eq_pythagorean --limit 20
rigorxrigor whoami
rigorxrigor logout
For agents, start with rigorxrigor agent-guide. The intended workflow is
cross-domain graph traversal: use rag with --hops 2 or --hops 3, inspect
promising context nodes with show, use bridges to find cross-area
connections, verify formulas before treating them as constraints, then re-query
with useful area/operator/variable terms from the context rows.
Exit codes mirror the local rxr tool:
0verified / success1not verified2usage error3backend 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
RIGORXRIGOR_TIMEOUT=180 # request/read timeout in seconds
RIGORXRIGOR_CONNECT_TIMEOUT=15 # connect timeout in seconds
The browser login callback listens on http://127.0.0.1:8765/callback by
default. Override the port with RIGORXRIGOR_LOGIN_PORT if needed.
You can also set timeout per command:
rigorxrigor --timeout 240 rag "cross-domain design question" -k 10 --hops 2
The intended agent workflow is cross-domain graph traversal. Longer request timeouts are deliberate: search/RAG may need remote embedding plus graph context expansion during concurrent benchmark runs.
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
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 rigorxrigor-0.1.2.tar.gz.
File metadata
- Download URL: rigorxrigor-0.1.2.tar.gz
- Upload date:
- Size: 44.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac9eed9576d19a82d0702079cec02b8e483695afe9474631c80faaf7381d0181
|
|
| MD5 |
e44eb2401805ff5eb74a09547b269cf3
|
|
| BLAKE2b-256 |
d16c445f58b5ad11fcc57487fc0322fd5fba4786672a5f317f22a52121ff35e7
|
File details
Details for the file rigorxrigor-0.1.2-py3-none-any.whl.
File metadata
- Download URL: rigorxrigor-0.1.2-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cab4449c65f8cacd68dd9415c7d921f290eec5a4a2973be7ce3968517555b000
|
|
| MD5 |
a35aa8ea36f16a69bd3be6d82f7dc4e5
|
|
| BLAKE2b-256 |
4756e8d1ec7ad5582a9dc0f6e78cf60246cb59d96bdcdcd68603b449b4d37d83
|