# One policy graph: API + content + agents + AI + MCP
origins:
# --- Public content with Pay Per Crawl + Web Bot Auth + Markdown ---
"www.example.com":
action:
type: proxy
url: https://origin.internal:8443
authentication:
type: bot_auth # RFC 9421 signed agents
agents:
- name: openai-gptbot
key_id: openai-2026-01
algorithm: ed25519
public_key: ${OPENAI_BOT_PUBKEY}
policies:
- type: ai_crawl_control # Pay Per Crawl
price: 0.001
currency: USD
header: crawler-payment
transforms:
- type: html_to_markdown # Negotiated on Accept: text/markdown
# --- Partner API with virtual keys + per-customer quotas ---
"api.example.com":
action:
type: proxy
url: https://backend.internal:8443
authentication:
type: virtual_key
policies:
- type: rate_limiting
key: virtual_key
requests_per_minute: 600
- type: waf
# --- Outbound AI gateway with budget + guardrails ---
"ai.example.com":
action:
type: ai_proxy
routing: fallback_chain
providers:
- name: anthropic
api_key: ${ANTHROPIC_API_KEY}
- name: openai
api_key: ${OPENAI_API_KEY}
guardrails:
input: [{type: pii}, {type: injection}]
budget:
limits:
- {scope: team, max_usd: 5000, period: monthly}
# --- MCP gateway federating internal tools ---
"mcp.example.com":
action:
type: mcp
mode: gateway
federated_servers:
- {origin: github.internal, prefix: gh, rbac: read_only}
- {origin: postgres.internal, prefix: db}
authentication:
type: oauth2 # DCR + DPoP + PKCE