Skip to content

Developer CLI

Who the CLI token acts for

GET/v1/cli/whoami

The person, the workspace (with its books currency), the token’s scopes and expiry, and whether this person may add agents.

#Authentication

CLI token

A token (imc_...) the developer CLI gets by signing in through the browser (immiscible login, the OAuth device grant), sent as Authorization: Bearer. It acts for one person in one workspace: it reads agents and status, and registers an agent with a rule from the same purposes as the console's "Add an agent". It never approves anything or changes an existing rule. Every use re-checks the person's membership and the workspace's sign-in rules; it lasts 90 days and ends from the console's sessions.