thoth-cli
v0.2.27
Published
π Astrological calculations from the command line. Swiss Ephemeris precision. Built for humans and agents.
Downloads
2,560
Maintainers
Readme
π thoth-cli
Hermetic astrology from the command line.
A powerful astrological calculation CLI built on Kerykeion and Swiss Ephemeris. Designed for AI agents, developers, and modern practitioners who need precise calculations with clean output.
Features
- Natal Charts β Full birth charts with planets, houses, aspects, and balances
- Transits β Current planetary positions relative to your natal chart
- Solar Returns β Annual birthday charts for year-ahead themes
- Lunar Returns β Monthly emotional cycle charts
- Synastry β Relationship compatibility between two charts
- Composite Charts β Merged relationship chart (midpoint method)
- Progressions β Secondary progressions (day-for-a-year)
- Solar Arc β Solar arc directions for timing
- Horary β Question-based divination charts with traditional rules
- Ephemeris β Position of any celestial body on any date
- Ephemeris Range β Track a planet through signs over time
- Moon Phases β Current lunar phase and position
- Symbol Reference β Complete guide to astrological symbols and meanings
- Sephirotic Colors β Kabbalistic color correspondences throughout
- JSON Output β Machine-readable output for AI/automation
Installation
npm install -g thoth-cliThe binary downloads automatically on first install (~18MB).
Quick Start
# Natal chart
thoth chart --date 1879-03-14 --time 11:30 --city "New York"
# Current transits
thoth transit --natal-date 1879-03-14 --natal-time 11:30 --city "New York"
# Solar return for 2026
thoth solar-return --natal-date 1879-03-14 --natal-time 11:30 --city "New York" --year 2026
# Horary divination
thoth horary --question "Should I take the job?" --city "New York"
# Relationship synastry
thoth synastry --date1 1879-03-14 --time1 11:30 --city1 "NYC" \
--date2 1990-03-15 --time2 09:30 --city2 "LA"
# Moon phase
thoth moon
# Where is Pluto?
thoth ephemeris --body pluto
# Symbol reference
thoth keyCommands
thoth chart β Natal Chart
Calculate a complete birth chart.
thoth chart --date 1879-03-14 --time 11:30 --city "New York"
thoth chart --date 1879-03-14 --time 11:30 --lat 40.7128 --lng -74.0060
thoth chart --date 1879-03-14 --time 11:30 --city "New York" --svg-file chart.svg| Flag | Description | Required |
|------|-------------|----------|
| --date | Birth date (YYYY-MM-DD) | Yes |
| --time | Birth time (HH:MM) | Yes |
| --city | City name | Yes* |
| --nation | Country code (default: US) | No |
| --lat / --lng | Coordinates | Yes* |
| --name | Name for the chart | No |
| --svg | Output SVG chart | No |
| --svg-file | Save SVG to file | No |
| --json | Output raw JSON | No |
*Either --city or both --lat and --lng required.
thoth transit β Current Transits
Calculate transits to a natal chart.
thoth transit --natal-date 1879-03-14 --natal-time 11:30 --city "New York"
thoth transit --natal-date 1879-03-14 --natal-time 11:30 --city "NYC" --orb 1| Flag | Description | Required |
|------|-------------|----------|
| --natal-date | Birth date | Yes |
| --natal-time | Birth time | Yes |
| --city | City name | Yes* |
| --lat / --lng | Coordinates | Yes* |
| --transit-date | Transit date (default: today) | No |
| --orb | Aspect orb in degrees (default: 3) | No |
| --json | Output raw JSON | No |
thoth solar-return β Annual Chart
Calculate solar return chart for a specific year.
thoth solar-return --natal-date 1879-03-14 --natal-time 11:30 --city "NYC" --year 2026| Flag | Description | Required |
|------|-------------|----------|
| --natal-date | Birth date | Yes |
| --natal-time | Birth time | Yes |
| --city | City name | Yes |
| --year | Return year | Yes |
| --json | Output raw JSON | No |
thoth lunar-return β Monthly Chart
Calculate next lunar return from a given date.
thoth lunar-return --natal-date 1879-03-14 --natal-time 11:30 --city "NYC" --from 2026-03-01| Flag | Description | Required |
|------|-------------|----------|
| --natal-date | Birth date | Yes |
| --natal-time | Birth time | Yes |
| --city | City name | Yes |
| --from | Date to search from | Yes |
| --json | Output raw JSON | No |
thoth synastry β Relationship Aspects
Calculate synastry aspects between two charts.
thoth synastry --date1 1879-03-14 --time1 11:30 --city1 "NYC" \
--date2 1990-03-15 --time2 09:30 --city2 "LA"| Flag | Description | Required |
|------|-------------|----------|
| --date1 / --time1 | Person 1 birth data | Yes |
| --city1 or --lat1/--lng1 | Person 1 location | Yes |
| --date2 / --time2 | Person 2 birth data | Yes |
| --city2 or --lat2/--lng2 | Person 2 location | Yes |
| --orb | Aspect orb (default: 6) | No |
| --json | Output raw JSON | No |
thoth composite β Relationship Chart
Calculate composite (midpoint) chart for a relationship.
thoth composite --date1 1879-03-14 --time1 11:30 --city1 "NYC" \
--date2 1990-03-15 --time2 09:30 --city2 "LA"Same options as synastry. Creates a merged chart representing the relationship itself.
thoth progressions β Secondary Progressions
Calculate secondary progressions (day-for-a-year method).
thoth progressions --natal-date 1879-03-14 --natal-time 11:30 --city "NYC" \
--target-date 2026-03-01| Flag | Description | Required |
|------|-------------|----------|
| --natal-date | Birth date | Yes |
| --natal-time | Birth time | Yes |
| --city or --lat/--lng | Birth location | Yes |
| --target-date | Progression target date | Yes |
| --json | Output raw JSON | No |
thoth solar-arc β Solar Arc Directions
Calculate solar arc directions (all planets advance by Sun's arc).
thoth solar-arc --natal-date 1879-03-14 --natal-time 11:30 --city "NYC" \
--target-date 2026-03-01Same options as progressions. Shows directed positions and aspects to natal.
thoth horary β Question Divination
Cast a horary chart for yes/no or situational questions.
thoth horary --question "Should I take the job?" --city "New York"
thoth horary --question "Will we reconcile?" --lat 40.7128 --lng -74.0060| Flag | Description | Required |
|------|-------------|----------|
| --question | Your question | Yes |
| --city or --lat/--lng | Your current location | Yes |
| --json | Output raw JSON | No |
Output includes:
- Planetary hour and day ruler
- Strictures against judgment (void of course, etc.)
- Querent significator (1st house ruler)
- Quesited significator (relevant house ruler)
- Moon's last and next aspects
- Reception and dignity analysis
thoth moon β Lunar Phase
Get current moon phase and position.
thoth moon
thoth moon --date 2026-03-14thoth ephemeris β Planet Position
Get the position of any celestial body.
thoth ephemeris --body pluto
thoth ephemeris --body saturn --date 2027-01-15Bodies: sun, moon, mercury, venus, mars, jupiter, saturn, uranus, neptune, pluto
thoth ephemeris-range β Track Planet Over Time
Get ephemeris positions over a date range.
thoth ephemeris-range --body pluto --from 2024-01-01 --to 2030-01-01 --step month| Flag | Description | Required |
|------|-------------|----------|
| --body | Celestial body | Yes |
| --from | Start date | Yes |
| --to | End date | Yes |
| --step | Interval: day, week, month | No (default: month) |
thoth key β Symbol Reference
Display the complete astrological symbol reference.
thoth keyIncludes:
- Planets β meanings, rulerships, Sephirotic correspondences
- Points β Chiron, Lilith, Nodes
- Zodiac Signs β element, modality, ruler, "I AM" mantras
- Houses β all 12 life areas
- Aspects β degrees, meanings, orbs
- Elements & Modalities
- Dignities β domicile, exaltation, detriment, fall
Color System
thoth-cli uses Sephirotic colors based on Kabbalistic correspondences:
| Planet | Sephira | Color | |--------|---------|-------| | β Sun | Tiphareth | Gold | | β½ Moon | Yesod | Silver | | βΏ Mercury | Hod | Orange | | β Venus | Netzach | Green | | β Mars | Geburah | Red | | β Jupiter | Chesed | Royal Blue | | β Saturn | Binah | Indigo | | β Uranus | Chokmah | Cyan | | β Neptune | β | Sea Green | | β Pluto | β | Dark Red |
JSON Output
All commands support --json for programmatic use:
thoth chart --date 1879-03-14 --time 11:30 --city "NYC" --json
thoth horary --question "Test" --city "NYC" --jsonPerfect for AI agents, automation, and integration.
Privacy
thoth-cli collects no data. Ever.
- β All calculations run locally
- β No analytics, no telemetry, no tracking
- β No network requests except city geocoding (via GeoNames)
- β Your birth data stays on your machine
Environment Variables
| Variable | Purpose |
|----------|---------|
| KERYKEION_GEONAMES_USERNAME | Custom GeoNames username for geocoding (optional, avoids rate limits) |
Get a free username at geonames.org/login
Development
git clone https://github.com/aklo360/thoth-cli.git
cd thoth-cli
# Python core
cd packages/core
python -m venv .venv
source .venv/bin/activate
pip install -e .
# TypeScript CLI
cd ../cli
npm install
npm run build
# Test
node dist/bin.js chart --date 1879-03-14 --time 11:30 --city "New York"Credits
- Kerykeion β Python astrology library
- Swiss Ephemeris β Precise planetary calculations
- Commander.js β CLI framework
License
MIT β Use it for anything. Free forever.
"As above, so below; as the universe, so the soul."
π
