[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [NHTSA vehicle recalls](https://spiral.ai/integrations/opencode/nhtsa-vehicle-recalls)

# How to Use NHTSA vehicle recalls in opencode

Returns recall campaigns associated with a vehicle's year, make, and model. Use it to research model-level safety issues and remedies; these records do not establish a particular car's repair status.

|  |  |
| --- | --- |
| Model | NHTSA vehicle recalls |
| 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 NHTSA vehicle recalls in opencode

- Use NHTSA vehicle recalls to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from NHTSA vehicle recalls and tell me what changed since last week.
- Check NHTSA vehicle recalls and summarize what you find in three bullet points.
- Pull the newest data from NHTSA vehicle recalls and give me the result as a table.
- Check NHTSA vehicle recalls every morning and tell me only when something changed.

## How to set up NHTSA vehicle recalls 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 NHTSA vehicle recalls**: 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": "nhtsa-gov/recalls/vehicle_recalls",
    "input": {
      "vehicle_id": 1
    }
  }'
```

Then paste one of the prompts above: opencode finds NHTSA vehicle recalls on Spiral, shows the price and runs it.

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

## NHTSA vehicle recalls tools and prices

- [NHTSA · Vehicle recalls](https://spiral.ai/tools/alexandria/nhtsa-gov/recalls/vehicle_recalls) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| make |  | — | Make as NHTSA lists it (case-insensitive), e.g. 'toyota'. |
| model |  | — | Model as NHTSA lists it (case-insensitive), e.g. 'camry'. |
| model_year | 1949 to 2100 | — | Model year. |
| vehicle_id | 1 to … | — | NHTSA vehicle record id from decode_vin or search_vehicles. |

## What can you do with NHTSA vehicle recalls in opencode?

Build a vehicle safety reference with NHTSA records and an inspection-station directory. Give vehicle configurations, recall campaigns, complaint reports, crash ratings, and inspection organizations their own views.

### Prepare a used-vehicle safety brief

Identify a publicly listed vehicle, resolve its NHTSA configuration, and assemble recalls, campaign documents, crash ratings, and complaint examples. Turn the findings into specific questions about recall repairs and reported problems for the seller.

### Review commercial fleet safety records

Match fleet vehicles to NHTSA records, organize recall campaigns and supporting notices, and review complaint examples alongside crash ratings. Give maintenance managers a model-level review list for checking against their repair records.

### Research a vehicle safety article

Resolve the exact models and configurations under discussion, examine individual complaints, and check campaign documents and crash ratings. Keep consumer allegations, manufacturer recall actions, and controlled crash-test results clearly attributed.

### Build a vehicle safety reference

Create searchable vehicle pages with source-matched model names, VIN identification, configuration choices, recall summaries, campaign documents, complaint excerpts, and crash ratings. Link summaries to the underlying campaign or complaint record.

## Overview

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

## NHTSA vehicle recalls in other agents

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

## More opencode guides

- [NHTSA vehicle models](https://spiral.ai/integrations/opencode/nhtsa-vehicle-models)
- [NHTSA vehicle safety ratings](https://spiral.ai/integrations/opencode/nhtsa-vehicle-safety-ratings)
- [NHTSA vehicle makes and models](https://spiral.ai/integrations/opencode/nhtsa-vehicle-makes-and-models)
- [NHTSA vehicle search](https://spiral.ai/integrations/opencode/nhtsa-vehicle-search)
- [NHTSA vehicle makes](https://spiral.ai/integrations/opencode/nhtsa-vehicle-makes)
- [NOAA annual storm records](https://spiral.ai/integrations/opencode/noaa-annual-storm-records)

## Questions about NHTSA vehicle recalls in opencode

**Can opencode use NHTSA vehicle recalls?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run NHTSA vehicle recalls like any built-in tool.

**How much does NHTSA vehicle recalls 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 NHTSA vehicle recalls in opencode?**

No. Spiral runs NHTSA vehicle recalls on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up NHTSA vehicle recalls in opencode?**

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

**Does opencode wait while NHTSA vehicle recalls runs?**

NHTSA vehicle recalls runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does NHTSA's model-level recall data show whether a particular car was repaired?**

No. NHTSA separates general year, make, and model results from its VIN search, which identifies whether a specific vehicle needs a recall repair.

**How often does NHTSA publish new recall and complaint data?**

NHTSA lists daily publication for recalls and publishes newly received complaints in daily files. That schedule describes the source datasets, rather than a guaranteed delay for an individual record.

**Are public complaints confirmed defects?**

Complaints contain consumers' allegations about safety defects. NHTSA reviews those reports to decide whether further investigation or other action is warranted.

**Does a car seat inspection ZIP search include nearby ZIP codes?**

No. NHTSA documents an exact-ZIP search that excludes neighboring ZIP codes; its state search covers stations within the selected state.

**Can crash ratings be compared across all vehicles?**

Frontal and overall scores can only be compared within the same vehicle class and within 250 pounds. NHTSA permits comparisons of side-crash and rollover ratings across classes.

