Skip to content

Part III · Your account

Your account

My Account (/account) is what's yours — your identity and your own provider subscriptions and keys — and it follows you onto every product in the instance. Instance Settings is what the admin decided for everyone; this page is what you decide for yourself.

My Account
The My Account page with provider key cards, subscription status, and the GitHub identity card
Live rigEverything that is yours in one place: a card per enabled provider for your own keys and subscriptions, plus your GitHub identity — all following you onto every product.

My provider keys

For every provider the instance has enabled, you can bring your own credential. Why bother, when the instance already has keys? Two reasons: billing (your usage lands on your budget or your personal subscription instead of the shared instance account) and entitlements (your own account may have access the shared key does not).

How Foundry picks a credential

When an agent makes a call on your behalf, Foundry resolves the credential in a fixed order — and the UI shows this as pills on each provider card:

My Account · Resolution order
Resolution-order pills on a provider card showing subscription, your key, and instance default in sequence
Live rigThe pills on each provider card spell out the fixed resolution order — your subscription, then your key, then the instance default — so you can see which credential will actually serve your turns.
  1. Your subscription — if you have connected a personal subscription (OAuth) for this provider and it is active, it wins.
  2. Your key — else, your own stored API key for this provider.
  3. Instance default — else, the credential the admin configured in Instance Settings → Providers.
  4. Fail loudly — if none of these exists, the call fails with a visible error. Foundry never silently borrows a different provider or someone else's credential — a quiet fallback would move real money and real data without anyone choosing it.
flowchart LR
    A[Agent call as you] --> B{Your subscription connected and active?}
    B -- yes --> S[Use your subscription]
    B -- no --> C{Your own key stored?}
    C -- yes --> K[Use your key]
    C -- no --> D{Instance key configured?}
    D -- yes --> I[Use instance default]
    D -- no --> F[Fail loudly — visible error]

Adding a key

My Account · Add your key
The add-key form asking whether the credential is an API key or a subscription key
Live rigWhere a provider supports both billing modes, the form asks which kind of credential you are storing — a pay-per-token API key or a key tied to a vendor coding plan.

Where the provider supports both billing modes, the form asks which kind of credential this is: a plain API key (pay-per-token) or a Subscription credential (a key tied to a vendor coding plan). Your key is encrypted at rest, is only ever shown back to you as a masked suffix, and can be replaced (which rotates it in place) or deleted at any time.

Some providers show "BYO not applicable": they authenticate through an instance-managed identity — for example a Google Cloud service account — where there is no personal secret you could meaningfully substitute.

Use your subscription (OAuth)

For providers whose catalog binding supports it — OpenAI today — you can connect a personal subscription by signing in rather than pasting a key. Once linked, the provider card shows "✓ ChatGPT connected" with a Manage action, and your turns are served through your plan.

Three things to know before connecting:

Your plan must include Codex models

Connecting requires a Codex-entitled plan. A plan without Codex models will connect successfully — the OAuth handshake has no way to know — but cannot serve turns; the first real call fails. If you connect and turns fail, check your plan tier before anything else.

  • One subscription = one human. Your subscription serves your turns only. It is never shared across users — that is both how the resolution order works and what the vendor's terms require.
  • Verifying it is really used: after connecting, the resolution pills on the provider card show your subscription in first position. If it shows as connected but turns fail, see the plan warning above.

GitHub identity

My Account · GitHub identity
The GitHub identity card with git author name, email, and the advanced personal-access-token field
Live rigThe GitHub identity card sets the author name and email stamped on every commit Foundry makes for you; the PAT field is an advanced fallback, encrypted and never displayed again.

Foundry writes code: agents commit on branches and open setup PRs on your behalf. The GitHub identity card controls what that authorship looks like:

  • Git author name / email — stamped on every commit Foundry makes for you. Set these so the history reads as yours, matching your Git hosting profile.
  • Personal access token (Advanced) — normally unnecessary: Foundry uses your GitHub sign-in's OAuth token for repository operations. The PAT is a fallback for setups where that token cannot be used. Like all secrets here, it is encrypted at rest and never displayed again.