Elevator pitch
What are you proposing to change?Add the ability for clients to discover and configure agent LLM providers (identified by
id) via dedicated provider methods:
providers/listproviders/setproviders/disable
Status quo
How do things work today and what problems does this cause? Why would we change things?ACP does not currently define a standard method for configuring LLM providers. In practice, provider configuration is usually done via environment variables or agent-specific config files. That creates several problems:
- No standard way for clients to discover what providers an agent exposes
- No standard way to update one specific provider by id
- No standard way to disable a specific provider at runtime while preserving provider discoverability
- Secret-bearing values in headers are difficult to handle safely when configuration must be round-tripped
- Client proxies: clients want to route agent traffic through their own proxies, for example to add headers or logging
- Enterprise deployments: organizations want to route LLM traffic through internal gateways for compliance, logging, and cost controls
- Self-hosted models: users running local servers (vLLM, Ollama, etc.) need to redirect agent traffic to local infrastructure
- API gateways: organizations using multi-provider routing, rate limiting, and caching need standardized endpoint configuration
Shiny future
How will things play out once this feature exists?Clients will be able to:
- Understand whether an agent supports client-managed LLM routing
- See where the agent is currently sending LLM requests (for example in settings UI)
- Route agent LLM traffic through their own infrastructure (enterprise proxy, gateway, self-hosted stack)
- Update routing settings from the client instead of relying on agent-specific env vars
- Disable a provider when needed and later re-enable it explicitly
- Apply these settings before starting new work in sessions
Implementation details and plan
Tell me more about your implementation. What is your detailed implementation plan?
Intended flow
- Client initializes and checks
agentCapabilities.providers. - Client calls
providers/listto discover available providers, their current routing targets (or disabled state), supported protocol types, and whether they are required. - Client calls
providers/setto apply new (required) configuration for a specific provider id. - Client may call
providers/disablewhen a non-required provider should be disabled. - Client creates or loads sessions.
Capability advertisement
The agent advertises support with an empty object capability:providers is absent, clients must treat provider methods as unsupported.
Types
providers/list
providers/set
providers/set updates the full configuration for one provider id.
providers/disable
Example exchange
initialize Response:Behavior
- Capability discovery: agents that support provider methods MUST advertise
agentCapabilities.providers: {}ininitialize. Clients SHOULD only callproviders/*when this capability is present. - Timing and session impact: provider methods MUST be called after
initialize. Clients SHOULD configure providers before creating or loading sessions. Agents MAY choose not to apply changes to already running sessions, but SHOULD apply them to sessions created or loaded after the change. - List semantics:
providers/listreturns configurable providers, their supported protocol types, current effective routing, andrequiredflag. Providers SHOULD remain discoverable in list afterproviders/disable. - Client behavior for required providers: clients SHOULD NOT call
providers/disablefor providers whererequired: true. - Disabled state encoding: in
providers/list,current: nullmeans the provider is disabled and MUST NOT be used by the agent for LLM calls. - Set semantics and validation:
providers/setreplaces the full configuration for the targetid(apiType,baseUrl, fullheaders). Ifidis unknown,apiTypeis unsupported for that provider, or params are malformed, agents SHOULD returninvalid_params. - Disable semantics:
providers/disabledisables the target provider at runtime. A disabled provider MUST appear inproviders/listwithcurrent: null. If target provider hasrequired: true, agents MUST returninvalid_params. Disabling an unknownidSHOULD be treated as success (idempotent behavior). - Scope and persistence: provider configuration is process-scoped and SHOULD NOT be persisted to disk.
Frequently asked questions
What questions have arisen over the course of authoring this document?
What does null mean in providers/list?
current: null means the provider is disabled.
When disabled, the agent MUST NOT route LLM calls through that provider until the client enables it again with providers/set.
Why is there a required flag?
Some providers are mandatory for agent operation and must not be disabled.
required lets clients hide or disable the provider-disable action in UI and avoid calling providers/disable for those ids.
Why not a single providers/update method for full list replacement?
A full-list update means the client must send complete configuration (including headers) for all providers every time.
If the client wants to change only one provider, it may not know headers for the others. In that case it cannot safely build a correct full-list payload.
Also, providers/list does not return headers, so the client cannot simply “take what the agent returned” and send it back with one edit.
Per-provider methods (set and disable) avoid this problem and keep updates explicit.
Why doesn’t providers/list return headers?
Header values may contain secrets and should not be echoed by the agent. providers/list is intentionally limited to non-secret routing information (current.apiType, current.baseUrl).
Why are providers/list and providers/set payloads different?
providers/set accepts headers, including secrets, and is write-oriented.
providers/list is read-oriented and returns only non-secret routing summary (current) for UI and capability discovery.
Why is this separate from initialize params?
Clients need capability discovery first, then provider discovery, then configuration. A dedicated method family keeps initialization focused on negotiation and leaves provider mutation to explicit steps.
Why not use session-config with a provider category instead?
session-config is a possible alternative, and we may revisit it as the spec evolves.
We did not choose it as the primary approach in this proposal because provider routing here needs dedicated semantics that are difficult to express with today’s session config model:
- Multiple providers identified by
id, each with its own lifecycle - Structured payloads (
apiType,baseUrl, fullheadersmap) rather than simple scalar values - Explicit discoverable (
providers/list) and disable (providers/disable) semantics
session-config values are effectively string-oriented and do not define a standard multi-value/structured model for this use case.
Revision history
- 2026-03-22: Finalized provider disable semantics -
providers/removerenamed toproviders/disable, required providers are non-disableable, and disabled state is represented ascurrent: null - 2026-03-21: Initial draft of provider configuration API (
providers/list,providers/set,providers/remove) - 2026-03-07: Rename “provider” to “protocol” to reflect API compatibility level; make
LlmProtocolan open string type with well-known values; resolve open questions on identifier standardization and model availability - 2026-03-04: Revised to use dedicated
setLlmEndpointsmethod with capability advertisement - 2026-02-02: Initial draft - preliminary proposal to start discussion