Log in from the terminal.
Section: First-run and lifecycle commands
Authenticate with OAuth device flow
bash
bash
copilot loginExplanation
Use this outside the interactive slash-command flow when you want an explicit login step.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing First-run and lifecycle commands
Authenticate against a specific GitHub host
Target a GitHub host explicitly during login.
Open help topics
Show help for commands, config, environment, logging, or permissions.