Skip to main content
TrueFoundry AI Gateway controls who can use and manage models at the level of the provider account. Every model inherits access from the account it belongs to, so granting a team access to an account gives it every model in that account, including models added later.

Roles

A provider account has two roles:
  • Manager can read and edit the account, add or remove models, and manage who has access. Managers are listed under Provider Account Manager.
  • User can call every model in the account but cannot change the account or its access. Users are listed under Provider Account Access.
A role can be granted to individual users, teams, virtual accounts and agents. When you grant a role to a team, every member of the team gets it.
Tenant Admin Access: Tenant admins automatically have access to all models across the platform without being granted a role on each account. This allows tenant admins to manage, configure, and use any model in the AI Gateway.

Grant access to a provider account

Access is managed separately from adding models. Go to AI Gateway > Models, click Manage Accounts and pick the provider on the left. Each account card shows a summary of who has access, for example 1 team, 1 user. Click ⋮ on the account and choose Access Control to see who can access it.
Access Control panel listing the Provider Account Manager and Provider Account Access subjects

Who can access a provider account

Click Grant Access, pick the users, teams, agents or virtual accounts under Subjects, choose Manager or User and click Save. To remove access, click the × on a subject’s chip.
Grant Access form with Subjects and the Manager and User roles

Grant Access for a provider account

The panel lists access granted from the UI. Click Apply using YAML to get the same access as a spec you can keep in Git and apply with tfy apply.

Authenticating with the AI Gateway

To access models through the AI Gateway, you use TrueFoundry API keys — not the original provider keys (OpenAI, Anthropic, etc.). TrueFoundry supports two types of tokens:
  • Personal Access Tokens (PATs) — tied to a user, recommended for development
  • Virtual Account Tokens (VATs) — tied to a virtual identity, recommended for production applications
For detailed instructions on creating and using these tokens, see the Authentication documentation.

Troubleshooting

403 when granting another subject access to a model

Granting another subject access to a model can fail with 403:
Managing who can access a model is checked on the provider account that contains it. Use-only access, either the User role on the whole account (provider-account-access) or provider-integration-access on the model alone, lets you call the model but not grant access to it, and returns this error. To fix it, grant the caller the Manager role (provider-account-manager) on the provider account, or make the grant as a tenant admin. With that role the same grant succeeds with 201.

A token lists more models than it was granted

The /models endpoint lists the models the calling token can access. A grant on a single model (provider-integration-access) adds only that model. A grant on the provider account (provider-account-access) adds every model of that account, even if you also granted individual models. To get back to the per-model list, remove the account-level grant. After it was revoked, the list contained only the individually granted models.