Getting started

Authentication

One GitHub login, for every repository you can write to, on every machine you use — and the same account in the browser. Here is exactly what each screen asks for, what Verity keeps, and how teams and CI fit in.

The short version
verity login shows you up to two GitHub screens. First you authorize Verity (proves who you are). Then — only the first time anyone connects a repository in your organization — you install the Verity app there (so Verity can confirm you have write access). Both are read-only. Verity never reads your code through GitHub and never stores your GitHub token.

Sign in

verity login

verity init offers the same step. It uses GitHub's device flow — no password, no browser redirect — so it works over SSH and on a headless machine, from inside a repository or not. It authenticates you, not a project: the service sweeps every installation of the Verity app it can reach, collects the repositories you hold write or admin on, and mints one machine-wide login. A second repository needs no authentication at all.

Your credential is stored outside the repo at ~/.verity/credentials, mode 0600. Nothing secret ever lands in your working tree. For CI, mint a service token instead of using your own login.

The two screens — and why there are two

GitHub separates who you are from what a tool may see. Verity needs both, so the first time you connect a repository you step through two short screens:

StepGitHub screenYouVerity gets
1. Authorize“Authorize verity-auth” at github.com/login/deviceEnter the code, click AuthorizeYour identity and verified email
2. Install“Install verity-auth” on your account or orgPick the repositories, click InstallRead-only metadata, enough to confirm you can write to them

Step 1 — Authorize (who you are)

your terminal
To authorize Verity, open:  https://github.com/login/device
And enter the code:         ABCD-1234
Waiting for authorization…

The screen lists exactly what the app can read: your email address and basic identity, nothing else. The one-time token GitHub returns is used once on the server to confirm who you are and discarded. It does not grant access to any repository — a GitHub app only sees repositories where it is installed, which is step 2.

Step 2 — Install the app (which repositories Verity may check)

If the app is not installed on the organization that owns your repository, the CLI says so and waits:

your terminal
The Verity GitHub App can't see your-org/your-repo yet.
Install it on "your-org" (grant access to this repo):
  https://github.com/apps/verity-auth/installations/new
Press Enter once installed to retry…

Choose the account or organization, pick All repositories or Only select repositories, review the read-only permissions, and click Install. GitHub then lands you on verity.md/auth/installed, a page that says the app is installed and to go back to your terminal — press Enter there and the login completes. Installing is how you choose exactly which repositories Verity may see; you can change or revoke it any time under GitHub → Settings → Applications.

Usually a one-time screen
Installation is per organization. The first person to connect a repository installs the app; teammates who already have write access then see only step 1.

What a successful login says

verity login
Logged in as dev@example.com. ✓
  Access granted to 17 repositories.
  This login expires on 2026-11-30 — "verity login" again to renew.
  See your machines with "verity sessions list"; sign out with "verity logout".
  Runs, history, and cloud memory now sync to Verity everywhere you have write access.
  ✓ This repository is covered.

The sweep is your access snapshot, and it replaces the previous one wholesale: a repository you lost access to loses its grant at your next login, and a repository granted after your last login is not covered until you log in again. If the repository you are in is not covered, the CLI prints a targeted install link rather than a bare error.

Grants come from your last login
Adding a repository to the app does not reach back and update a snapshot you already took. Run verity login again and the coverage flips.

The same account in the browser

verity.md/login signs you in with the same GitHub app — Continue with GitHub is the browser's verity login. It is one account: a run your terminal saved is what the browser shows, a browser session appears in verity sessions list as Web · Chrome on macOS, and either side can revoke the other.

  • Same identity. Your verified GitHub email is the account key in both places.
  • Same grants. Signing in on the web re-runs the sweep, so it also picks up a repository granted since your last terminal login.
  • Shorter session. A web login lasts 30 days (a terminal login lasts 90). Sign out from the account menu, or revoke it from a terminal.
  • The terminal comes first. The dashboard shows what the CLI records. Sign in before verity init has run anywhere and it shows the terminal steps instead of an empty page, then checks on its own until a repository appears.
  • Nothing of GitHub's is kept. The GitHub token is exchanged once and discarded, by the service and by the browser.
No browser sign-in handy? Paste a token
The sign-in page also accepts the bare token: line from ~/.verity/credentials. A pasted token is your terminal's credential: signing out of the web forgets it locally and never revokes it. Service tokens cannot open the web — they act for no person, so they cannot list repositories.

Sessions — one per machine

A login is a session, not a permanent key. It expires after 90 days, it is listed, and it can be revoked individually. Logging in on a second machine mints a second session; neither signs the other out.

verity sessions list              # every machine you're signed in on, marked "← this machine"
verity sessions revoke <id>       # revoke one (e.g. a laptop you no longer have)
verity logout                     # sign out this machine
verity logout --others            # sign out everywhere else, stay signed in here
verity logout --all               # sign out everywhere, including here

