These docs are retiring to docs.carsxe.com. This site will be decommissioned on October 1, 2026.
Go to new docsQuery vehicle specs, market value, history, recalls, license plates, OBD codes, and more — directly from your terminal using the CarsXE CLI.
The CarsXE CLI lets you query vehicle data straight from your terminal — no browser, no code, no boilerplate. It works on Linux, macOS, and Windows, and is designed to integrate naturally with shell scripts, AI agents, and developer workflows.
You will need a CarsXE API key before using the CLI. Grab one from your Dashboard → Developer page.
Install the CLI globally with npm:
npm install -g @carsxe/cliVerify the installation:
carsxe --versionSave your API key once — it is stored locally and used automatically for every command:
carsxe config set-key YOUR_API_KEYThe key is saved to a local config file:
| OS | Path |
|---|---|
| Linux / macOS | ~/.carsxe/config.json |
| Windows | C:\Users\<YourName>\.carsxe\config.json |
If you prefer not to save the key to disk, set the CARSXE_API_KEY environment variable. The environment variable takes precedence over the saved config file.
export CARSXE_API_KEY=YOUR_API_KEY$env:CARSXE_API_KEY = "YOUR_API_KEY"set CARSXE_API_KEY=YOUR_API_KEYTo make the variable permanent on Linux/macOS, add the export line to your ~/.bashrc, ~/.zshrc, or ~/.profile.
These options apply to every command:
| Option | Description |
|---|---|
--table | Output as a formatted table instead of JSON |
--raw | Output compact single-line JSON (useful with jq) |
-v, --version | Print the version number |
-h, --help | Display help |
Run carsxe <command> --help to see all options for any specific command.
specs — Vehicle SpecificationsDecode a VIN and get full vehicle specifications: make, model, year, engine, trim, equipment, and more.
carsxe specs --vin 1HGBH41JXMN109186| Option | Required | Description |
|---|---|---|
--vin <vin> | Yes | Vehicle Identification Number |
--deep-data | No | Enable deep data (additional equipment details) |
--disable-int-vin | No | Disable international VIN decoding fallback |
market-value — Market ValueGet the current estimated market value of a vehicle.
carsxe market-value --vin 1HGBH41JXMN109186 --mileage 45000 --state CA --condition clean| Option | Required | Description |
|---|---|---|
--vin <vin> | Yes | Vehicle Identification Number |
--mileage <mileage> | No | Current odometer reading in miles |
--state <state> | No | Two-letter US state code for regional pricing (e.g. CA, TX) |
--condition <condition> | No | Vehicle condition: excellent | clean | average | rough |
--country <country> | No | Country code for pricing (default: US) |
history — Vehicle HistoryGet a full vehicle history report including past owners, accidents, title status, and odometer readings.
carsxe history --vin 1HGBH41JXMN109186| Option | Required | Description |
|---|---|---|
--vin <vin> | Yes | Vehicle Identification Number |
recalls — Safety RecallsCheck for open safety recalls on a vehicle.
carsxe recalls --vin 1HGBH41JXMN109186| Option | Required | Description |
|---|---|---|
--vin <vin> | Yes | Vehicle Identification Number |
lien-theft — Lien & Theft CheckCheck whether a vehicle has active liens or has been reported stolen.
carsxe lien-theft --vin 1HGBH41JXMN109186| Option | Required | Description |
|---|---|---|
--vin <vin> | Yes | Vehicle Identification Number |
international-vin — International VIN DecoderDecode a VIN from a non-US vehicle (European, Asian, and other markets).
carsxe international-vin --vin WBAFR7C57CC811956| Option | Required | Description |
|---|---|---|
--vin <vin> | Yes | Vehicle Identification Number |
plate-decoder — License Plate DecoderLook up vehicle information from a license plate number.
carsxe plate-decoder --plate ABC1234 --country US --state CA| Option | Required | Description |
|---|---|---|
--plate <plate> | Yes | License plate number |
--country <country> | Yes | Country code (e.g. US, GB, DE, CA) |
--state <state> | No | State or province code (e.g. CA, TX, ON) |
--district <district> | No | District or region |
plate-image — Plate Image RecognitionExtract and decode a license plate from an image URL.
carsxe plate-image --image https://example.com/car-photo.jpg| Option | Required | Description |
|---|---|---|
--image <url> | Yes | Publicly accessible URL of the image |
vin-ocr — VIN OCR from ImageExtract a VIN from a photo of a VIN plate or dashboard sticker.
carsxe vin-ocr --image https://example.com/vin-sticker.jpg| Option | Required | Description |
|---|---|---|
--image <url> | Yes | Publicly accessible URL of the image |
ymm — Year / Make / ModelLook up vehicle data when you don't have a VIN — search by year, make, and model instead.
carsxe ymm --year 2020 --make Toyota --model Camry --trim LE| Option | Required | Description |
|---|---|---|
--year <year> | Yes | Model year (e.g. 2020) |
--make <make> | Yes | Vehicle make (e.g. Toyota) |
--model <model> | Yes | Vehicle model (e.g. Camry) |
--trim <trim> | No | Trim level (e.g. LE, XSE) |
images — Vehicle ImagesRetrieve photos of a vehicle by make, model, and year.
carsxe images --make Toyota --model Camry --year 2020 --angle front --size Large| Option | Required | Description |
|---|---|---|
--make <make> | Yes | Vehicle make |
--model <model> | Yes | Vehicle model |
--year <year> | No | Model year |
--trim <trim> | No | Trim level |
--color <color> | No | Vehicle color |
--angle <angle> | No | Photo angle: front | side | back |
--photo-type <type> | No | Photo type: interior | exterior | engine |
--size <size> | No | Image size: Small | Medium | Large | Wallpaper | All |
obd — OBD-II Code DecoderDecode a diagnostic trouble code (DTC) from your OBD-II scanner.
carsxe obd --code P0300| Option | Required | Description |
|---|---|---|
--code <code> | Yes | OBD-II code (e.g. P0300, C1234, B0001, U0100) |
config — ConfigurationManage your saved API key.
# Save your API key
carsxe config set-key YOUR_API_KEY
# Show active key and its source
carsxe config get-key
# Remove the saved key
carsxe config remove-keyBy default all commands return pretty-printed JSON. Two flags change the format:
Table view — human-friendly two-column layout, great for quick inspection:
carsxe --table obd --code P0300Nested objects are flattened with dot notation (e.g. engine.cylinders). Arrays of primitives are joined on a single line.
Raw JSON — compact single-line output:
carsxe --raw specs --vin 1HGBH41JXMN109186