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

opencode · Public Records

How to Use NHTSA vehicle search in opencode

Returns matching NHTSA vehicle records and identifiers. Use it to distinguish vehicle configurations before looking up their recall records or crash-test ratings.

Prompts to try with NHTSA vehicle search in opencode

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

Use NHTSA vehicle search to find records for the 2020 Toyota Camry, then add a configuration chooser to this project's vehicle research page.

NHTSA vehicle searchopencode
Try asking
  • Use NHTSA vehicle search to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from NHTSA vehicle search and tell me what changed since last week.

  • Check NHTSA vehicle search and summarize what you find in three bullet points.

  • Pull the newest data from NHTSA vehicle search and give me the result as a table.

How to set up NHTSA vehicle search 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 NHTSA vehicle search

    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": "nhtsa-gov/recalls/search_vehicles",
        "input": {
          "query": "<query>"
        }
      }'

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

NHTSA vehicle search providers and prices

Spiral runs NHTSA vehicle search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
NHTSA · Search vehicles
nhtsa-gov/recalls/search_vehicles

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Max1 to 5010

Page size.

Offseta number from 00

Zero-based offset; pass next_offset to continue.

Every API field of NHTSA · Search vehicles is on its tool page: open its card above.

What can you do with NHTSA vehicle search 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.

Questions about NHTSA vehicle search in opencode

Can opencode use NHTSA vehicle search?

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

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

No. Spiral runs NHTSA vehicle search 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 search in opencode?

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

Does opencode wait while NHTSA vehicle search runs?

NHTSA vehicle search 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.

Get started

Start using NHTSA vehicle search 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