Seats and API keys
An agent runs on one of two kinds of credential:
- A seat. A subscription plan for one person, such as Claude Pro, Max, Team, or Enterprise, or a ChatGPT plan. The person signs in through the agent’s own flow. The plan has its own model picker and usage limits.
- An API key. A key for the vendor’s API, billed per use to the account that owns it. A company usually creates and pays for these.
Zentri works with both. It never holds either one, and it is not part of either bill.
Compare them
Section titled “Compare them”| Seat (subscription) | API key | |
|---|---|---|
| Who signs in | Each person, with their own account | Each person, with a key the company or the person configures |
| Who pays | The plan holder, at the plan’s price | The account that owns the key, per use |
| Where it lives | The agent’s own sign-in files | Your environment, or an OpenShell provider you created |
What you declare to zt start |
Nothing. subscription is the default. |
--credential api-key, or ZENTRI_CREDENTIAL=api-key |
| Model router | Never routed. The agent keeps its own model. | Routed when a lead turned the router on |
| CI and unattended jobs | No | Yes |
Each person needs their own seat. On a Team or Enterprise plan, each person still signs in with the seat assigned to them. See Never share a subscription.
Nothing in Zentri needs a seat. zt start runs whatever agent you signed in to, and the default declaration, subscription, tells the router to leave its model alone.
Company API keys
Section titled “Company API keys”A customer that pays for agents with API keys configures the keys itself. Zentri never sees them and never bills for them. The vendor bills the key’s owner.
What the vendors say about paying for others’ use and sharing access:
From Anthropic’s Claude Code legal and compliance:
Customers may not pay for, resell, or intermediate Claude usage on their end users’ behalf. Each end user must authenticate with their own Anthropic API key, Claude subscription plan credentials, or 3P inference provider credential (Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry).
Anthropic’s Commercial Terms cover API keys. Under them, the customer is responsible for activity under its account.
From OpenAI’s Services Agreement, section 3.1:
Customer will not share Account access credentials or individual login credentials between multiple users. Customer may not resell or lease access to its Account or any End User Account.
From OpenAI’s Codex authentication:
Use API key authentication for programmatic Codex CLI workflows, such as CI/CD jobs. Don’t expose Codex execution in untrusted or public environments.
From the OpenCode Terms of Use:
Your ability to access Third Party Models is contingent on you having API keys or otherwise having the right to access such Third Party Models.
We encourage you to read the terms and conditions and privacy policy of each provider of a Third Party Model that you choose to utilize.
So give each person their own key, and keep track of who holds which.
Give an agent a key
Section titled “Give an agent a key”On your own machine, set the key the way your agent’s documentation says. For Codex, OpenAI’s documentation gives these two ways to sign in:
codex loginprintenv OPENAI_API_KEY | codex login --with-api-keyThe first starts Codex’s own sign-in flow. The second reads an API key from your environment.
In an OpenShell sandbox, put the key in your own provider on the sandbox host with openshell provider create --from-existing, and name the provider in ZENTRI_OPENSHELL_PROVIDERS. Zentri passes the name, never the key. See Bring your own credentials.
The model router
Section titled “The model router”The optional model router picks a cheap or a frontier model for each task and passes it as the agent’s model flag. ADR-0011 limits it to API key sessions. A seat has its own model picker and limits, and Zentri never uses a subscription’s sign-in for routing.
The router changes a model only when all of these hold:
- A lead turned the project’s router on, with
zt router set --file FILE. - You declared an API key.
- The agent is
claude,codex, oropencode, and you did not pass a model on its command line yourself. - The router’s config names models for that agent.
Declare an API key with the flag or the environment variable:
zt start --credential api-key "Fix the typo in the install docs"ZENTRI_CREDENTIAL=api-key zt start "Fix the typo in the install docs"Any other value is an error, and nothing starts.
zt start prints a model line whenever the coordinator returns a route. A session on a seat keeps the agent’s own model:
model agent default (not routed: the agent runs on a subscription; --credential api-key routes an API key session)| Reason in the model line | Meaning |
|---|---|
the project's router is off |
No lead turned the router on. |
the agent runs on a subscription; --credential api-key routes an API key session |
You did not declare an API key. |
the router has no models for this agent |
The config names no models for this agent. |
the coordinator holds no prompt to classify |
A queued start found no prompt it could read. |
The router reads no credential. It hears only auth, with the value api_key or subscription. A false api-key declaration changes one thing: the model flag of your own agent, which still runs on your own sign-in. The vendor may refuse that model. See Model routing and Configuring model routing.
The coordinator’s own model calls
Section titled “The coordinator’s own model calls”The coordinator can call a model itself, for intent dedup and a few optional steps. These calls use the operator’s keys, never a user’s sign-in, and the vendor bills the owner of those keys.
| Variable | What it does |
|---|---|
ZENTRI_EMBEDDER |
hash (the default, offline), ollama, or openai. |
ZENTRI_EMBED_BASE_URL, ZENTRI_EMBED_MODEL |
The embedder’s URL and model. |
ZENTRI_EMBED_API_KEY_FILE |
A file holding the embedder’s API key. Optional. |
ZENTRI_LLM_BASE_URL, ZENTRI_LLM_MODEL |
An OpenAI-compatible URL ending in /v1, and the chat model. Setting the URL turns on the LLM steps. |
ZENTRI_LLM_API_KEY_FILE |
A file holding the LLM’s API key. Optional. |
ZENTRI_LLM_STEPS |
Which steps use the LLM: extract, judge, and phrase. The default is judge. |
The router’s tiebreak also uses this LLM, only for a project whose lead set llm: true. The coordinator takes an API key file and an endpoint URL. It has no way to use a subscription sign-in.
With the defaults, the coordinator calls no outside model. When you turn the LLM on, the text it judges, extracts from, or rephrases goes to that endpoint. Pick one that your company may send that text to. See Environment variables.
Limitations
Section titled “Limitations”- No usage or cost tracking. Zentri does not count tokens or spend. Your vendor’s dashboard does.
- The declaration is not checked. Zentri cannot tell whether an agent really runs on an API key, because it never reads the credential.
- Grok Build is not supported yet, so it cannot be routed.