inspector.json file tells Inspector how to install dependencies and start your dev server. Place it at the root of your project.
Inspector auto-detects most projects, but inspector.json gives you full control — especially useful for monorepos, multi-service setups, and non-standard configurations.
Quick start
The simplest config has one field:Let your AI agent generate it
If you’re not sure what the right config is for your project, copy this prompt and paste it into your AI coding agent (Cursor, Claude Code, Copilot, etc.). The agent will analyze your project and generate the rightinspector.json.
Generate an inspector.json for this project
Scenarios
Simple project
http://localhost:3000), and connects.
With an install step
install runs to completion before dev starts. It is skipped on dev server restart.
Explicit URL
url when the dev command doesn’t print a localhost URL to stdout, or when you want to skip auto-detection entirely. This is common with orchestration tools like make, docker compose, or custom scripts.
Multi-service (concurrent processes)
dev is an array, Inspector spawns all commands concurrently as long-running processes. Use url to tell Inspector where to connect — it can’t auto-detect from multiple processes.
Monorepo targets
dev is an object, Inspector shows a picker and runs only the selected target. The keys are display names; the values are the dev commands.
Existing orchestration
docker compose, foreman, overmind), use it as dev and set url explicitly.
Field reference
| Field | Required | Type | Description |
|---|---|---|---|
dev | Yes | string | string[] | object | The dev server command(s). See scenarios above. |
install | No | string | Install command. Runs before dev, skipped on restart. |
url | No | string | URL for Inspector to connect to. Bypasses stdout detection. |
build | No | string | Build command. |
node | No | string | Node.js version constraint. |
htmlEntry | No | string | Main HTML file for static HTML projects. |
dev behavior by type
- string — Run one command. Inspector monitors the process and detects the URL from stdout.
- string[] — Run all commands as concurrent long-running processes. Inspector connects to
url. - object — Show a picker. Run only the selected entry.
Backward compatibility
Inspector reads bothinspector.json (preferred) and the legacy .inspector.json (dotfile) filename. If both exist, inspector.json takes priority.
Older field names are also supported:
setupis treated asinstallrunis treated asdevtargetsis treated asdevin object form
inspector.json using the new field names.