Expand description
The no-keys demo: firstpass demo.
A self-contained, real-HTTP demonstration of the whole Firstpass loop. It stands up a local server that speaks the Anthropic wire protocol (the cheap model returns a weak answer, the next rung a good one), runs one enforce-mode decision through the real proxy, and prints the audit receipt — which model was tried, which gate caught what, what it cost, and what it saved versus always calling the top tier. Then it reports a downstream outcome via the feedback API and shows it attach without breaking the tamper-evident chain.
Everything here is real code over real HTTP; only the upstream is local, so no API keys are needed. Point the same proxy at real providers (base URLs + BYOK) and it behaves identically.
This lives in the library, not in examples/, so it ships inside the firstpass binary and is
therefore reachable from every install channel — uvx firstpass demo works without a Rust
toolchain. examples/demo.rs is a shim over this same code so the cargo invocation in older
docs keeps working.
Functions§
- run
- Run the demo end to end. Prints to stdout; leaves no state behind (the trace DB is a temp file).