[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [NASA Sentry asteroid risk list](https://spiral.ai/integrations/opencode/nasa-sentry-asteroid-risk-list)

# How to Use NASA Sentry asteroid risk list in opencode

Returns asteroid summaries with cumulative impact probabilities, potential impact year ranges, estimated diameters, and hazard scores. Use it to compare objects currently listed by Sentry before examining individual impact scenarios.

|  |  |
| --- | --- |
| Model | NASA Sentry asteroid risk list |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with NASA Sentry asteroid risk list in opencode

- Use NASA Sentry asteroid risk list to retrieve the 20 objects with the highest cumulative impact probabilities and create a comparison table in this project.
- Use NASA Sentry asteroid risk list to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from NASA Sentry asteroid risk list and tell me what changed since last week.
- Check NASA Sentry asteroid risk list and summarize what you find in three bullet points.
- Pull the newest data from NASA Sentry asteroid risk list and give me the result as a table.

## How to set up NASA Sentry asteroid risk list 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.

```bash
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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run NASA Sentry asteroid risk list**: One request; the result comes back by polling or a webhook.

```bash
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-api-jpl-nasa-gov/small-bodies/impact_risk_list",
    "input": {
      "sort": "palermo"
    }
  }'
```

Then paste one of the prompts above: opencode finds NASA Sentry asteroid risk list on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## NASA Sentry asteroid risk list tools and prices

- [JPL Small-Body and CNEOS Data · Impact risk list](https://spiral.ai/tools/alexandria/ssd-api-jpl-nasa-gov/small-bodies/impact_risk_list) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| sort | palermo, probability, diameter, year, last_observed | palermo | Sort key, highest (or earliest year, newest observation) first. |
| h_max | -10 to 100 | — | Only objects with H at most this (larger objects). |
| limit | 1 to 100 | 20 | Objects per page. |
| palermo_min | -20 to 20 | — | Only objects whose cumulative Palermo scale is at least this, such as -3. |
| continuation |  | — | Cursor from a previous call's continuation. |
| probability_min | 1e-10 to 1 | — | Only objects whose cumulative impact probability is at least this, such as 0.001. |

## What can you do with NASA Sentry asteroid risk list in opencode?

Build an astronomy feature using JPL encounter records, asteroid and comet properties, or atmospheric event data. Keep encounter predictions, Sentry scenarios, and observed fireballs distinct in the project's data model.

### Prepare a planetarium news brief

Combine upcoming encounters, reported fireballs, Sentry summaries, individual risk scenarios, and asteroid or comet background tables into a weekly astronomy briefing.

### Check an astronomy article

Check flyby predictions, atmospheric event records, impact probabilities, and object properties against the corresponding JPL records before publication.

### Build a classroom evidence workbook

Give students separate exercises on predicted encounters, observed atmospheric events, possible impact scenarios, and differences among asteroid or comet populations.

### Investigate an asteroid risk headline

Find the asteroid's current Sentry summary, inspect its individual impact scenarios or removal status, and retrieve its orbital background.

### Explain cumulative impact probability

Compare an asteroid's cumulative Sentry probability with its individual possible impact events to show how the summary relates to the scenarios.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## NASA Sentry asteroid risk list in other agents

- [Amp](https://spiral.ai/integrations/amp/nasa-sentry-asteroid-risk-list)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/nasa-sentry-asteroid-risk-list)
- [Claude](https://spiral.ai/integrations/claude-desktop/nasa-sentry-asteroid-risk-list)
- [Claude Code](https://spiral.ai/integrations/claude-code/nasa-sentry-asteroid-risk-list)
- [Cline](https://spiral.ai/integrations/cline/nasa-sentry-asteroid-risk-list)
- [Codex](https://spiral.ai/integrations/codex/nasa-sentry-asteroid-risk-list)
- [Cursor](https://spiral.ai/integrations/cursor/nasa-sentry-asteroid-risk-list)
- [Devin](https://spiral.ai/integrations/devin/nasa-sentry-asteroid-risk-list)
- [dots](https://spiral.ai/integrations/dots/nasa-sentry-asteroid-risk-list)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/nasa-sentry-asteroid-risk-list)
- [Gemini](https://spiral.ai/integrations/gemini/nasa-sentry-asteroid-risk-list)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/nasa-sentry-asteroid-risk-list)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/nasa-sentry-asteroid-risk-list)
- [goose](https://spiral.ai/integrations/goose/nasa-sentry-asteroid-risk-list)
- [Grok](https://spiral.ai/integrations/grok/nasa-sentry-asteroid-risk-list)
- [Grok Build](https://spiral.ai/integrations/grok-build/nasa-sentry-asteroid-risk-list)
- [Hermes](https://spiral.ai/integrations/hermes/nasa-sentry-asteroid-risk-list)
- [Instinct](https://spiral.ai/integrations/instinct/nasa-sentry-asteroid-risk-list)
- [Manus](https://spiral.ai/integrations/manus/nasa-sentry-asteroid-risk-list)
- [Muse](https://spiral.ai/integrations/muse/nasa-sentry-asteroid-risk-list)
- [Muse Code](https://spiral.ai/integrations/muse-code/nasa-sentry-asteroid-risk-list)
- [n8n](https://spiral.ai/integrations/n8n/nasa-sentry-asteroid-risk-list)
- [Notion](https://spiral.ai/integrations/notion/nasa-sentry-asteroid-risk-list)
- [OpenClaw](https://spiral.ai/integrations/openclaw/nasa-sentry-asteroid-risk-list)
- [Perplexity](https://spiral.ai/integrations/perplexity/nasa-sentry-asteroid-risk-list)
- [Raycast](https://spiral.ai/integrations/raycast/nasa-sentry-asteroid-risk-list)
- [VS Code](https://spiral.ai/integrations/vscode/nasa-sentry-asteroid-risk-list)
- [Windsurf](https://spiral.ai/integrations/windsurf/nasa-sentry-asteroid-risk-list)
- [Zapier](https://spiral.ai/integrations/zapier/nasa-sentry-asteroid-risk-list)

## More opencode guides

- [NASA Sentry asteroid impact details](https://spiral.ai/integrations/opencode/nasa-sentry-asteroid-impact-details)
- [NASA fireball events](https://spiral.ai/integrations/opencode/nasa-fireball-events)
- [NASA FIRMS regional fire detections](https://spiral.ai/integrations/opencode/nasa-firms-regional-fire-detections)
- [NHTSA VIN decoder](https://spiral.ai/integrations/opencode/nhtsa-vin-decoder)
- [NASA FIRMS local fire detections](https://spiral.ai/integrations/opencode/nasa-firms-local-fire-detections)
- [NHTSA WMI decoder](https://spiral.ai/integrations/opencode/nhtsa-wmi-decoder)

## Questions about NASA Sentry asteroid risk list in opencode

**Can opencode use NASA Sentry asteroid risk list?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run NASA Sentry asteroid risk list like any built-in tool.

**How much does NASA Sentry asteroid risk list 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 NASA Sentry asteroid risk list in opencode?**

No. Spiral runs NASA Sentry asteroid risk list on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up NASA Sentry asteroid risk list in opencode?**

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

**Does opencode wait while NASA Sentry asteroid risk list runs?**

NASA Sentry asteroid risk list runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Which objects does JPL's Small-Body Database cover?**

It covers all known asteroids and comets within the solar system. Identification and orbital data are included, while physical properties are selected data rather than a complete set of measurements for every object.

**How quickly do JPL orbital records change?**

JPL typically computes new small-body orbits within an hour or two after new discoveries or astrometric observations become available. That timing applies to orbital processing, not to publication of fireball detections.

**How far back and forward do the Earth close-approach tables extend?**

The published tables exclude dates before 1900 and after 2200. They also exclude encounters whose uncertainty is too large, so that date range does not guarantee a complete encounter history for every asteroid.

**What does Sentry's cumulative impact probability mean?**

It adds the probabilities of all detected potential impacts for an asteroid. An individual scenario's probability and the object's cumulative probability describe different quantities.

**Can a search change while I retrieve multiple pages?**

Yes. JPL explicitly warns that the SBDB database can change between calls used to page through search results.

