← Back to Leaderboard
Rcapture0x

capture0x/redwitness

Self-hosted AI application security review with signed scopes and replay-backed evidence

View on GitHub ↗
Open-Source AI AppQuickstart ↓
Engineering Health (Methodology)
A · 82/100
Maintenance Activity
● Updated 3d ago
Latest Release
v1.6.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 Cadence20/20
License Clarity11/20
DockerSelf-HostedAPI
Total Stars
★ 122
24h Growth
+0
7d Growth
+121
Forks
37

GitHub Star History

Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.

capture0x/redwitness Star History (2026-11-27 - 2026-12-04) DAILY STAR HISTORY (8-DAY D1 TELEMETRY) +121 in 7d · avg +17/day 129 65 0 2026-11-27: ★ 12026-11-28: ★ 22026-11-29: ★ 142026-11-30: ★ 412026-12-01: ★ 652026-12-02: ★ 1012026-12-03: ★ 1222026-12-04: ★ 122 ★ 122 11-27 11-30 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

RedWitness is a self-hosted application with a Next.js operator UI, a Python FastAPI backend, and PostgreSQL 16 Alpine under Docker Compose. The UI proxies API traffic to FastAPI, which handles authentication, role-based access, and the signed-scope gate. A state-machine orchestrator reads versioned, hashed JSON/YAML test definitions rather than embedding test content in the engine. The Governor enforces request limits, rate and budget controls, and IP pinning.

Target replies are treated as untrusted input. Deterministic checks take precedence; when a rule cannot decide, a separate model judges the reply and must cite text that actually appears in it. Verification requires a configured threshold of repeat observations across fresh conversations. Stored transcripts, replay results, and the library hash let reviewers trace what was evaluated, while the hash-chained audit log records activity. Browser and sandbox runners are optional components, separate from the core UI/API/database path.

Key Capabilities & Differentiators

RedWitness evaluates application behavior across chatbots, RAG pipelines, and agents, including instruction handling, data isolation, tool permissions, and unsafe output. It supports OpenAI and Anthropic APIs, generic JSON over HTTP or WebSocket, and widget-only chat interfaces through an optional browser runner. Judge configuration is separate and supports Anthropic, OpenAI, and OpenAI-compatible APIs. Findings can be mapped to OWASP LLM Top 10, MITRE ATLAS, and NIST AI RMF; SARIF serves downstream tooling, while PDF and Word reports serve human reviewers.

The evaluation pipeline combines exact-quote checks and replay with severity caps, optional second-model review, and human calibration. On 59 hand-labelled cases, 19 of them deliberately difficult, Claude Sonnet yielded 95% correct decisions and sent the remaining 5% to human review; Claude Haiku yielded 85% correct and sent 15% to review. Neither recorded an incorrect verdict in that sample. Those figures show how often each configuration reached a correct decision without escalation on that set; they do not establish detection accuracy on a new application.

Trade-offs & Limitations

Compared with a standalone model benchmark, RedWitness adds authorization records, application-level evidence, and reviewable findings. That overhead pays off when a release decision depends on what an application exposed or did, not just a model score. Conversely, replay increases request volume, stronger judges raise inference costs, and browser-backed evaluations can add maintenance when the UI changes. A replay-backed finding demonstrates repeatability under the tested conditions, not coverage of every application path.

Self-hosting gives operators control over the deployment and where local evidence is stored, but it does not guarantee that data stays on-premises: an external judge may receive target reply content. Compared with a managed service, operators retain responsibility for upgrades, secrets, evidence retention, backups, and access control. Treat transcripts as sensitive, and review AGPL-3.0 obligations before distributing the software or offering a modified version to network users.

Hardware & Deployment Guide

The standard deployment requires Docker with Compose v2 and a free UI port, defaulting to 3000. The installer generates local secrets and builds the stack; the Debian package also leads into Docker-based setup rather than replacing it. The default Compose layout makes the UI reachable from the local machine and does not publish API or database ports to the host. PostgreSQL uses a persistent volume, so plan backups for the database and deployment secrets. External judging requires provider credentials and connectivity; local inference must be reachable from the backend container, whose localhost is not the host machine.

For sizing, start with the UI, API, and PostgreSQL, then account for concurrent runs, retained transcripts, and any optional runners. Size local inference separately; the application stack has no specified VRAM requirement. The v1.6.0 bundled demo uses a mock judge and needs no provider key. v1.5.0 added contextual assistant chat for runs and findings, and v1.4.1 added release checksums and signed build provenance for verifying the packaged artifact.

Request governance: Signed scopes bind targets, test categories, time windows, and request budgets; the Governor checks each request.
Evidence traceability: Findings retain transcripts, replay results, and the exact test-library hash.
Verdict pipeline: Deterministic checks take priority, model verdicts require verbatim evidence, and inconclusive cases can go to human review.
Guardrail comparison: Defense Efficacy compares the same tests with and without a guardrail and reports a 95% interval.
CI handoff: Scoped, expiring API tokens, SARIF export, and signed completion webhooks support integration; incomplete runs cannot pass the gate.
Deployment boundary: The default Compose layout exposes the UI on the local machine without publishing FastAPI or PostgreSQL to the host.
Best For

Security and QA teams that need auditable guardrail regression checks, reviewable evidence, and CI release gates for applications they operate.

Skip If

You only need a fixed-dataset model score, require a turnkey managed service, or cannot operate the stack and provide an approved judge endpoint without violating data-handling rules.

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

Quick Start & Installation

DockerSelf-HostedAPI
./scripts/init-env.sh             # writes .env with random secrets and prints the admin password once
docker compose up -d --build --wait

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
redwitness ★122+121PythonAGPL-3.0Self-hosted AI application security review with signed scopes and replay-backed
Vibe-Trading39.6k+490PythonMITA self-hosted trading agent for evidence-linked research and inspectable backtes
AstrBot47.9k+298PythonAGPL-3.0A self-hosted Python agent hub that connects chat platforms to model providers
QwenPaw38.5k+246PythonApache-2.0Self-hosted agent workspace for scheduled tasks and chat across apps

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/capture0x/redwitness.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.

capture0x/redwitness Star History on RepoForAI

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

Frequently Asked Questions about redwitness

How does RedWitness fit into an existing application or CI pipeline?

The Next.js UI proxies API traffic to FastAPI. The target interface supports OpenAI and Anthropic APIs, JSON over HTTP or WebSocket, and an optional browser runner for widget-only interfaces. The judge is configured separately from the application being evaluated. For CI, the platform provides scoped, expiring API tokens, SARIF export, and a signed completion webhook.

Do I need a GPU, and what drives runtime overhead?

There is no fixed GPU or VRAM requirement for the Compose stack when model inference runs behind external APIs. Size the host for the UI, backend, and PostgreSQL first, then account for optional browser and sandbox processes, concurrent runs, and retained transcripts. If you host a model with Ollama, size its inference separately for the model and workload.

Can a company self-host RedWitness or offer it as a service?

AGPL-3.0 permits commercial use. If you modify the program and let users interact with that version over a network, you must offer those users the corresponding source of the modified version. Distribution has separate obligations. Review the license before offering a hosted or packaged version, and assess model-provider data handling separately from the software license.

When is RedWitness a better fit than a benchmark script or a managed service?

A model benchmark script is the simpler choice when you only need a score for a fixed dataset. RedWitness is a better fit when reviewers need to link an application-level finding to authorization, an exact response, fresh-conversation replay results, and a versioned test library. A managed service may reduce maintenance, but compare where it sends evidence and how much of that evidence you can export.

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 capture0x/redwitness? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature capture0x/redwitness 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