OAuth2 providers — GitHub, Google, Linear, Slack, Notion, and many of the bundled providers — use a browser-based PKCE flow by default. You authenticate once, and authsome takes over token refresh from there.Documentation Index
Fetch the complete documentation index at: https://authsome.mbajaj.me/llms.txt
Use this file to discover all available pages before exploring further.
When to use this flow
Use the PKCE browser flow when:- Your machine has a graphical browser available.
- You can register an OAuth app with the provider (or the provider supports Dynamic Client Registration — see the note below).
Register an OAuth app
For services that don’t support Dynamic Client Registration, you need to register an OAuth app with the provider once. The redirect URI must be:Create a new OAuth app
Visit github.com/settings/developers and click New OAuth App.
Run the login
Client credential collection (first time only)
Authsome opens a local form at
http://127.0.0.1:7999. Paste your client_id and client_secret. They are encrypted and stored under your profile, then reused on every subsequent login.Authorization redirect
A second browser window opens to the provider’s authorization page. Approve the requested scopes.
Token exchange
The provider redirects back to
http://127.0.0.1:7999/callback with an authorization code. Authsome exchanges it for an access token (and a refresh token, if the provider supports them) and stores the encrypted record.Override the flow
The default flow lives in the provider definition. Override it on the command line:pkce, device_code, dcr_pkce, api_key.
Custom scopes
Request specific scopes instead of the provider’s default set:authsome get github.
Multi-tenant / self-hosted (Enterprise)
Providers like GitHub Enterprise, Okta, and GitLab self-managed run on per-deployment URLs. Pass--base-url:
Multiple connections per provider
The default connection name isdefault. To log in to a second account on the same provider — for example, a personal and a work GitHub — pass --connection:
Verify the login
Re-login
If a provider is alreadyconnected, authsome login <provider> exits with an error. To overwrite an existing connection:
authsome revoke github first if you want to invalidate the old token at the provider as well.
What’s next
Run agents with the proxy
Inject the access token into outbound requests without exposing it.
Headless device code
Authenticate over SSH or in CI when no local browser is available.