Start a browser login
loginStart browser-based authentication for GitHub, npm, PyPI, or crates. Returns a job ID, one-time code, and URL; poll job_status until the user completes sign-in, 2FA, and authorization.
Instructions
Start the browser-based login for github (gh auth login --web), npm (npm login --auth-type=web), pypi or crates. Returns at once with a job id, the one-time code and the URL; the user signs in, does 2FA and clicks Authorize. Poll job_status every 1–2 minutes until running is false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | Yes | Which account to log in to. | |
| openBrowser | No | Open the login page in the default browser. |