Developer CLI
Add an agent with its rule and key
/v1/cli/agentsCreates the agent, its first rule from purpose (and the workspace’s rule templates), and an agent key, shown once. When the agent acts for you and another owner exists, the rule is a proposal they confirm: pending says so, and payments start once they do. With reuse: true, an agent you can manage with the same name gets a fresh key instead of a twin.
| Field | Description |
|---|---|
name | how people will recognise it |
purpose | pays_invoices, books_travel, handles_refunds, buys_software, answers_customers or other |
vendor | optional: anthropic, openai, google, meta or custom |
reuse | optional: true to reuse an agent of the same name |
#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.