Component ยท Shared or other
LLM provider / proxy
What it is
An LLM provider is an organization-level connection to a model vendor such as OpenAI or Anthropic. It is created from a provider template and holds the upstream address and the vendor key. An LLM proxy is a project-level entry point that points at a provider and has its own API key. Providers and proxies are deployed to gateways, and agents and evaluation monitors call the proxy, never the vendor directly.
The provider is the company's contract with a supplier, held by purchasing. A proxy is a purchase card issued to one project: it spends on the contract, but it can be cancelled without touching the contract.
Why it exists
Agents get a revocable key instead of the real vendor key, and the organization can set limits and guardrails in one place.
How it works
- Templates for openai, anthropic, awsbedrock, azure-openai, azureai-foundry, gemini and mistralai are built in. A provider is stored in the llm_providers table.
- The upstream vendor key is encrypted (AES-256-GCM) before it is saved, and the configuration keeps only the encrypted reference.
- A proxy (llm_proxies table, under POST /orgs/{org}/projects/{project}/llm-proxies) refers to one provider. A provider cannot get a new proxy while it is being deleted.
- Deploying sends a deployment event to a gateway over the gateway's WebSocket connection to Agent Manager.
- Attaching a model to an agent, or choosing a judge model for a monitor, makes Agent Manager create the proxy resources for it.
Key facts
- Tables
- llm_providers, llm_proxies, llm_provider_templates
- Built-in templates
- openai, anthropic, awsbedrock, azure-openai, azureai-foundry, gemini, mistralai
- Provider permissions
- amp:llm-provider:*
- Proxy permissions
- amp:llm-proxy:*
- Vendor key storage
- AES-256-GCM encrypted
Talks to (1)
- deploys to API Platform Gateway runtime (APG) Provider/proxy YAML delivered to gatewayartifact via EventHub + internal API
Used by (2)
- needed by Guardrails and policies Policies attached to provider/proxy
- read by Console (React SPA) Console pages llm-providers