ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
チュートリアル · 投稿者 unknown

Z-GRC: LLM ガバナンス向けの Python ライブラリとコントロールパネル。CLI(Claude Code など)にも使えます: r/ClaudeCode

Z-GRC は、LLM アプリケーションと CLI のためのオープンソースのガバナンス・リスク・コントロールエンジンです。LLM API 呼び出しを横取りする Python パッケージ、ユーザー・グループ・クォータ・API トークンを管理する Next.js のコントロールパネル、そしてプロキシサーバーモードを備えています。プロキシモードを使えば、Claude Code のような既存のツールもソースコードを変えずに LLM トラフィックをここ経由に向けられ、リアルタイムのコスト管理とブロックが行えます。

翻訳済み

この mod について

この投稿は、チーム初のオープンソースリリースである Z-GRC(Governance, Risk, Control)を発表するものです。AI エージェント、チャットボット、社内ツールのプロジェクトで繰り返し起きる問題、つまり予期しないコストの急増、リアルタイムの利用量管理の欠如、ユーザーごとのコスト管理がないまま共有される LLM の認証情報、DEV や STAGE 環境のカバー不足に対処するために作られました。

ソリューションは 3 つの部分からなります。LLM API 呼び出しを横取りするランタイムとしての Python パッケージ(z-grc)、ユーザー、ユーザーグループ、クォータ、API トークンを作成し利用量を可視化する Next.js のコントロールパネル(z-grc-application)、そして z-grc パッケージ上に構築されたプロキシサーバーモードです。プロキシモードにより、Claude Code(Codex は作業中)のような既に展開されたアプリケーションも、LLM トラフィックをこれ経由にできます。簡単に言えば、ソースコードに手を加えずに Claude Code のコストを管理できるということです。

認証トークンには、圧縮されたペイロードデータにノイズを加えたものが含まれます。ユーザー ID、設定、クォータ上限、ブロック条件、テレメトリの送信先が埋め込まれています。トークンを発行し、設定を保持するのはコントロールパネルです。パッケージはフォアグラウンドまたはバックグラウンドのプロキシサーバーとして動かせるので、外部の CLI ツールはコードを変更せず、待ち時間もなしに LLM トラフィックをこれ経由にでき、目標コストを超えるとブロックされます。

リンク: リポジトリ https://github.com/zeb-ai/z-grc、ドキュメント https://zeb-ai.github.io/z-grc-application/

インストール

インストール方法は元のソースをご確認ください。

原文 / 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/.

関連作品