Z-GRC a Python library & control panel for LLM governance & also applicable for CLIs (claude code, ) : r/ClaudeCode
Z-GRC is an open-source governance, risk and control engine for LLM applications and CLIs. It ships a Python package that intercepts LLM API calls, a Next.js control panel for users, groups, quotas and API tokens, and a proxy server mode that lets already-built tools such as Claude Code route their LLM traffic through it for real-time cost control and blocking without modifying source code.
About this mod
The post announces Z-GRC (Governance, Risk, Control), the team's first open-source release, built to address recurring pain points across AI agent, chatbot and internal tool projects: unexpected cost spikes, no real-time usage control, and shared LLM credentials without per-user cost control or coverage for DEV/STAGE environments.
The solution has three parts: a Python package (z-grc) acting as the runtime that intercepts LLM API calls; a Next.js control panel (z-grc-application) for creating users, user-groups, quotas and API tokens and visualizing usage; and a proxy server mode built on the z-grc package that lets already-deployed applications such as Claude Code (with Codex WIP) have their LLM traffic routed through it. In simple terms, cost in Claude Code can be controlled without touching source code.
Authentication tokens carry compressed payload data with added noise, embedding the user identity, configuration, quota limits, blocking conditions and telemetry destination. The control panel mints these tokens and holds the configuration. The package can run as a proxy server in foreground or background mode, so external CLI tools route their LLM traffic through it with no code changes, no waiting time, and blocking once a target cost is exceeded.
Links: repo https://github.com/zeb-ai/z-grc, docs https://zeb-ai.github.io/z-grc-application/
Installation
See the original source for installation instructions.
Original text / README
Title: Z-GRC a Python library & control panel for LLM governance & also applicable for CLIs (claude code, ) : r/ClaudeCode Skip to main contentZ-GRC a Python library & control panel for LLM governance & also applicable for CLIs (claude code, ) : r/ClaudeCode. Open menu Open navigationGo to Reddit Home. # Z-GRC a Python library & control panel for LLM governance & also applicable for CLIs (claude code, ). Hi, My team and I have been building Z-GRC (Governance, Risk, Control) and this is the first time we're sharing a project as open source. Why we built it ?, Across our projects like AI agents, LLM chatbots, internal tools kept facing into the same pain points everytime like, Unexpected cost spikes at unexpected times, with no idea how much had been used until the bill arrived. No way to control usage in real time applications, Shared LLM credentials floating around inside a project or across the whole org, with no per-user cost control and no coverage usage for DEV, STAGE environments. So we started designing what we wished existed, a governance engine you can drop into any application, whether it's actively in development or already shipped with a oneline line or top of the code file that's all we can can control of the cost consumption of that application. A Python package (z-grc):** the runtime that intercepts LLM API calls. A Next.js control panel (z-grc-application): where you create users, user-groups, quotas and API tokens and visualize everything. Proxy Server ( usingz-grc package): where we can control already build application like claude code, codex(WIP) with proxy server. in simple terms we can control cost in Claude code without touching the source code. It carries compressed payload data with noise added and it embeds everything the package needs which user is this, configuration, quota limits, when to block, where to send telemetry, allof it. The control panel (NextJS application) is what mints these tokens that's where the configuration actually lives and that's where the embedding happens. The package can run as a proxy server in foreground or background mode, so external CLI tools route their LLM traffic through it without code changes with no waiting time and blocks when target cost execeeded. - Repo : https://github.com/zeb-ai/z-grc. Z-GRC Application <> Control Panel:. - Docs: https://zeb-ai.github.io/z-grc-application/.

