API Relay Audit is a local security audit tool for AI API relays and LLM proxies. It detects prompt injection, model substitution, tool rewriting, SSE anomalies, error leakage, and Web3 wallet risks. Your API key is sent only to the relay URL you choose.
API Relay Audit is a local security audit tool for AI API relays and LLM proxies. It checks whether a third-party relay injects prompts, substitutes models, rewrites tool output, leaks credentials in error responses, or produces stream integrity anomalies.
Install as an OpenClaw or Hermes skill — let an agent run the local 14-step audit from a secure environment.
Use Hermes direct install now, or OpenClaw after ClawHub publication:
Set the key through the agent's secure environment, then say:
The agent downloads the pinned script, runs the 14-step audit locally, and presents the findings — you read the report.
Same security model — the agent runs locally on your machine, and the key is sent only to your chosen relay URL.
Your API key is only sent to the relay URL you specify; it is not sent to API Relay Audit or an extra web checker.
Real audit results from three relay services — click tabs to compare
Domain names redacted. Data from actual audits run with api-relay-audit.
Threat taxonomy based on Liu et al., "Your Agent Is Mine" (arXiv:2604.08407)
DNS, CDN, SSL certificate, management panel fingerprint, model list enumeration — understand what's behind the relay.
Compares actual token usage against expected values. Hidden system prompt injection adds extra tokens — the delta reveals it.
3 attack vectors attempt to extract hidden system prompts: verbatim recall, translation trick, JSON continuation. Plus jailbreak resistance tests.
An identity keyword set detects if "Claude" is actually GPT, DeepSeek, GLM, Qwen, or other models in disguise. Anchor phrases confirm true identity.
5 canary markers + binary search pinpoint the real context window boundary. Is your 200K context really 200K?
Checks if the relay silently modifies package install commands in responses — typosquatting supply-chain attacks at the proxy layer.
7 deliberately broken requests probe for API key, env vars, file paths, and LiteLLM internals leaking in error responses.
SSE event whitelist, usage monotonicity, thinking signature validity, model identity check. Plus Web3 signature-isolation probes (profile-gated).
Three tools, three approaches — pick the right one for your needs
| Dimension | api-relay-audit | hvoy.ai | cctest.ai |
|---|---|---|---|
| Token Injection | ✓ | ✕ | ✓ |
| Prompt Extraction | ✓ | ✕ | ✕ |
| Identity Substitution | ✓ | ✓ | ✕ |
| Jailbreak Resistance | ✓ | ✕ | ✕ |
| Context Truncation | ✓ | ✕ | ✕ |
| Tool-Call Rewriting (AC-1.a) | ✓ | ✕ | ✕ |
| Error Response Leakage (AC-2) | ✓ | ✕ | ✕ |
| Stream Integrity (SSE) | ✓ | ✓ | ✕ |
| Web3 Injection | ✓ | ✕ | ✕ |
| Upstream Channel Classifier | ✓ | ✕ | ✓ |
| Local Execution (No extra checker server) | ✓ | ✕ | ✕ |
| Fully Open Source | ✓ | Partial | ✕ |
| Public Leaderboard | ✕ | ✓ | ✕ |
| Structured Audit Report | ✓ | ✕ | ✕ |
Short, citation-friendly pages for GitHub, Google, and AI summaries.
Define the trust boundary and what an intermediary can change.
Run a local audit without adding another API-key trust hop.
Compare local audits, relay lookup, and web-based checks.
Understand token deltas, extraction probes, and identity signals.
Check transfer guidance, signed-transaction refusal, and private-key refusal.
Run local AI API relay audits from agent workflows without adding a web checker.