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.
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 loginverity 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:
| Step | GitHub screen | You | Verity gets |
|---|---|---|---|
| 1. Authorize | “Authorize verity-auth” at github.com/login/device | Enter the code, click Authorize | Your identity and verified email |
| 2. Install | “Install verity-auth” on your account or org | Pick the repositories, click Install | Read-only metadata, enough to confirm you can write to them |
Step 1 — Authorize (who you are)
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:
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.
What a successful login says
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.
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 inithas 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.
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 hereThe 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.
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
| Kind | Created by | Scope | Expires |
|---|---|---|---|
| Login | verity login | You — every repo you can write to | 90 days (web: 30) |
| Service | verity token create | One repository | Optional |
| Project (legacy) | verity auth register | One repository | No |
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:
| State | Age since verification | What happens |
|---|---|---|
| Fresh | under 14 days | Nothing — full access. |
| Soft-stale | 14–30 days | Still allowed; verity status and verity init nudge you to re-verify. |
| Hard-stale | over 30 days | Repository 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:
| Capability | Signed in | Signed out |
|---|---|---|
| Static analysis in the hooks | Yes | Yes |
| Independent model review | Yes | — |
| Run history, tasks, the dashboard | Yes | — |
| Shared memory and knowledge base | Yes | — |
| Token telemetry | Yes | — |
| Blocks your agent on a network error | Never | Never |
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:
- the
--tokenflag; - the
VERITY_TOKENenvironment variable — the CI path; ~/.verity/credentials— a line keyed to this repository's remote if one exists, otherwise your machine-wide login.
--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
originand be a recognizable git URL. An ssh alias likegh:owner/repocannot be resolved to a repository —verity loginnames this up front. - No session cap. Expiry and revocation bound the credential; the number of machines is not capped.