Skip to main content
The CLI authenticates in one of two ways: miru login on your development machine, or an API key for CI pipelines, scripts, and AI agents.

Interactive login

Run the login command:
The CLI opens the Authorize Device page in your browser. If the code matches the one in your terminal and the device and location are yours, click Allow.
Authorize Device
The terminal then shows who you’re logged in as:
On a machine without a browser, run miru login --no-browser and open the printed URL on any device.

API key

To authenticate without miru login, set the MIRU_API_KEY environment variable:
To create a key, see Create an API key. Each command’s page in the CLI reference lists the scopes it needs under API key scopes. For CI pipelines, see the CI/CD guide.
Last modified on November 13, 2026