Skip to content

Bring your own credentials

Zentri coordinates coding agents. It does not run models for you. Each person installs the unmodified agent CLI, such as Claude Code, Codex, or OpenCode, and signs in to it with their own account or their own API key. The agent talks to its vendor directly.

These rules hold everywhere in Zentri:

  • Your agent, your sign-in. You sign in to the agent through the vendor’s own flow. Zentri does not change the agent or its sign-in.
  • No subscription tokens. Zentri never collects, stores, proxies, or shares a consumer subscription token, such as a Claude.ai or ChatGPT login.
  • Company API keys stay with the company. A customer that uses API keys configures them itself. The vendor bills the key’s owner.
  • No resale. Zentri does not resell model usage. It has no model account of its own that your agents run on.
  • Routing needs an API key. The optional model router changes the model only for a session that declares an API key. See Seats and API keys.
Credential Who holds it Where it lives Does Zentri see it?
Your agent’s subscription sign-in You The agent’s own files on the host, or inside your sandbox No
An API key for your agent You, or your company for you Your environment, or an OpenShell provider you created No
A GitHub token for zt done --pr You Your gh login, or GH_TOKEN or GITHUB_TOKEN No. It goes to GitHub only.
The Slack bot’s tokens Whoever runs the bot The bot’s own files No. The coordinator never calls Slack.
The coordinator’s LLM and embedder keys The operator Files named by ZENTRI_LLM_API_KEY_FILE and ZENTRI_EMBED_API_KEY_FILE Yes. The coordinator uses them for its own optional model calls.

Zentri’s own tokens, which zt login and zt start handle, are not model credentials. They let you and your sessions talk to the coordinator.

With the default local-dev launcher, zt start runs the agent CLI you installed, as you, in a tmux session on your machine. The agent reads its own sign-in, as it does when you run it by hand.

zt adds the Zentri MCP server and hooks next to your agent’s settings. The kit holds no model credential. zt start --help says it plainly: “zt reads no credential, only what you declare.”

With --launcher openshell, the agent runs in an OpenShell sandbox. Two ways to give it a credential:

  • An API key, through a provider. On the sandbox host, create your own provider with openshell provider create --from-existing, as ADR-0004 describes. See OpenShell’s documentation for the arguments. Then name it:

    Terminal window
    export ZENTRI_OPENSHELL_PROVIDERS=ana-anthropic
    zt start --launcher openshell "Fix the flaky login test"

    Zentri passes the provider’s name to --provider, never its value. The launcher also passes --no-auto-providers, so the sandbox gets only the providers you named. Each name must match ^[A-Za-z0-9][A-Za-z0-9._-]{0,62}$. Separate several names with commas.

  • A subscription sign-in. Sign in inside the sandbox through the agent’s own sign-in flow. ADR-0004 states the rule: “Zentri never reads, stores, or proxies credential values. Subscription logins (Claude.ai, ChatGPT) happen inside the sandbox through the agent’s own sign-in flow.”

The sandbox policy lets only the agent and the commands it starts reach its vendor’s hosts. See Sandboxing and OpenShell policies.

Safeguard How it works Checked by
No API field can carry a credential A test walks every schema in the coordinator’s OpenAPI spec and fails on a property named like oauth, session_key, api_key, password, secret, refresh_token, access_token, private_key, cookie, or credential. That is why the router’s field is auth, not credential. TestSpecHasNoCredentialFields
The router reads no credential zt start sends only the kind you declare, api_key or subscription. The default is subscription. TestSpecHasNoCredentialFields, scripts/e2e-m5b.sh
Sandboxes get only the providers you name --no-auto-providers, and each name is checked against a fixed pattern. TestOpenShellLaunch, TestOpenShellRejectsBadProvider
Your GitHub token never reaches the coordinator zt done --pr uses your gh login, or else GH_TOKEN or GITHUB_TOKEN with GitHub’s REST API. No route accepts or stores a forge token. TestOpenWithGh, TestOpenWithTheRESTAPINeverPrintsTheToken
A secret an agent writes down is redacted Notes, plans, snapshots, questions, answers, decisions, review comments, and PRD revisions pass a secret scanner before the coordinator stores them. Threat T18 in docs/plan/THREAT_MODEL.md
Sandbox kits hold no secret zentri kit render writes the kit into the image at build time. The session comes from the sandbox’s environment. zentri kit render --help

Threat T17 in the repository’s docs/plan/THREAT_MODEL.md is “Zentri collects consumer subscription tokens, against vendor terms”. The rows above are its mitigations.

Zentri’s tests follow the same rule. The end-to-end scripts run fake agents. The planned smoke test of real agents in sandboxes uses providers made from test accounts, never the owner’s.

  • Zentri cannot see your credential. By design it cannot tell which account an agent signed in with, so it cannot stop a person from sharing a login on their own machine. Each team keeps that rule. See Never share a subscription.
  • --credential is a declaration. Zentri cannot check it. A false api-key only adds a model flag to your own agent, which still runs on your own sign-in, and the vendor may refuse it.
  • Sandbox sign-in has not run with a real account. No vendor agent has run in a sandbox yet. The sandbox path is tested with a stub agent. Whether a subscription sign-in survives a sandbox restart has not been checked, so plan to sign in again in a new sandbox.
  • Grok Build is not supported yet. Zentri has no kit for it. See Agents.