Headless Revit

install bim-cli · windows · per-user · no admin
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'iwr -useb https://bimcli.com/install.ps1?src=site -OutFile $env:TEMP\bim-install.ps1; powershell -NoProfile -ExecutionPolicy Bypass -File $env:TEMP\bim-install.ps1'

Revit has no native headless mode, and bim does not add one. What bim gives you is unattended Revit: a terminal command or an AI assistant can drive your model while nobody sits at the keyboard.

bim needs Revit 2024–2027 installed and licensed on the PC: it starts Revit itself, or attaches to the Revit you already have open, and drives it through a small add-in, so no one has to click through Revit, but Revit still runs in its own window.

Claude Code opens a Revit demo project, rotates furniture sets, and exports the floor plan to PDF — no user interaction required.

Does Revit have a headless mode?

No. Revit always runs as a full desktop application — there is no --headless flag or server mode built in. Running Revit "headless" in practice means one of three things:

  1. A bridge add-in (bim-cli) — a small add-in loads inside Revit and takes commands from your terminal or agent over a local port. bim can start Revit for you and clears the start-up prompts. Revit must be installed and licensed on the same machine; its window is there, but nobody has to use it.

  2. A cloud processing service (Autodesk APS) — Autodesk runs Revit on their infrastructure and exposes REST APIs. Requires an APS account, API keys, and pay-per-use billing.

  3. A batch processing tool (RevitBatchProcessor) — an open-source tool that starts Revit and runs Python or Dynamo tasks across many files from a scheduled job.

bim-cli is option 1: free, offline, no account, and it works with Revit 2024 through 2027.

Run Revit from a terminal

Install bim-cli once. The first bim revit command installs the add-in for your Revit version, and bim revit launch starts Revit with it loaded. Then any of these work from PowerShell, a script, or an AI assistant:

export every sheet to PDF
bim revit export --all-sheets --output ./pdf

Each sheet prints at its own sheet size unless you pass --paper-size.

read a schedule as JSON rows
bim revit schedule-read --name "Door Schedule"
count the doors with Revit API code
bim revit exec --no-transaction --code "return new FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Doors).WhereElementIsNotElementType().GetElementCount();"
list all model warnings
bim revit warnings-export

No dialog boxes to click. The output is always JSON, so it pipes to Excel, Google Sheets, or any downstream tool. For a broader look at scripted and scheduled workflows, see Revit automation.

What your AI assistant can do

Once bim-cli is installed, describe what you need to Claude Code, Cursor, Copilot, or any AI tool that can run shell commands. The assistant handles the commands.

Export a schedule to a spreadsheet

"Pull the door schedule from this model and write it to a spreadsheet." The assistant exports the data as structured rows and pipes it to Excel.

Bulk-edit parameters

"Set the Assembly Code on all structural walls to match this Excel file." The assistant reads the file, finds the elements, and writes the values back — across hundreds of elements at once.

Export sheets to PDF

"Export all architectural sheets to PDF, named by sheet number." Done — without you opening the Export dialog.

Run arbitrary Revit API code

bim revit exec takes any C# snippet and runs it in the context of the active document. If you know the Revit API, every verb is available. If you don't, describe what you want to your AI assistant and it writes the snippet for you.

Where bim fits

bim-cli Autodesk APS RevitBatchProcessor Revit 2027 MCP
Cost Free Pay-per-use Free Included with Revit 2027
Runs where Local Autodesk cloud Local Local
Account required No Yes (APS account) No Autodesk account
Revit versions 2024–2027 Cloud (APS-managed) 2015–2027 2027 only
Needs a local Revit install Yes No Yes Yes
AI assistant integration Shell-native REST API Script MCP protocol

No Revit 2027 required

Revit 2027 ships with a built-in MCP server (Tech Preview). bim works with Revit 2024 through 2027, so there is no upgrade to make, no MCP config, and no server process to manage. Your AI coding tool calls bim from its terminal the same way it calls git or curl.

How to get started

Install bim-cli. Then describe what you need to your AI assistant or run bim commands directly in a terminal; bim starts Revit if it is not already running.

install
iwr -useb https://bimcli.com/install.ps1?src=site -OutFile $env:TEMP\bim-install.ps1; powershell -NoProfile -ExecutionPolicy Bypass -File $env:TEMP\bim-install.ps1

No admin rights required. No account. Your models stay on your machine. Your assistant discovers bim-cli's full capability automatically after install via bim describe --json.

How it works

For a read-only check of the active model's coordinate references, see checking Revit shared coordinates.

bim needs Revit 2024–2027 installed and licensed on the PC: it starts Revit itself, or attaches to the Revit you already have open, and drives it through a small add-in, so no one has to click through Revit, but Revit still runs in its own window.

The add-in binds to a local TCP port when Revit starts, and the bim-cli dispatcher sends JSON-RPC calls to that port. When bim starts Revit itself it waits for the add-in and clears the start-up prompts, so a scheduled job or an agent can run with nobody watching.

Every command runs locally on your machine — no cloud call, no API key. The add-in installs itself the first time you run a bim revit command; there is no separate setup step.

related Revit CLI — drive Revit from the command line Revit Automation from the Command Line Export Revit Sheets to PDF from the Command Line Bulk Edit Revit Parameters from the Command Line Export Revit Schedule to Excel Open a Revit Model with Unresolved Links, Unattended
install bim-cli · windows · per-user · no admin
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'iwr -useb https://bimcli.com/install.ps1?src=site -OutFile $env:TEMP\bim-install.ps1; powershell -NoProfile -ExecutionPolicy Bypass -File $env:TEMP\bim-install.ps1'

Then ask your assistant to run bim describe --json. See what the installer does.