TokenGuard
An open-source local circuit-breaker sidecar for LLM agents. It intercepts looping calls and substitutes synthetic responses for hard 429 errors, with built-in DLP scanning and streaming control.
Timeline (last 90 days)
TokenGuard is an open-source local circuit-breaker sidecar for LLM agents.
The TokenGuard project is fully open source and contains no external telemetry.
TokenGuard v0.3.0 introduces a "synthetic recovery" mechanism, including the Loop Nudge mode.
TokenGuard's Loop Nudge mode intercepts the initial loop violation and synthesizes a valid 200 OK assistant response instructing the model to change its strategy; only when the agent repeats the exact same violation in a subsequent turn does it escalate to a hard 429 cutoff.
TokenGuard v0.3.0 introduces inline DLP scanning that redacts API keys before requests leave localhost.
TokenGuard v0.3.0 adds mid-stream token repetition abort for runaway streaming calls.
TokenGuard v0.3.0 provides a terminal TUI control center as well as a local web dashboard.
TokenGuard's next milestone is to build native plug-and-play callback handlers for LangGraph and CrewAI, making session tracking and circuit breaking fully zero-configuration.
The project's CI matrix passes stably on Python 3.11 and 3.12 but crashes on 3.10 due to a RecursionError in ExpiringLRUDict.
After the fix, all 135 unit tests and integration tests pass.
All Facts (8)
TokenGuard is an open-source local circuit-breaker sidecar for LLM agents.
50%UnverifiedThe TokenGuard project is fully open source and contains no external telemetry.
50%UnverifiedTokenGuard v0.3.0 adds mid-stream token repetition abort for runaway streaming calls.
50%UnverifiedTokenGuard v0.3.0 provides a terminal TUI control center as well as a local web dashboard.
50%UnverifiedTokenGuard's Loop Nudge mode intercepts the initial loop violation and synthesizes a valid 200 OK assistant response instructing the model to change its strategy; only when the agent repeats the exact same violation in a subsequent turn does it escalate to a hard 429 cutoff.
50%UnverifiedTokenGuard v0.3.0 introduces inline DLP scanning that redacts API keys before requests leave localhost.
50%UnverifiedTokenGuard v0.3.0 introduces a "synthetic recovery" mechanism, including the Loop Nudge mode.
50%UnverifiedTokenGuard's next milestone is to build native plug-and-play callback handlers for LangGraph and CrewAI, making session tracking and circuit breaking fully zero-configuration.
50%