data
Celestial CLI for AI Agents
Use the Celestial CLI from KosmoKrator to call Celestial tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.Celestial CLI Setup
Celestial can be configured headlessly with `kosmokrator integrations:configure celestial`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure celestial --enable --read allow --write ask --json
kosmokrator integrations:doctor celestial --json
kosmokrator integrations:status --json Credentials
Authentication type: No credentials none. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.
No credentials are required.
Command Patterns
The generic command is stable across every integration. The provider shortcut is shorter for humans.
kosmo integrations:call celestial.celestial_moon_phase '{"date":"example_date","timezone":"example_timezone"}' --json kosmo integrations:celestial celestial_moon_phase '{"date":"example_date","timezone":"example_timezone"}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs celestial --json
kosmo integrations:docs celestial.celestial_moon_phase --json
kosmo integrations:schema celestial.celestial_moon_phase --json
kosmo integrations:search "Celestial" --json
kosmo integrations:list --json Automation Contexts
The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.
CLI Functions
Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.
celestial.celestial_moon_phase
Get current moon phase, illumination percentage, age, zodiac sign, and dates of next new/full moon.
read - Parameters
- date, timezone
kosmo integrations:call celestial.celestial_moon_phase '{"date":"example_date","timezone":"example_timezone"}' --json kosmo integrations:celestial celestial_moon_phase '{"date":"example_date","timezone":"example_timezone"}' --json celestial.celestial_sun_info
Get sunrise/sunset times, solar altitude/azimuth, twilight phase, day length, and zodiac position for a location.
read - Parameters
- latitude, longitude, date, timezone
kosmo integrations:call celestial.celestial_sun_info '{"latitude":1,"longitude":1,"date":"example_date","timezone":"example_timezone"}' --json kosmo integrations:celestial celestial_sun_info '{"latitude":1,"longitude":1,"date":"example_date","timezone":"example_timezone"}' --json celestial.celestial_moon_info
Get moon position, illumination, and visibility from a specific location.
read - Parameters
- latitude, longitude, date, timezone
kosmo integrations:call celestial.celestial_moon_info '{"latitude":1,"longitude":1,"date":"example_date","timezone":"example_timezone"}' --json kosmo integrations:celestial celestial_moon_info '{"latitude":1,"longitude":1,"date":"example_date","timezone":"example_timezone"}' --json celestial.celestial_planet_position
Get planet altitude/azimuth, zodiac position, and rise/set times. Set planet to "all" for an overview of all planets.
read - Parameters
- latitude, longitude, planet, date, timezone
kosmo integrations:call celestial.celestial_planet_position '{"latitude":1,"longitude":1,"planet":"example_planet","date":"example_date","timezone":"example_timezone"}' --json kosmo integrations:celestial celestial_planet_position '{"latitude":1,"longitude":1,"planet":"example_planet","date":"example_date","timezone":"example_timezone"}' --json celestial.celestial_solar_eclipse
Get solar eclipse data for a specific date and location — eclipse type, obscuration, contacts, and magnitude.
read - Parameters
- date, latitude, longitude
kosmo integrations:call celestial.celestial_solar_eclipse '{"date":"example_date","latitude":1,"longitude":1}' --json kosmo integrations:celestial celestial_solar_eclipse '{"date":"example_date","latitude":1,"longitude":1}' --json celestial.celestial_lunar_eclipse
Get lunar eclipse data for a specific date — eclipse type, magnitude, gamma, contact times (P1-P4, U1-U4), and semi-durations.
read - Parameters
- date
kosmo integrations:call celestial.celestial_lunar_eclipse '{"date":"example_date"}' --json kosmo integrations:celestial celestial_lunar_eclipse '{"date":"example_date"}' --json celestial.celestial_night_sky
Get what's visible in the night sky right now: sun/moon/planet positions, darkness level, and stargazing quality for a location.
read - Parameters
- latitude, longitude, timezone
kosmo integrations:call celestial.celestial_night_sky '{"latitude":1,"longitude":1,"timezone":"example_timezone"}' --json kosmo integrations:celestial celestial_night_sky '{"latitude":1,"longitude":1,"timezone":"example_timezone"}' --json celestial.celestial_zodiac_report
Get all celestial bodies mapped to zodiac signs with alignments for a given date.
read - Parameters
- date
kosmo integrations:call celestial.celestial_zodiac_report '{"date":"example_date"}' --json kosmo integrations:celestial celestial_zodiac_report '{"date":"example_date"}' --json celestial.celestial_time_info
Get astronomical time data — Julian Day, sidereal time (GMST/GAST), and equation of time.
read - Parameters
- date
kosmo integrations:call celestial.celestial_time_info '{"date":"example_date"}' --json kosmo integrations:celestial celestial_time_info '{"date":"example_date"}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
celestial.celestial_moon_phase 2 parameters
kosmo integrations:schema celestial.celestial_moon_phase --json | Parameter | Type | Required | Description |
|---|---|---|---|
date | string | no | ISO date or datetime (e.g. '2024-06-15' or '2024-06-15 22:00:00'). Defaults to now. |
timezone | string | no | Timezone for display (e.g. 'Europe/Amsterdam'). Defaults to org timezone. |
celestial.celestial_sun_info 4 parameters
kosmo integrations:schema celestial.celestial_sun_info --json | Parameter | Type | Required | Description |
|---|---|---|---|
latitude | number | yes | Observer latitude (-90 to 90). |
longitude | number | yes | Observer longitude (-180 to 180). |
date | string | no | ISO date or datetime (e.g. '2024-06-15'). Defaults to now. |
timezone | string | no | Timezone for display (e.g. 'Europe/Amsterdam'). Defaults to org timezone. |
celestial.celestial_moon_info 4 parameters
kosmo integrations:schema celestial.celestial_moon_info --json | Parameter | Type | Required | Description |
|---|---|---|---|
latitude | number | yes | Observer latitude (-90 to 90). |
longitude | number | yes | Observer longitude (-180 to 180). |
date | string | no | ISO date or datetime (e.g. '2024-06-15'). Defaults to now. |
timezone | string | no | Timezone for display (e.g. 'Europe/Amsterdam'). Defaults to org timezone. |
celestial.celestial_planet_position 5 parameters
kosmo integrations:schema celestial.celestial_planet_position --json | Parameter | Type | Required | Description |
|---|---|---|---|
latitude | number | yes | Observer latitude (-90 to 90). |
longitude | number | yes | Observer longitude (-180 to 180). |
planet | string | no | Planet name: 'mercury', 'venus', 'mars', 'jupiter', 'saturn', 'uranus', 'neptune', or 'all' (default). |
date | string | no | ISO date or datetime (e.g. '2024-06-15'). Defaults to now. |
timezone | string | no | Timezone for display (e.g. 'Europe/Amsterdam'). Defaults to org timezone. |
celestial.celestial_solar_eclipse 3 parameters
kosmo integrations:schema celestial.celestial_solar_eclipse --json | Parameter | Type | Required | Description |
|---|---|---|---|
date | string | yes | ISO date (e.g. '2024-04-08'). Defaults to today. |
latitude | number | yes | Observer latitude (-90 to 90). |
longitude | number | yes | Observer longitude (-180 to 180). |
celestial.celestial_lunar_eclipse 1 parameters
kosmo integrations:schema celestial.celestial_lunar_eclipse --json | Parameter | Type | Required | Description |
|---|---|---|---|
date | string | yes | ISO date (e.g. '2024-09-18'). Defaults to today. |
celestial.celestial_night_sky 3 parameters
kosmo integrations:schema celestial.celestial_night_sky --json | Parameter | Type | Required | Description |
|---|---|---|---|
latitude | number | yes | Observer latitude (-90 to 90). |
longitude | number | yes | Observer longitude (-180 to 180). |
timezone | string | no | Timezone for display (e.g. 'Europe/Amsterdam'). Defaults to org timezone. |
celestial.celestial_zodiac_report 1 parameters
kosmo integrations:schema celestial.celestial_zodiac_report --json | Parameter | Type | Required | Description |
|---|---|---|---|
date | string | no | ISO date or datetime (e.g. '2024-06-15'). Defaults to now. |
celestial.celestial_time_info 1 parameters
kosmo integrations:schema celestial.celestial_time_info --json | Parameter | Type | Required | Description |
|---|---|---|---|
date | string | no | ISO date or datetime (e.g. '2024-06-15'). Defaults to now. |
Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults with
integrations:configure. Add --force only for trusted automation that should bypass that policy.