← Back to Leaderboard
Atoby-bridges

toby-bridges/api-relay-audit

Local Python CLI and DSH plugin for auditing LLM API relay behavior

Engineering Health (Methodology)
A · 79/100
Maintenance Activity
● Updated 12d ago
Latest Release
v2.5.0
Commercial License Check
AGPL-3.0 · Copyleft Warning

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption16/25
Release Cadence17/20
License Clarity11/20
MCPCLI
Total Stars
★ 939
24h Growth
+1
7d Growth
+5
Forks
86

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

toby-bridges/api-relay-audit Star History (2026-03-29 - 2026-12-03) ALL-TIME STAR HISTORY (2026-03 – 2026-12) +922 in 249d · avg +4/day 991 496 0 2026-03-29: ★ 172026-04-18: ★ 2262026-05-09: ★ 3652026-05-30: ★ 5942026-06-20: ★ 6902026-07-11: ★ 7312026-08-01: ★ 7572026-08-22: ★ 7812026-09-12: ★ 8172026-10-03: ★ 8582026-10-24: ★ 8902026-11-09: ★ 9072026-12-03: ★ 939 ★ 939 2026-03 2026-07 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

API Relay Audit is a local, active testing client rather than a gateway or inline monitor. The standalone audit.py uses Python's standard library and curl. The modular development path lives in api_relay_audit/ and scripts/, with tests/ and an httpx>=0.24.0 dependency in requirements.txt. Probes travel to the chosen relay; results are collected locally as Markdown or JSON. The optional transparency log records hashes only, and submitting redacted evidence is a separate step subject to maintainer review.

The Node package dsh-api-relay-audit wraps the local runner for DeepSeek Harness hosts that use the official @deepseek-ai/dsh-commands registry. It resolves the current provider's base URL, model, and credential reference, then passes the credential to the audit process in an environment variable. OpenClaw and Hermes skill files remain available for direct use, but active plugin distribution centers on DSH; an MCP server entrypoint is not established.

Key Capabilities & Differentiators

The 14-step suite uses a six-dimensional risk matrix and retains per-step evidence alongside a LOW, MEDIUM, or HIGH summary. It checks reported input-token surplus, prompt and instruction behavior, context truncation, changes to pinned package-command text, and leakage in error responses. Where Anthropic-style SSE is supported, it inspects event types, usage monotonicity, thinking signatures, and stream model identity. A token surplus warrants checking request wrapping and accounting; it does not prove hidden instructions were inserted.

The relay API can be Anthropic- or OpenAI-compatible, but the DSH distribution expects the selected route to identify as Claude. Model self-identification, stream metadata, latency variance, and channel fingerprints are signals to corroborate, not provider attestation. The default general profile excludes wallet-specific checks; web3 and full include checks for transfer guidance and refusal behavior around signed transactions and private keys.

Trade-offs & Limitations

Compared with hvoy.ai for reputation lookup and cctest.ai for one-click tests and channel fingerprinting, this tool is a better fit when the team needs a repeatable run and evidence it can inspect. Local execution keeps report generation on the operator's machine; it does not remove the need to trust the selected relay with the credential used for testing. Use a dedicated test credential and budget for metered calls before running the full audit.

Treat the result as a point-in-time observation, not a safety certificate. Blocked, unsupported, and ambiguous probes remain inconclusive rather than passing. JSON preserves the full Markdown evidence, so it is not safe to publish without review and redaction. The public example is a synthetic fixture, not a live-service benchmark. Teams distributing the tool or offering remote access to a modified version should review AGPL-3.0 source-code obligations.

Hardware & Deployment Guide

For a standalone run, use Python and curl, pin a published release, and supply the target URL and a test credential. v2.5.0 supports --key-env API_RELAY_AUDIT_KEY and --format json; without --output, stdout carries one JSON document and progress goes to stderr. No GPU or local model is needed. Live auditing is not offline: the relay receives the probe requests and credential, and a full run may incur token charges. Use --connectivity for a lower-cost first pass.

For DSH, the package declares Node ^22.19.0 || >=24.0.0 and requires a compatible host with profiles and the official command registry. Pin a release tag or immutable commit. v2.4.0 introduced reproducibility metadata, stricter Anthropic stream completion checks, and the DSH bundle. Prefer v2.5.0 for JSON output and safer curl handling: error probes and streaming fallback pass credential-bearing headers through config stdin rather than process arguments.

Runtime: Standalone audit.py uses Python's standard library and curl; requirements.txt lists httpx>=0.24.0 for the modular path.
Audit scope: A 14-step suite and six-dimensional risk matrix organize findings across general, web3, and full profiles.
Stream integrity: Anthropic-style SSE checks inspect event types, usage monotonicity, thinking signatures, and stream model identity where available.
Agent integration: /relay-audit reuses the active DSH provider configuration and receives credentials through a local environment variable.
Report automation: v2.5.0 can emit one JSON document on stdout with progress on stderr, while retaining the full Markdown evidence.
Credential handling: v2.5.0 passes curl headers through config stdin for error probes and streaming fallback rather than exposing the key in process arguments.
Best For

Platform and security teams vetting a relay before routing production or coding-agent traffic, with local evidence they can rerun and review.

Skip If

You need continuous inline enforcement, definitive upstream model attestation, a relay safety certificate, or coverage for non-Claude routes through the DSH plugin.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

MCPCLI
AUDIT_SCRIPT_REF=v2.5.0
curl -fsSL "https://raw.githubusercontent.com/toby-bridges/api-relay-audit/${AUDIT_SCRIPT_REF}/audit.py" -o audit.py

python audit.py --key <YOUR_KEY> --url <BASE_URL> --output report.md

# Web3 / wallet users
python audit.py --key <YOUR_KEY> --url <BASE_URL> --profile web3 --output report.md

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/toby-bridges/api-relay-audit.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

toby-bridges/api-relay-audit Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about api-relay-audit

How does the audit integrate with an existing agent setup?

The standalone CLI sends probes from your machine to the configured relay. On compatible DeepSeek Harness hosts, /relay-audit reuses the active provider's base URL, model, and credential reference; DSH passes the resolved credential to the local process through an environment variable. The verified integration is the DSH command registry; no MCP server entrypoint is established.

What hardware and runtime overhead should I plan for?

No local model or GPU is required, so there is no model VRAM to size. The standalone path uses Python's standard library and curl. Live audits still depend on network access and the selected relay's availability, and a full run can consume metered tokens. Start with --connectivity if you only need a lower-cost connectivity check.

Can we run this in-house or embed it in a commercial service?

You can run the auditor on your own machine, but live probes still reach the relay you select. The project is licensed under AGPL-3.0. Before distributing the software or offering a modified version for remote network use, review the applicable source-code obligations. Handle audit reports separately as potentially sensitive artifacts.

When is this a better fit than hvoy.ai or cctest.ai?

Choose API Relay Audit when you need repeatable local runs and inspectable per-step evidence. Use hvoy.ai for a relay reputation lookup or cctest.ai for one-click testing and channel fingerprinting. Channel fingerprints and model self-identification can flag a mismatch, but neither alone proves which upstream model served the request.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining toby-bridges/api-relay-audit? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature toby-bridges/api-relay-audit on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare