SuperAPI AI Directory

Proxy-AIops

Proxy-AIops is an open-source AI operations tool for Traefik, Caddy, and HAProxy reverse proxies/load balancers, providing governed, auditable read and write operations for AI agents and humans through a unified MCP server and CLI. It supports reading versions, entry points, routes, services, upstream health, middleware, TLS inventory, traffic and error counts, and configuration trees, and provides four root cause analyses: backend health, certificate expiry, error rate, and route conflicts. Reversible writes include Caddy configuration set/delete/full load and HAProxy runtime server status and weight adjustments, all supporting dry_run preview. All calls are recorded by the built-in governance framework with audit logs, risk levels, and revocation descriptors, and output sanitization is performed, but no read-only switch or approval gate is provided; permissions are controlled by the connected platform account. The project is MIT licensed, community maintained, and not affiliated with any proxy vendor.

Open website

About this tool

Proxy-AIops is a community-maintained open-source project, MIT licensed, and is not affiliated with or sponsored by Traefik Labs, the Caddy project, HAProxy Technologies, or the HAProxy project. It targets three types of reverse proxies/load balancers—Traefik, Caddy, and HAProxy—and provides governed, auditable AI operations capabilities for AI agents (via MCP) and humans (via CLI).

Purpose and Positioning The tool connects uniformly to three proxy platforms through a single MCP server: Traefik (API under /api/..., /metrics text counters), Caddy (admin API, default localhost:2019), and HAProxy (Data Plane API v2, /v2/..., HTTP Basic authentication). The same set of tool names works across all three platforms. In the configuration, each target declares its own platform; a name-indexed platform registry selects the API shape (authentication and resource paths), and an explicit support matrix throws educational errors for operations that a platform genuinely cannot perform—for example, Traefik writes point to its providers (files, container labels, orchestrator CRDs) rather than silently doing nothing.

Main Capabilities For reading, it can obtain versions, entry points/listeners, routes (routers/caddy routes/frontends, including resolved hosts and paths), service- and server-level upstream health, middleware, TLS inventory, traffic/error counters, and live configuration trees (snapshot and search) across the entire edge.

The flagship root cause analyses provide transparent heuristics, showing calculated numbers rather than black-box conclusions: backend_health_rca (offline upstreams → cause classification L4/L6/L7/DNS/maintenance + recommended actions), cert_expiry_sweep (bucketed by days to expiry + renewal hints per platform), error_rate_rca (5xx share compared with cluster baseline, dominant error code → 502/503/504/500 cause), route_conflict_analysis (shadowed routes, dead routes, redirect loops).

Governed writes include Caddy configuration set/delete/full load (first fetch the previous subtree/configuration so that recorded revocation can truly restore) and HAProxy Runtime server state (ready/drain/maint) and weight (restore previous value on undo) both support dry_run preview; delete/load are risk=high and require double confirmation in the CLI. The tool inventory contains 28 tools in total.

Governance and auditing Every tool passes through a built-in governance framework (built-in, zero external dependencies): audit logging, token/call budgets with runaway circuit breaking, descriptive risk-level labeling, undo token recording, and output sanitization. All MCP tools and CLI writes pass through @governed_tool, which records but does not authorize. Every call (consistent across MCP and CLI) writes an audit row to ~/.proxy-aiops/audit.db, including the tool, redacted parameters, status, duration, risk level, and the approver/reason supplied by the operator. Reversible writes record an inverse-operation descriptor from the captured prior state to ~/.proxy-aiops/undo.db (recorded only; executed by an external orchestrator). Budgets/runaway protection are a safety backstop rather than an authorization gate, configurable via PROXY_MAX_TOOL_CALLS, PROXY_RUNAWAY_MAX, etc.; PROXY_RUNAWAY_MAX=0 disables the circuit breaker. Risk levels are descriptive labels on audit rows and do not constitute a gate. All text returned by the proxy is length-limited and control-character-sanitized before reaching the agent.

Usage It can be installed as a Claude Code plugin (a single install provides both the skill and the MCP server; the MCP server is fetched via uv and pinned to the package version declared by the plugin); it can also be installed as an OpenClaw plugin from ClawHub, after which the OpenClaw gateway must be restarted and uvx must be on PATH; it can also run as a CLI or a standalone MCP server (stdio). Credentials are configured via proxy-aiops init. Non-secret connection information is stored in ~/.proxy-aiops/config.yaml; secrets (the HAProxy Data Plane API password, or the optional Basic auth password in front of Traefik/Caddy) are stored encrypted in ~/.proxy-aiops/secrets.enc (Fernet + scrypt-derived key) and are never written to disk in plaintext. Traefik and Caddy often run locally without authentication, so their secrets are optional; HAProxy is required. Set it via proxy-aiops secret set <target> or the initialization wizard. The store is unlocked by PROXY_AIOPS_MASTER_PASSWORD (non-interactive/MCP/CI) or an interactive prompt (CLI on a TTY). The legacy plaintext environment variable PROXY_<TARGET>_SECRET is accepted as a fallback and can be migrated with proxy-aiops secret migrate. MCP clients do not inherit shell configuration, so PROXY_AIOPS_MASTER_PASSWORD (and the migrated PROXY_AIOPS_CONFIG / PROXY_AIOPS_HOME) must be set explicitly in the client configuration, otherwise secrets.enc cannot be unlocked.

Use cases and limitations Suitable for unified operations of multiple reverse proxies in hybrid edge environments, reading edge state, performing root cause analysis, and audited reversible writes. The tools do not decide whether a write is permitted; that is determined by the agent's judgment or the permissions of the connected account: give the HAProxy Data Plane API a read-only role, or narrow the Traefik/Caddy management API permissions, and writes will fail server-side. Therefore there is no read-only switch, policy file, or approval gate to configure.

Platform support and verification status: behavior is verified against simulated JSON/metric responses—each module is importable, each MCP tool carries a governance marker, the four flagship analyses are unit-tested against synthetic telemetry, the support matrix asserts that instructional errors are raised, and reversible writes assert that the correct inverse-operation descriptor is recorded. Specific REST paths are modeled on each project's public API and have not yet been actually run against real proxies; docs/VERIFICATION.md lists the checklist that must be met for live runs. All three platforms are free and self-hostable, and proxy-aiops doctor is the fastest live check for health/information probing on each platform. Note: this tool operates reverse proxies/load balancers and is not for firewall rules (use firewall-aiops instead).