Skip to content

amenti-labs/opendivination

OpenDivination

OpenDivination

PyPI CI License Python versions

OpenDivination is an experiment in what happens when LLMs get divination tools.

It is built for two use cases:

  • standard human/LLM divination sessions
  • LLMs using divination for their own reflective thinking, brainstorming, and purpose-finding

The current SDK and CLI cover:

  • tarot draws
  • I Ching casts
  • auditable entropy provenance
  • one stable text-only tarot resonance mode
  • coherence scoring (semantic similarity between question and drawn symbol)

The product surface is intentionally small:

  • selection mode by default
  • csprng by default
  • QRNG and resonance are opt-in

Quickstart

npx skills add amenti-labs/opendivination --skill divination-setup --skill divination

Use the skills in this order:

  • start with divination-setup to install or update OpenDivination and run first-run source setup
  • then use divination for tarot draws, I Ching casts, source inspection, and provenance-aware results
  • keep csprng as the default unless the user explicitly chooses QRNG or local hardware

Detailed skill docs:

  • skills/AGENTS.md
  • skills/divination-setup/SKILL.md
  • skills/divination/SKILL.md
  • skills/divination/references/cli.md

CLI

If you want to use OpenDivination directly without the skills:

uv tool install opendivination
opendivination setup
opendivination draw tarot --json
opendivination draw iching --method yarrow --json
opendivination sources --json

GitHub fallback:

uv tool install git+https://github.com/amenti-labs/opendivination.git

Python SDK:

pip install opendivination

If you prefer pipx, it also works for non-system Python installs.

opendivination setup writes ~/.config/opendivination/config.json and can keep the default csprng path, save remote QRNG credentials, or select detected local hardware.

Sources

OpenDivination keeps csprng as the default, but the experiment can also use remote and physical quantum paths:

  • csprng: default software RNG
  • remote QRNG: prefer outshift, with anu also supported
  • local hardware: qcicada via openentropy

For Outshift setup, create an account at https://qrng.outshift.com/, generate an API key, and either save it through opendivination setup or set OUTSHIFT_QRNG_API_KEY in your environment.

If trust or randomness provenance matters, inspect:

  • provenance.source_id
  • provenance.is_quantum

Important defaults:

  • csprng remains the default until the user explicitly changes it
  • openentropy is not a default
  • prefer qcicada over the aggregate openentropy source when the user wants the strongest local quantum path

QCicada hardware support is currently verified on Python 3.13. The base package works on Python 3.14, but the openentropy dependency does not build there yet.

Resonance

Resonance is a single stable text-only tarot path. It is opt-in and requires an embedding runtime.

opendivination draw tarot \
  --mode resonance \
  --embed-provider local \
  --embed-model nomic-embed-text \
  --json

Coherence scoring is also opt-in:

opendivination draw tarot -q "What should I focus on?" --embed-provider local --json
opendivination draw iching -q "How should I proceed?" --embed-provider local --json

Development

pip install -e ".[dev]"
pytest
ruff check src tests skills/divination/scripts skills/divination-setup/scripts
mypy src
python3 skills/divination-setup/scripts/run_opendivination.py --check
python3 skills/divination/scripts/run_opendivination.py --check

About

Open-source tarot and I Ching SDK with auditable entropy sources, QRNG support, and an agent-ready skill.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages