Summary
Add a transparent proxy/tunnel mode so AGT's governance sidecar can intercept agent traffic without requiring the agent to make explicit API calls.
Problem
AGT's current sidecar deployment requires the orchestration layer to explicitly call the sidecar HTTP API (e.g., POST /api/v1/check-policy). This means:
- It's not truly "zero-code" integration (Tier 0)
- Agents that don't know about AGT can't be governed
- Retrofitting governance onto existing agent deployments requires code changes
The docs in docs/deployment/openclaw-sidecar.md explicitly note: "The orchestration layer must call the sidecar API." This is the biggest gap in AGT's zero-code story.
Proposed design
Tunnel-based transparent interception
Deploy AGT as a forward proxy that the agent's traffic routes through automatically (via network config, not code changes). The proxy:
- Intercepts outbound connections (HTTP/HTTPS, MCP over stdio/SSE)
- Parses the request at the protocol level
- Evaluates policy rules against the parsed request
- Forwards allowed requests, blocks denied requests
- Logs every decision to the audit trail
Deployment options
- Network namespace proxy (Linux): Run the agent in a network namespace where all outbound traffic routes through AGT's proxy process
- Docker network proxy: Configure Docker networking so the agent container's traffic routes through an AGT sidecar container
- Kubernetes sidecar with iptables: Use init container to redirect outbound traffic through AGT sidecar (Istio-style)
- Environment variable proxy: Set
HTTP_PROXY/HTTPS_PROXY for HTTP-only interception (simplest, least coverage)
What changes vs. current sidecar
| Current sidecar |
Transparent proxy |
| Agent calls AGT API explicitly |
Agent traffic routed through AGT automatically |
| Agent must know AGT exists |
Agent is unaware of AGT |
| HTTP API only |
Protocol-aware (HTTP, MCP, potentially more) |
| Requires code changes |
Requires network config only |
Acceptance criteria
Summary
Add a transparent proxy/tunnel mode so AGT's governance sidecar can intercept agent traffic without requiring the agent to make explicit API calls.
Problem
AGT's current sidecar deployment requires the orchestration layer to explicitly call the sidecar HTTP API (e.g.,
POST /api/v1/check-policy). This means:The docs in
docs/deployment/openclaw-sidecar.mdexplicitly note: "The orchestration layer must call the sidecar API." This is the biggest gap in AGT's zero-code story.Proposed design
Tunnel-based transparent interception
Deploy AGT as a forward proxy that the agent's traffic routes through automatically (via network config, not code changes). The proxy:
Deployment options
HTTP_PROXY/HTTPS_PROXYfor HTTP-only interception (simplest, least coverage)What changes vs. current sidecar
Acceptance criteria
docs/integration-tiers.mdupdated to reflect true Tier 0 capability