Agency Mode · Contents
Agency Mode

Agency Mode: clients, invites and access

Run Breaklytix for client repositories through your own GitHub App installation, from invite to revocation.

Agency Mode is for consultancies, fractional CTOs and managed-service teams that monitor repositories they do not own. The agency keeps one Breaklytix account, invites each client, and connects the client's repositories through the agency's GitHub App installation. The client keeps control of which repositories are shared.

The important design decision is separation. Each client's repositories, scans, findings, alerts and fixes are scoped to that client. The agency owner can see every client; a client cannot see another client's data, and the agency does not gain a personal OAuth token for the client's account.

Before you invite anyone

  • Agency Mode must be enabled on your account. Without the agency flag, the Agency dashboard and the client endpoints return an access error.
  • The GitHub App must be configured on the backend with an app id, private key and slug. The client installs that app on the repositories it wants monitored.
  • Your email sender should be production-ready. An invite sent from the Resend sandbox only reaches the account owner, which makes the client invite useless.
  • Decide who owns the relationship. The invite email says which agency invited the client, using your GitHub login or account email.

Inviting a client

  • Open the Agency dashboard and choose Invite client. Enter a display name and the client's email address.
  • Breaklytix creates a pending client and sends an email with an authorization link.
  • The link is single-use and expires after seven days. Only a pending client can be resent; an authorized client must be revoked first.
  • The invite stores only a SHA-256 hash of the token. The raw token exists in the email link and is never recoverable from the database.
  • If an invite is already pending or authorized for that email, the request is rejected rather than creating a duplicate client.

What the client does

The client opens the link, sees which agency invited them, and installs the agency's GitHub App on the repositories they choose. The installation callback is protected by a short-lived signed state, so an installation cannot be bound to the wrong client. When the callback completes, the client moves from pending to authorized, the invite token is invalidated, and the repositories granted to the installation are imported under that client.

  • The client chooses the repositories in GitHub's own installation screen. The agency cannot silently widen that selection.
  • Repository access is read through the GitHub App installation token. The agency does not need the client's personal access token.
  • Once authorized, the client appears in the agency dashboard with its repositories and scan state.
  • If the client later changes the installation on GitHub, the next scan uses the current installation scope.

Invite status and email status are different things

Every client row has a status: pending, authorized or revoked. Separately, the invite email has a delivery status reported by the email provider. Accepted by provider means the provider accepted the message and returned an id; it does not mean the client received it. A sandbox sender is called out explicitly, because in that case only the account owner can receive the mail.

Revoking access

  • Revoking sets the client to revoked, invalidates any outstanding invite and removes stored repository token snapshots.
  • The client record is kept rather than deleted, so scan and alert history remains auditable.
  • A revoked authorization link returns a clear message and cannot be reused.
  • To restore access, invite the client again; revocation is not an undelete.
TipTest the whole chain with one internal client before you invite a real one: send the invite, install the app, confirm the repositories appear, run a scan, then revoke and confirm access is gone.

Do clients need their own Breaklytix account?

No. The agency owns the Breaklytix account. The client authorizes the agency's GitHub App installation on the repositories they want monitored, and their data stays scoped to that client.

How long does an agency invite last?

Seven days. The link is single-use, and resending an invite replaces the token with a new seven-day link. Only pending clients can be resent.

What happens to a client's data when access is revoked?

Access stops immediately, the invite is invalidated and repository token snapshots are removed. The client record and historical scans remain so the agency can audit what happened.

Can an agency see every client's repositories?

The agency owner can see every client in the agency dashboard, but each repository is bound to its client. The data model keeps client scoping on every query rather than relying on the UI to hide rows.

Related articles