Log in via browser
loginConnect a Misar.Blog account with browser-based authorization, no API key to copy. Use when unauthenticated to open the consent page, wait for approval, and save the returned key locally.
Instructions
Connect a Misar.Blog account by browser consent, with no API key to copy and paste.
Use it when status reports no key, or when a tool fails as unauthenticated. It opens the authorisation page in the user's browser, waits for them to review the permissions and click Authorize, then stores the returned key in ~/.misarblog/config.json.
Two things to know before calling it. It BLOCKS until a human acts in the browser, so it can hang for as long as they take — never call it speculatively or in a retry loop. And force=true ROTATES the key, invalidating the existing one everywhere else it is used; without force, an already-valid session returns immediately and changes nothing. It listens on a short-lived local port to receive the callback.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Local port for the one-shot callback listener, 9001-9099. Random by default; set it only when a firewall requires a fixed port. | |
| force | No | Re-authenticate even when already logged in. This ROTATES the API key and breaks any other client using the old one — only on explicit request. | |
| base_url | No | Base URL of a self-hosted Misar.Blog. Omit for the hosted service. |