The same list is the Devices page, in the dashboard's account menu. When a login reaches the end of its life, Verity says so in plain words — “your login expired or was revoked — run verity login” — and falls back to local analysis rather than surfacing a bare 401. verity logout works offline too: it clears the local credential and says plainly that the server-side session may survive until it can be reached.

Lost a laptop?
verity logout --others from a machine you still hold revokes every other session immediately. The credential stops working on the next request — it is not merely delisted.

CI and machines: service tokens

A login belongs to a person and a machine, so it is the wrong credential for a pipeline. Mint a service token instead — pinned to one repository, optionally expiring, and unaffected by your own login's lifecycle:

verity token create --name github-actions
verity token create --name nightly --expires 90   # optional expiry, in days

verity token list                                  # ids and metadata only, never secrets
verity token revoke <token-id>

The token is shown once. Store it as a CI secret named VERITY_TOKEN — the CLI reads that variable automatically, and a token that arrives through the environment is exempt from credential pinning because setting it was an explicit act.

Creating one requires a signed-in user with a current write grant on the repository. After that it is independent: it does not expire when its creator's access does, so a pipeline never breaks because someone changed teams — and any current writer can revoke it, so a departed colleague can never leave an unrevocable credential behind. A service token is deliberately narrow: it can review and record runs for its repository, and it cannot list repositories or list and revoke anyone's logins.

In a pipeline the CLI is advisory today — verity review --files <paths> returns a verdict and findings without blocking anything. A gating CI integration is on the roadmap.

Token kinds

KindCreated byScopeExpires
Loginverity loginYou — every repo you can write to90 days (web: 30)
Serviceverity token createOne repositoryOptional
Project (legacy)verity auth registerOne repositoryNo

Project tokens from before login-once keep working. When you run verity login, superseded per-repository credentials for your identity are pruned so they stop shadowing the new login; another account's credentials, and any repository pinned to a different Verity service, are deliberately left alone.

Keeping access current

Your GitHub token is discarded after verification, so a grant is only as current as its last check. Verity re-verifies rather than trusting a one-time proof forever:

StateAge since verificationWhat happens
Freshunder 14 daysNothing — full access.
Soft-stale14–30 daysStill allowed; verity status and verity init nudge you to re-verify.
Hard-staleover 30 daysRepository data is refused until you log in again.

A stale grant is reported as its own condition, distinct from “you lack access”, because the remedy is different: you had access, and the fix is verity login, not asking someone for permission. Service tokens are exempt — their authorization is the mint-time vouching of a verified writer, and revocation is the control for machines.

What Verity reads through GitHub (and never reads)

  • Your identity and verified email — so runs are attributed and we can reach you about your account.
  • Repository metadata, read-only — the permission bit that says you can write to a repository you connect. Never your code.

The code the gate reviews travels from your machine to the Verity service directly, never via GitHub, and is analyzed in memory and discarded — see Security & privacy.

Why sign in at all

Signing in is optional. Here is what it changes:

CapabilitySigned inSigned out
Static analysis in the hooksYesYes
Independent model reviewYes—
Run history, tasks, the dashboardYes—
Shared memory and knowledge baseYes—
Token telemetryYes—
Blocks your agent on a network errorNeverNever

Permissions are enforced with the same login: Verity stores and serves a repository's data only to people with a verified write grant on it. Each person signs in with their own account, so runs, tasks and feedback are attributed to whoever produced them, while the Standard, the history and the knowledge base stay shared across the repository.

Where credentials live, and how a token is chosen

One file, outside your repository: ~/.verity/credentials, created with 0600 permissions at the moment it is written. A leftover project-local .verity/credentials from an older install is folded into it automatically on your next command. The CLI resolves a token in this order:

  1. the --token flag;
  2. the VERITY_TOKEN environment variable — the CI path;
  3. ~/.verity/credentials — a line keyed to this repository's remote if one exists, otherwise your machine-wide login.
Your token only travels to the service that issued it
The hooks resolve the service URL from repo-controlled files, so a repository you merely cloned could otherwise name any host and receive your token on the next run. A credential is pinned to the backend that minted it, the way a cookie is pinned to its origin, and Verity refuses to send it anywhere else — refuses rather than downgrades, because stripping the header would still post your code there. Local analysis still runs. Name your own backend with --service-url or VERITY_SERVICE_URL and it is treated as your intent.

Limits

  • GitHub only. GitLab and Bitbucket are not supported yet.
  • The remote must be named origin and be a recognizable git URL. An ssh alias like gh:owner/repo cannot be resolved to a repository — verity login names this up front.
  • No session cap. Expiry and revocation bound the credential; the number of machines is not capped.
Next
Now that you are signed in, see how the review works in How it works, or what leaves your machine in Security & privacy.