[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [NHTSA vPIC vehicle decoder Decode vin](https://spiral.ai/integrations/vscode/nhtsa-vpic-vehicle-decoder-decode-vin)

# How to Use NHTSA vPIC vehicle decoder Decode vin in VS Code

Returns vehicle identity and available specifications decoded from manufacturer-reported VIN patterns, including engine and assembly information. Use it to check one vehicle against an inventory or listing record.

|  |  |
| --- | --- |
| Model | NHTSA vPIC vehicle decoder Decode vin |
| 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 vPIC vehicle decoder Decode vin in VS Code

- Use NHTSA VIN decoder with NHTSA's public example 5UXWX7C5*BA for 2011. Add the returned vehicle identity, engine, and plant information to a sample response fixture in this project.
- Use NHTSA vPIC vehicle decoder Decode vin to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from NHTSA vPIC vehicle decoder Decode vin and tell me what changed since last week.
- Check NHTSA vPIC vehicle decoder Decode vin and summarize what you find in three bullet points.
- Pull the newest data from NHTSA vPIC vehicle decoder Decode vin and give me the result as a table.

## How to set up NHTSA vPIC vehicle decoder Decode vin in VS Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to VS Code on the console's Agents & MCP page, or run:

```bash
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
```

2. **Sign in**: VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

### Use the Spiral skill

1. **Send VS Code 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 vPIC vehicle decoder Decode vin**: 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": "vpic-nhtsa-dot-gov/vehicles/decode_vin",
    "input": {
      "vin": "<vin>"
    }
  }'
```

Then paste one of the prompts above: VS Code finds NHTSA vPIC vehicle decoder Decode vin on Spiral, shows the price and runs it.

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

## NHTSA vPIC vehicle decoder Decode vin tools and prices

- [NHTSA vPIC vehicle decoder · Decode vin](https://spiral.ai/tools/alexandria/vpic-nhtsa-dot-gov/vehicles/decode_vin) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| extended |  | — | Use DecodeVinValuesExtended, which adds NCSA mapping fields and additional error details. |
| model_year | 1900 to 2100 | — | Model year hint sent as vPIC's `modelyear`; improves partial decodes and disambiguates the 10th VIN character. |

## What can you do with NHTSA vPIC vehicle decoder Decode vin in VS Code?

Build vehicle reference tables and inventory checks from NHTSA's manufacturer records and VIN data. A coding agent can map the returned identifiers and attribute definitions into the project's existing data structures.

### Check dealer inventory descriptions

Decode inventory VINs individually or in batches, compare reported vehicle identity with listing descriptions, and explain attributes through the dictionary. Resolve unfamiliar prefixes, manufacturers, makes, and models before flagging a mismatch.

### Standardize fleet vehicle records

Enrich a business fleet's VIN records with available vehicle specifications. Reconcile manufacturer entities, prefixes, make names, and model names, then use attribute definitions to build consistent reporting categories.

### Build a vehicle research reference database

Create reference tables for manufacturers, makes, models, VIN prefixes, and attribute definitions. Use single and batch VIN decoding to attach vehicle characteristics to research records and investigate inconsistent identifiers.

### Reconcile commercial trailer intake

Research trailer manufacturers and their makes, models, and WMI prefixes before matching incoming business inventory. Decode individual VIN exceptions or intake batches, using dictionary definitions to interpret trailer attributes.

### Explain vehicle identification results

Turn individual or batch decode results into readable vehicle summaries. Explain manufacturer prefixes, compare model names, and translate attribute definitions and decode errors for inventory reviewers.

## Overview

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

## NHTSA vPIC vehicle decoder Decode vin in other agents

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

## More VS Code guides

- [NHTSA recall campaign details](https://spiral.ai/integrations/vscode/nhtsa-recall-campaign-details)
- [NHTSA vehicle complaints](https://spiral.ai/integrations/vscode/nhtsa-vehicle-complaints)
- [NHTSA manufacturer directory](https://spiral.ai/integrations/vscode/nhtsa-manufacturer-directory)
- [NHTSA vehicle data dictionary](https://spiral.ai/integrations/vscode/nhtsa-vehicle-data-dictionary)
- [NHTSA manufacturer details](https://spiral.ai/integrations/vscode/nhtsa-manufacturer-details)
- [NHTSA vehicle makes](https://spiral.ai/integrations/vscode/nhtsa-vehicle-makes)

## Questions about NHTSA vPIC vehicle decoder Decode vin in VS Code

**Can VS Code use NHTSA vPIC vehicle decoder Decode vin?**

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run NHTSA vPIC vehicle decoder Decode vin like any built-in tool.

**How much does NHTSA vPIC vehicle decoder Decode vin cost in VS Code?**

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

**Do I need an Alexandria account to use NHTSA vPIC vehicle decoder Decode vin in VS Code?**

No. Spiral runs NHTSA vPIC vehicle decoder Decode vin 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 vPIC vehicle decoder Decode vin in VS Code?**

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

**Does VS Code wait while NHTSA vPIC vehicle decoder Decode vin runs?**

NHTSA vPIC vehicle decoder Decode vin runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.

**Where does NHTSA get vPIC's information?**

NHTSA codes manufacturer submissions into vPIC after reviewing them. The vehicle descriptions reflect manufacturer-reported information.

**Does vPIC cover vehicles worldwide?**

Its scope is vehicles intended for sale or importation into the United States. Foreign manufacturers can appear, but that does not make vPIC a complete catalog of their vehicles in other markets.

**How far back does vPIC's vehicle coverage go?**

NHTSA states that vPIC is intended for model years 1981 onward. Its API FAQ reports approximately 99% decoding confidence from 1995 onward for most major brands, which is a coverage estimate rather than a guarantee for every attribute.

**How does new information reach vPIC?**

Manufacturer submissions enter the data after NHTSA review. Freshness follows that submission and review process; a newly announced vehicle is not proof that its information has already been processed.

**Does vPIC provide complete equipment information?**

NHTSA explicitly says that missing decoded values do not mean a feature or technology is unavailable on the vehicle. Its records can therefore support an equipment check without establishing a complete installed-equipment list.

