archgate login
Authenticate with GitHub to access Archgate editor plugins. If you are not registered yet, the CLI handles signup automatically — it prompts for your email, editor preference (Claude Code, VS Code, Copilot CLI, or Cursor), and use case, then registers you before completing the login.
archgate loginStarts a GitHub Device Flow (OAuth). The CLI displays a one-time code and a URL. Open the URL in your browser, enter the code, and authorize the Archgate GitHub OAuth App. Once authorized, the CLI exchanges your GitHub identity for an Archgate plugin token and stores it securely in your OS credential manager (macOS Keychain, Windows Credential Manager, or Linux libsecret) via git credential approve. Non-sensitive metadata (username, date) is saved to ~/.archgate/credentials.
If your GitHub account is not yet registered, the CLI prompts for your email, preferred editor, and use case, then signs you up automatically.
Credentials are required to install editor plugins via archgate init --install-plugin. The CLI itself (check, init, etc.) works without login.
Subcommands
Section titled “Subcommands”| Subcommand | Description |
|---|---|
archgate login | Authenticate (skips if already logged in) |
archgate login status | Show current authentication status |
archgate login logout | Remove stored credentials |
archgate login refresh | Re-authenticate and claim a new token |
Examples
Section titled “Examples”Log in for the first time:
archgate loginAuthenticating with GitHub...
Open https://github.com/login/device in your browserand enter the code: ABCD-1234
Waiting for authorization...GitHub user: yourname
Your GitHub account yourname is not yet registered.Let's sign you up now.
Email: [email protected]Editor: Claude CodeUse case: Enforcing ADRs in our monorepo
Submitting signup request...Claiming archgate plugin token...
Authenticated as yourname. Plugin access is now available.Run `archgate init` to set up a project with the archgate plugin.If the project already has .archgate/adrs/, the final line reads:
Run `archgate check` to validate your project against its ADRs.Troubleshooting
Section titled “Troubleshooting”TLS/corporate proxy errors
Section titled “TLS/corporate proxy errors”If archgate login fails with a TLS certificate error (common behind corporate proxies), point your runtime at your organization’s CA bundle using the NODE_EXTRA_CA_CERTS environment variable.
On macOS/Linux:
export NODE_EXTRA_CA_CERTS=/path/to/your-corporate-ca.pemarchgate loginOn Windows (PowerShell):
$env:NODE_EXTRA_CA_CERTS = "C:\path\to\your-corporate-ca.pem"archgate loginOn Windows (cmd):
set NODE_EXTRA_CA_CERTS=C:\path\to\your-corporate-ca.pemarchgate loginOn Windows (Git Bash):
export NODE_EXTRA_CA_CERTS=/c/path/to/your-corporate-ca.pemarchgate loginAsk your IT team for the correct certificate path if you are unsure.
Check login status:
archgate login statusLogged in as yourname (since 2026-02-28)Log out:
archgate login logoutRe-authenticate:
archgate login refresh