From gateway-manager
This skill should be used when configuring agentgateway for AI/LLM provider routing, MCP server routing, external processing, and traffic policies. Use when the user asks to "add an LLM provider backend", "configure MCP routing", "set up Ollama backend", "add OpenAI backend", "configure Anthropic", "add Vertex AI backend", "set up rate limiting", "configure CORS", "add external processing", "upgrade agentgateway", or "troubleshoot AI routing". Supports Ollama, OpenAI, Anthropic, Gemini, Vertex AI, Azure OpenAI, and Bedrock backends.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gateway-manager:agentgatewayThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Expert guidance for agentgateway — the AI/agentic proxy for LLM routing, MCP server routing, and external processing on Kubernetes.
Expert guidance for agentgateway — the AI/agentic proxy for LLM routing, MCP server routing, and external processing on Kubernetes.
agentgateway is a Linux Foundation project that extends Kubernetes Gateway API for AI workloads. It provides:
Note: Starting v2.3.0, agentgateway diverges from kgateway into its own repo (agentgateway/agentgateway) and namespace (agentgateway-system). See references/helm-lifecycle.md.
This plugin includes slash commands for gateway operations:
| Command | Purpose |
|---|---|
/gw-status | Show all gateway resources status |
/gw-logs [count|controller] | Tail controller logs for debugging |
/gw-debug | Full diagnostic with events and recommendations |
/gw-backend <provider> | Generate backend YAML (ollama, openai, anthropic, gemini, vertexai, azureopenai, bedrock) |
/gw-eval | Evaluate current config against best practices |
/gw-versions | Compare installed vs latest helm chart versions |
/gw-upgrade [component] | Guide helm chart upgrades with pre/post validation |
The gateway-manager agent handles multi-step workflows: "add an Anthropic backend", "set up Vertex AI routing", "upgrade my gateway", "why isn't my route working".
┌─────────────────────────────────────┐
│ agentgateway proxy │
│ (port 8080 - LoadBalancer) │
└─────────────┬───────────────────────┘
│
┌─────────────────────────┼─────────────────────────┐
/ollama/* /anthropic/* /mcp/*
/openai/* /gemini/*
│ │ │
▼ ▼ ▼
┌───────────────┐ ┌───────────────┐ ┌───────────────┐
│AgentgatewayBackend │AgentgatewayBackend │AgentgatewayBackend
│ (AI type) │ │ (AI type) │ │ (MCP type) │
└───────────────┘ └───────────────┘ └───────────────┘
Configures the agentgateway proxy deployment (logging, resources).
Routes to LLM providers or MCP servers. Two types:
spec.ai.provider with host/port and provider typespec.mcp.targets for MCP server endpointsTraffic policies targeting Gateway or HTTPRoute:
apiVersion: agentgateway.dev/v1alpha1
kind: AgentgatewayBackend
metadata:
name: ollama-backend
namespace: kgateway-system
spec:
ai:
provider:
openai: # Ollama is OpenAI-compatible
model: "llama3.2"
host: "host.internal" # OrbStack host access
port: 11434
Create the secret first (preferred — avoids keys in output):
kubectl create secret generic openai-api-key \
--from-literal=api-key="${OPENAI_API_KEY}" \
-n kgateway-system --dry-run=client -o yaml | kubectl apply -f -
Then create the backend:
apiVersion: agentgateway.dev/v1alpha1
kind: AgentgatewayBackend
metadata:
name: openai-backend
namespace: kgateway-system
spec:
ai:
provider:
openai:
model: "gpt-4o-mini"
policies:
auth:
secretRef:
name: openai-api-key
The agent and /gw-versions command check for updates live:
agentgateway/agentgatewaymain may not exist in released versions)| Error | Cause | Solution |
|---|---|---|
backends required DNS resolution which failed | Backend hostname not resolvable | Use host.internal for OrbStack |
processing failed: failed to parse request: EOF | GET request to LLM endpoint | LLM backends expect POST with JSON body |
model 'X' not found | Wrong model in backend config | Update AgentgatewayBackend with correct model |
# Check agentgateway controller logs
kubectl -n kgateway-system logs -l app.kubernetes.io/name=agentgateway --tail=50
# Check backends and policies
kubectl get agentgatewaybackend,agentgatewaypolicy -n kgateway-system
# Describe a backend for detail
kubectl describe agentgatewaybackend <name> -n kgateway-system
When you need more detail, load these reference files:
references/provider-backends.md: All 7 provider configurations (Ollama, OpenAI, Anthropic, Gemini, Vertex AI, Azure OpenAI, Bedrock), token lifecycle, secret managementreferences/resource-patterns.md: AgentgatewayBackend, AgentgatewayPolicy, AgentgatewayParameters YAML examplesreferences/mcp-routing.md: MCP server backend and routing patternsreferences/external-processing.md: External Processing (ExtProc) for custom request/response mutations and routingreferences/helm-lifecycle.md: agentgateway installation, upgrade, rollback, version checkingreferences/lessons-learned.md: API structure gotchas, CORS pitfalls, local vs cloud deployment patternscr.agentgateway.dev (agentgateway)--set controller.enableAgentgateway=true (pre-v2.3.0)references/helm-lifecycle.md for complete installation sequencenpx claudepluginhub totallygreg/claude-mp --plugin gateway-managerConnects AgentCore agents to external APIs, MCP servers, Lambda functions, or OpenAPI specs via Gateway. Configures outbound auth (OAuth, API keys, IAM), credentials, and Cedar policies for tool access control.
Configures TrueFoundry AI Gateway for unified OpenAI-compatible LLM access, provider account integrations, content safety guardrails, and request observability (traces, costs, errors).
Configures Azure API Management as an AI Gateway to govern AI models, MCP tools, and agents with policies for semantic caching, token limits, content safety, and load balancing.