Repository navigation
Description
Summary
An operator standing at the Connect Claude step has to choose between a Claude subscription token and an Anthropic API key, and nothing published helps them make that choice or size the plan. Both options are documented well mechanically — what each is, where to get it, how it is stored, how to read usage afterwards — but there is no published answer to the two questions an operator actually asks before they buy anything:
- Which should I use for my situation? Subscription or API key.
- Roughly what will a handful of agents consume, so I pick the right plan tier?
Today (2) is answerable only in hindsight: Settings → Integrations → Claude Subscriptions shows observed 5h/7d consumption and a per-agent cost breakdown after a week of running, and the weekly-limit alert warns at 75% once the plan is already bought. Nothing predicts it beforehand.
What is already published (so this is a gap, not a rewrite)
- Platform Keys — the two tabs, where each credential comes from, that every key is checked with its provider and stored encrypted (AES-256-GCM) in the platform database.
- Subscription Credentials —
claude setup-token, thesk-ant-oat01-prefix, the 5h/7d windows as fixed windows with scheduled resets, headroom, auto-switch, API-key fallback. - FAQ → Credentials & Subscriptions — 43 grounded answers covering both credentials.
- Security and Compliance for Evaluators §5 — carries the one published recommendation: for work done on behalf of others, use API keys (one per organisation, with the provider's spend limit set), because they are metered, attributable, and share no weekly rate-limit window across organisations. §9 lists consumer subscriptions as the sole model authentication for such work as not recommended.
So the recommendation exists for one specific case (work on behalf of others) on an evaluator-facing page, and nowhere in the credential guides an operator reads while setting up. The sizing question has no published answer anywhere.
Why the sizing half is not just a doc edit
A credible figure needs numbers this repo does not have written down: consumption per agent per turn by work type, against Anthropic's current per-tier limits. That is the output of the existing spike #855 (review subscription and API key management against Anthropic's updated Agent SDK pricing and limits, open, status-ready, last updated 2026-09-24), whose acceptance criteria already include documenting the current tiers and limits and checking the platform-key model at realistic fleet sizes. This issue is the publishing half and should be written from that spike's output, not guessed ahead of it.
The decision-guidance half (which credential, for which situation) can be written now from what is already verified.
Acceptance Criteria
- A short "choosing a Claude credential" section in the credential guides answers: use a subscription when X, an API key when Y — including the metered/attributable/no-shared-rate-limit-window reasoning already published on the evaluator page, so the two surfaces agree
- The Connect Claude step and the Subscriptions panel link to it (an operator mid-setup reaches it without searching)
- Sizing guidance states consumption per agent in a form an operator can apply before buying — with the measurement it came from and its date, not a round number
- Anything that depends on a provider's own terms is explicitly not answered, and says who to ask — matching the evaluator page's standing position that Trinity's documentation does not address provider terms
- The default per-agent concurrency that drives consumption is stated where the sizing guidance is (
max_parallel_tasks, default 3, fleet ceiling default 10)
Technical Notes
- Verified against
devatc62030cf(2026-11-23): the subscription token is stored AES-256-GCM-encrypted in the platform database (subscription_credentials.encrypted_credentials), set on the agent container asCLAUDE_CODE_OAUTH_TOKENat create time (services/agent_service/crud.py::_apply_subscription_env) and not written into the agent's.env;ANTHROPIC_API_KEYis stripped from a subscription-mode agent's run environment so it cannot shadow the token. - Beyond agent runs, platform-side model jobs attributed to an agent (retrieval-memory extraction, conversation summaries, Workspace thread titles, compatibility checks) use that agent's own credential through
services/model_gateway.py; a job with no agent behind it uses the instance's platform key. Worth one sentence in the docs, since "what is my token used for" currently reads as "agent runs only". - Docs source:
docs/user-docs/credentials/platform-keys.md,docs/user-docs/credentials/subscription-credentials.md,docs/user-docs/faq/credentials-and-subscriptions.md. - Depends on Spike: review subscription and API key management against Anthropic's updated Agent SDK pricing and limits #855 for the sizing numbers. Related: feat: Per-agent subscription token (self-service subscription management) #348 (per-agent subscription token), fix(ui): Subscriptions panel and assign_subscription copy describe pre-headroom behaviour #2747 (Subscriptions panel copy).
Filed status-incubating, no priority ruled — raising a gap, not claiming a slot.
Activity