auth_login
Sign in to OpenRouter via browser and get a link to show if the browser didn't open. Confirm with account_status.
Instructions
Sign in to OpenRouter in the user's browser.
Opens the OpenRouter sign-in page and returns at once with a link. Show the link to
the user in case the browser didn't open (it contains no secret). The user finishes
in the browser; then call account_status to confirm. The new key is stored in the
OS credential store and is never shown. Does nothing if already signed in, unless
switch_account is true.
Args: switch_account: true to sign in as a different account or workspace. The current key is kept until the new one is stored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| switch_account | No |