task.llm. By default, agents use managed LLM access backed by your Guild tokens balance. You can switch to bring your own key (BYOK) by adding an inference provider credential.
LLM configuration is stored on an account (your user account or an organization), not on individual workspaces. Sessions in a workspace use the LLM settings for that workspace’s owner account.
Together these settings act as a central model gateway: credentials are held server-side and never distributed to agents, model policies control which models each workspace and agent may call, the daily token limit caps spend, and every call is attributed to its workspace, agent, and user in Usage.
Open Models & providers
Models & providers is under Access & setup in the left nav. The page itself is headed LLM Settings.Personal account
1
Open your personal account
Use the account switcher at the top of the left nav, or click your avatar and select Settings.
2
Go to Models & providers
Click Access & setup in the left nav, then Models & providers.
https://app.guild.ai/settings/llm-settings
Organization
Organization LLM settings apply to workspaces owned by that organization. Only organization admins can open this section.1
Open your organization
Switch to the organization with the account switcher at the top of the left nav.
2
Go to Models & providers
Click Access & setup in the left nav, then Models & providers.
https://app.guild.ai/organizations/{org-name}/settings/llm-settings
Managed vs BYOK
The page shows your current mode as LLM Tier:
- Managed (tier) — Guild runs LLMs on your behalf using managed infrastructure.
- BYOK (Bring Your Own Key) — Guild routes LLM calls through your own inference provider credentials, selected by your account’s model policies.
On a managed account, Guild honors an agent’s declared LLM preference when it holds a managed key for the preferred publisher. A pinned managed default applies only when the agent declares no preference. If an agent prefers a publisher Guild has no managed key for, the run fails. To use that publisher, an admin of the owning account adds a credential for it, which switches the whole account to BYOK.
Inference provider credentials
Credentials live on the account. Adding one switches the account to BYOK; removing the last one returns it to managed. An inference provider is the endpoint Guild authenticates to. A model publisher is who made the model. For a publisher’s own API these are the same party, but a provider can serve models from several publishers — so a credential carries one access per publisher it unlocks, and model policies bind to a specific access rather than to the credential as a whole. Providers differ in how they authenticate, which is why this is a credential and not simply a key: the fields in the form are derived from the provider you pick.Add a credential
Click Add API key in the page header and choose an inference provider from the menu: one of the publishers’ own APIs (Anthropic, Google AI, Meta, or OpenAI), or a third-party provider that serves models from several publishers (AWS Bedrock, Fireworks AI, or OpenRouter). The dialog is titled for the provider you chose, such as Add OpenRouter key.
Click Add Key to save. A credential gets one access for each publisher you check.
The platform default model for each publisher is below. Each publisher’s page lists its models, the providers that serve them, and how to call them from an agent.
DeepSeek, Alibaba (Qwen), Moonshot AI, and Z.ai models are served through third-party inference providers — AWS Bedrock, OpenRouter, or Fireworks AI — rather than the publishers’ own APIs. OpenRouter also serves Anthropic, OpenAI, Gemini, and Meta models. Fireworks AI serves DeepSeek, Alibaba (Qwen), Moonshot AI, Z.ai, and OpenAI models. Each provider’s page lists the models it serves: AWS Bedrock, Fireworks AI, and OpenRouter.
Third-party providers
Third-party inference providers serve models from several publishers. Some authenticate differently from a single API key, so see each provider’s page for setup:- AWS Bedrock assumes an IAM role in your AWS account.
- Fireworks AI uses a Fireworks API key.
- OpenRouter uses an OpenRouter API key.
Update a credential
Select Edit from the row menu to update an existing credential. Under Models, check or uncheck publishers and change each one’s default model. Unchecking a publisher stops the credential serving it, and the model policies bound to that publisher’s access stop applying.Rotate a credential
Rotate a credential to swap in a new secret without disturbing the model policies bound to its accesses. Guild validates the new secret, creates a replacement credential carrying the old one’s policies and default model, and archives the old credential immediately. Usage already recorded stays attributed to the credential that incurred it. Select Rotate key from the credential’s row menu and paste the new secret. Rotating cannot be undone, and an already-archived credential cannot be rotated.Default model
Each credential has a default model — the model used when that credential is selected but the request doesn’t resolve to a more specific allowed model. A credential that reaches several publishers has one default model for each. You set them under Models when you add the credential, pre-filled with the platform default for each publisher, and can change them later with Edit.Manage credentials
The table lists each credential’s provider, masked secret, created date, and creator. Use the row menu to:- Edit — Change which publishers the credential reaches, and each one’s default model.
- Rotate key — Replace the credential’s secret while keeping its policies. See Rotate a credential.
- Delete — Archive the credential. Archived credentials appear when you filter to Archived keys.
Model policies
Model policies control which LLMs agents can call. A policy (a “rule”) binds a credential access to a scope with a set of allowed models. Policies are an allowlist: a model is available only if a matching rule allows it. Model policy configuration is available only in BYOK mode. The Account default and Overrides sections, along with the workspace-level and workspace agent-level Models sections, appear only when the account has at least one active credential. In managed mode, these sections are hidden because LLM calls use Guild-provided tokens and there are no rules to assign.Account default
Set the account default rules under Models in Access & setup > Models & providers. Rules are ranked, and the first matching rule wins. Each rule allows one of:
For a Specific models rule, you can:
- Select standard models from the built-in catalog.
- Enter custom globs to match model families, for example
haiku-*orgpt-4o-*.
Overrides
The Overrides section, below Models in Access & setup > Models & providers, lists every workspace, agent, and workspace-agent that sets its own rules instead of the account default. An override replaces the account default entirely — there is no merging. Filter the list by scope — Workspaces, Agents, or Workspace agents — and use Add override to create one or the row menu to edit it. Reset all overrides clears every override and returns all scopes to the account default. Like Models, this section is hidden on the LLM Settings page in managed mode and appears once the account has at least one active credential.Rule hierarchy and inheritance
Model rules resolve down an inheritance chain so you can set a policy once and refine it where needed, from least to most specific:Credentials always belong to the owning account — a workspace, agent, or workspace agent can’t hold a key of its own. An override replaces the inherited rules, so it can point a lower level at a different key the account owns and change which models that key serves.
- Workspace — open the workspace and click Models in the sidebar. The page shows the inherited account rules; Add rule overrides them for this workspace, and Reset to inherited drops the override. If the owning account has no active credentials, this page shows an empty state — Using Guild-provided tokens — instead of the editor, and model controls become available once you add a credential to the account.
- Workspace agent — open the agent inside a workspace and use the Models section on its detail page. It works the same way, overriding the rules for that agent in that workspace. If the owning account has no active credentials, the Models section is hidden entirely.
Find a credential’s ID from the CLI
guild llm policy create needs the ID of the credential a policy binds to. List an account’s credentials to find it:
The output has one row per credential:
Manage policies from the CLI
The Guild CLI manages model policies underguild llm policy. Each policy binds a credential access to a target — a workspace, agent, or workspace-agent — with an optional model allowlist.
Model values follow the same semantics as the console: a list of patterns (with optional
* wildcards) allows those models, all models means unrestricted, and an empty list disables that access for the target.
Manage policies from chat
Smith can do the same work conversationally. Ask it to list your credentials, show the policies on a target, restrict a credential to certain models, or change policy priority. Smith presents the exact change it intends to make and waits for your approval before creating, updating, deleting, or reordering anything.Daily token limit
When you use BYOK, you can set a Daily token limit in the Usage & limits section at the top of the page. All LLM requests are rejected after the account exceeds this limit for the day. The limit resets at midnight UTC. Leave the field empty for unlimited usage. This limit applies to LLM usage on the account while BYOK is active.Guild tokens balance
When the account is in managed mode, the page shows your Guild tokens balance. The balance is indicative and may not update in real time.How agents use these settings
Agents do not embed credentials in code. At runtime, Guild resolves LLM configuration for each session from the workspace owner’s account settings. See LLMs for callingtask.llm from agent code and Credentials for connecting third-party services agents use as tools.
Model selection
Guild resolves the provider and model for eachtask.llm call from policies and agent preferences.
Policy resolution
A policy pairs a credential access with a list of allowed models. To find the active policy set, Guild walks this hierarchy and stops at the first level that has any policies defined:- Workspace agent — policies on a specific agent installed in the workspace
- Agent — policies on the agent definition
- Workspace — policies on the workspace
- Account — policies on the user or organization account
Preferences
An agent can declare preferences, each naming a provider and optionally a model. Guild evaluates them against the active policies in order:- A preference with no model selects the policy’s first allowed model, or the credential’s default model when the policy lists none.
- A preference with a model is matched against the policy’s allowed models as wildcard patterns, so
claude-haiku-*matches any Claude Haiku variant. A policy with no allowed-models list matches every model.