API Relay Audit is a local, evidence-first audit for AI API relays and LLM proxies. It keeps relay audits, prompt injection audits, model substitution signals, and Web3 relay audits as separate query families.
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, exposes model identity signals, rewrites tool output, leaks credentials in error responses, or produces stream integrity anomalies.
Each family maps to a distinct search intent, runtime profile, and evidence boundary.
Audit third-party relays, mirrors, gateways, LLM proxies, or resale APIs with the general profile before trusting production or agent traffic.
Detect hidden prompt injection, prompt leakage, instruction override, and extraction behavior through Steps 3-6.
Collect identity, stream, latency, and channel signals without treating self-ID or fingerprints as standalone provider proof.
Use the profile-gated Step 11 checks with --profile web3 or --profile full before wallet-sensitive agent workflows.
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.
Redacted report examples from relay audits — click tabs to compare
Domain names and sensitive details redacted; examples preserve the report shape without publishing raw relay traffic.
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 checks whether a claimed Claude route leaks GPT, DeepSeek, GLM, Qwen, or other model identities. This is an evidence signal, not standalone provider-level proof.
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.