Configure it
1
Set provider to Internal gateway
Under Admin → Agent LLM, pick Internal gateway.
2
Enter the endpoint URL
The gateway origin — for example
https://llm.your-corp.internal.3
Add the gateway API key
Write-only, encrypted. This one key fronts all agents.
4
(Optional) require the gateway for everyone
Set provider policy to
gateway_only so no task can bypass it.The /v1 gotcha
AgentBees auto-strips a single trailing /v1 to protect you, but the correct
value to enter is the origin. One origin serves every agent — the platform derives
the right path per protocol automatically (Claude and Gemini use the origin;
Codex, on the OpenAI SDK, gets /v1 appended).
One key, or per-model-family keys
By default all agents share the one gateway endpoint and key. Set a per-agent key only if your gateway issues a different key per model family — otherwise leave it blank and the main gateway key is reused.Gateway-fronted Bedrock models
If your gateway routes Anthropic models to AWS Bedrock, you can add representative Bedrock inference-profile IDs to your Claude model allowlist with one click (e.g.us.anthropic.claude-opus-4-1-v1:0). The gateway does the Bedrock auth — no AWS
credentials live in AgentBees. Edit them to the exact names your gateway exposes.
Auth: stored key vs SSO-brokered
- Stored key — an encrypted org key fronts every task.
- SSO-brokered — a short-lived per-task credential is minted from the user’s SSO session, so no long-lived key is stored at all.
Guardrails & MCP
Because everything flows through one endpoint, the gateway can enforce policy centrally (which models, which tools). AgentBees can also auto-connect the gateway’s MCP endpoint (derived as<origin>/mcp) in Claude tasks, using the
same injected key — and the gateway still decides which tools that key may run.
A gateway provider with no endpoint fails loudly rather than silently calling the public API —
so a misconfiguration can’t quietly defeat your gateway policy.