--local to any parse or compare command, set the appropriate provider environment variable, and the CLI calls the provider’s API directly — your document and key never pass through the hosted FileRouter service.
How it works
By default, the CLI routes requests through the hosted FileRouter service using the API key you created withfilerouter login. When you pass --local, the CLI skips that entirely and connects straight to the provider you specify. The same output formats and comparison features work exactly as they do in hosted mode.
You don’t need a FileRouter account or API key to use
--local mode. The only credential required is the one for your chosen provider.Provider environment variables
Set the environment variable for each provider you want to use:LlamaParse
LLAMA_CLOUD_API_KEYMistral OCR
MISTRAL_API_KEYDatalab
DATALAB_API_KEY.env file that your shell loads at startup, or pass it inline on the command line.
Parse with --local
Pass --local to the parse command along with your provider API key:
Compare with --local
The compare command supports --local too. Every provider in the comparison uses its own environment variable: