Spiral gives your agent every tool with one account. Browse the tools →

opencode · Industry Data

How to Use JPL Horizons observer ephemeris in opencode

Returns sky positions, brightness, and distance over time, with azimuth and elevation for a surface observer. Use it to plan observations or explain where a planet or comet appears from a particular location.

Prompts to try with JPL Horizons observer ephemeris in opencode

Copy an example into opencode, or ask in your own words.

Use JPL Horizons observer ephemeris for Jupiter from Griffith Observatory on December 1, 2026, from 03:00 to 13:00 UTC at 30-minute intervals. Add an elevation chart to this project.

JPL Horizons observer ephemerisopencode
Try asking
  • Use JPL Horizons observer ephemeris to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from JPL Horizons observer ephemeris and tell me what changed since last week.

  • Check JPL Horizons observer ephemeris and summarize what you find in three bullet points.

  • Pull the newest data from JPL Horizons observer ephemeris and give me the result as a table.

How to set up JPL Horizons observer ephemeris in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run JPL Horizons observer ephemeris

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "ssd-jpl-nasa-gov/ephemerides/observer_ephemeris",
        "input": {
          "target": "<target>"
        }
      }'

Then paste one of the prompts above: opencode finds JPL Horizons observer ephemeris on Spiral, shows the price and runs it.

JPL Horizons observer ephemeris providers and prices

Spiral runs JPL Horizons observer ephemeris through Alexandria. Open a card for today's price, with every fee included.

AlexandriaIndustry Data
JPL Horizons ephemerides · Observer ephemeris
ssd-jpl-nasa-gov/ephemerides/observer_ephemeris

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Latitude-90 to 90

Observer geodetic latitude, degrees north. With longitude, gives azimuth, elevation and day/night.

Longitude-180 to 180

Observer longitude, degrees east (negative west).

Elevation km-0.5 to 10

Observer height above the reference ellipsoid, km (default 0).

Every API field of JPL Horizons ephemerides · Observer ephemeris is on its tool page: open its card above.

What can you do with JPL Horizons observer ephemeris in opencode?

Build a sky-position viewer, target catalog, or orbital simulation comparison using JPL Horizons data. A coding agent can turn object identities, physical summaries, and calculated motion into project files and charts.

Prepare a planetarium presentation

Identify Mars, collect its physical summary, and calculate its sky position for the presentation date. Use orbital geometry and three-dimensional coordinates to connect the audience's view with Mars's position around the Sun.

Build an asteroid briefing

Resolve Apophis and its historical designation, summarize available physical and orbit information, and calculate its sky position for a chosen date. Add orbit elements and Earth-relative vectors to explain its geometry and distance.

Create a lesson on orbit geometry

Identify Earth and Mars, compare their physical summaries, and examine their orbit elements and positions on matching dates. Contrast the resulting spatial diagram with their apparent sky positions as seen from Earth.

Prepare an observing run

Resolve a comet's identity and read its available physical and solution notes. Calculate sky coordinates, brightness, distance, and elevation from the observatory throughout the planned session.

Explain a spacecraft's journey

Identify Voyager 1 and read its trajectory notes before building a dated mission explainer. Use Earth-view coordinates, heliocentric orbit geometry, and position and velocity vectors to describe its direction, distance, and motion.

Questions about JPL Horizons observer ephemeris in opencode

Can opencode use JPL Horizons observer ephemeris?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run JPL Horizons observer ephemeris like any built-in tool.

How much does JPL Horizons observer ephemeris cost in opencode?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need an Alexandria account to use JPL Horizons observer ephemeris in opencode?

No. Spiral runs JPL Horizons observer ephemeris on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up JPL Horizons observer ephemeris in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while JPL Horizons observer ephemeris runs?

JPL Horizons observer ephemeris runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Which objects does Horizons cover?

Horizons covers planets, natural satellites, asteroids, comets, the Sun, selected spacecraft, dynamical points, and system barycenters. Its spacecraft catalog covers selected missions.

How fresh are the data?

The small-body database updates hourly with new objects and orbit solutions. Spacecraft trajectories may update weekly or monthly and represent tracking fits and predictions.

Can one name identify several objects?

Yes. Juno can match spacecraft and an asteroid, while Halley can match both a comet and an asteroid; confirm the object category and identifier before interpreting its data.

How far into the past or future does coverage extend?

Each target has its own available trajectory interval. JPL reports coverage boundaries in Barycentric Dynamical Time, so there is no single date range that applies to every object.

Can I extrapolate an orbit indefinitely from one set of elements?

No. JPL warns that two-body extrapolation from osculating elements can produce large errors, especially for planetary satellites and comets, with error generally increasing farther from the elements' epoch.

Get started

Start using JPL Horizons observer ephemeris in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options