Skip to main content
The Visor CLI is a read-only command-line client for the Visor Public API. It covers listings, facets, VIN lookup, dealers, and dealer inventory, with JSON output, field selection, CSV export, and compact output for scripts and agents.

Install

macOS and Linux

Install the latest prebuilt binary without Go:
For CI, agents, and other non-interactive shells, install into a user-writable directory so the installer does not need sudo:
If needed, add the install directory to PATH:

Windows

Download the latest Windows archive from GitHub Releases, extract visor.exe, and add it to your PATH:

From source

Developers who already have Go installed can build the CLI and optional MCP server from source:

Authenticate

The CLI reads VISOR_API_KEY from the environment:
You can also store a token locally. For humans, use the secure prompt:
For scripts and agents, pipe the token over stdin so it does not appear in process arguments:
Run visor doctor to check authentication and API connectivity.

Use the CLI

Run help first to see the available commands and flags:
The main commands map to Public API endpoints:

Output

Use --json for full JSON output:
Use --agent for compact, predictable output in scripts and LLM tools:
--agent enables JSON output, compact responses, no interactive prompts, no color, and yes-to-confirmations where applicable. Use --select to return only specific fields:
For standard list responses, --select accepts row-relative field names such as id,vin,year,price,miles. Full response paths such as results.data.vin also work. Listing fields use miles, not mileage, and vdp_url, not url.

Facet-first searches

Use facets before narrow listing searches when you are unsure of canonical make, model, trim, or inventory values.
Then use the returned make value to discover models:
Use --facet-value-limit 100 when you need more than the default 20 values per categorical facet. Use the exact returned facet value in listing searches:
If a narrow search returns no rows, go back to facets and inspect canonical values for the next filter instead of guessing spellings.

Update

For prebuilt installs, rerun the installer:
For user-writable installs:
For Go installs:
Check the installed version and health after updating:

MCP options

The hosted MCP server is the recommended setup for Claude Desktop, Claude Code, Codex, ChatGPT, OpenCode, and other clients that support remote MCP servers:
See MCP setup for OAuth and bearer-token configuration snippets. The optional local CLI MCP server is available for hosts that need to launch a local stdio process:
Example local config: