Authentication Methods
OpenLinear tries methods in this priority order:1
GitHub CLI reuse
If GitHub CLI (
gh) is already authenticated on your machine, openlinear github login reuses that local token automatically.2
Browser-based OAuth
If
OPENLINEAR_GITHUB_CLIENT_SECRET is set, OpenLinear starts a temporary callback server on http://localhost:<port>/callback, opens GitHub in your browser, and stores the token locally.3
Device flow fallback
If no client secret is configured, OpenLinear falls back to GitHub’s device flow — you visit a URL and enter a code.
Commands
Login
Status
Identity
Logout
Environment Variables
These are only needed for the browser-based OAuth flow. Device flow works without any configuration.
Browser Flow Setup
To use the browser OAuth flow, you need a GitHub OAuth app:1
Create a GitHub OAuth App
Go to GitHub Developer Settings and create a new OAuth App.
2
Configure callback URL
Set the authorization callback URL to
http://localhost/callback (loopback).3
Set the client secret
4
Login
Token Storage
Tokens are stored locally at:Desktop App Integration
The desktop app also supports GitHub authentication through its UI:- Local GitHub CLI — The sidecar API checks for an existing
ghauth token - Browser OAuth — The desktop app can initiate OAuth via the sidecar API
- Device Flow — Available as a fallback from the Settings page

