explaingit

0xkaz/llm-governance-dashboard

Analysis updated 2026-05-18

2PythonAudience · ops devopsComplexity · 4/5LicenseSetup · hard

TLDR

A self-hostable dashboard that puts a proxy in front of AI coding tools, logs every request to BigQuery, and shows teams their AI spending and adoption metrics.

Mindmap

mindmap
  root((LLM Governance))
    What it does
      Proxy AI providers
      Log requests to BigQuery
      Budget alerts
      Adoption tracking
    Tech Stack
      Python
      FastAPI
      LiteLLM
      BigQuery
      Docker
    Key Features
      Per-user API keys
      Cost per team
      Slack and email alerts
      Weekly retention charts
    Getting Started
      Configure env file
      Run bq-setup
      Docker Compose up
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Track how much each developer on your team is spending on AI coding tools across multiple providers in one dashboard.

USE CASE 2

Set monthly budget caps per team and receive Slack or email alerts before the budget runs out.

USE CASE 3

Measure whether AI coding tools have lasting adoption by seeing weekly active rates and retention over time.

What is it built with?

PythonFastAPILiteLLMBigQueryDockerPostgreSQL

How does it compare?

0xkaz/llm-governance-dashboard0-bingwu-0/live-interpreterahsinmemon/asn-face-attendence-system
Stars222
LanguagePythonPythonPython
Setup difficultyhardmoderatemoderate
Complexity4/52/53/5
Audienceops devopsgeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires a Google Cloud project with BigQuery enabled and a service account JSON key outside the repo.

Use freely for any purpose including commercial, as long as you keep the copyright notice.

In plain English

This is a self-hostable dashboard for teams that have deployed AI coding tools like Claude Code, Codex, or Cursor and now need visibility into how much money is being spent and whether the tools are actually being used. The system works by placing a proxy gateway in front of every AI provider your team uses. Instead of developers calling OpenAI or Anthropic directly, they point their tools at this local proxy using a per-user API key. Every request passes through LiteLLM, a library that handles routing to the right upstream provider, and each call is recorded as a row in a BigQuery table with details like the user, team, model, tokens used, cost in dollars, and response latency. No personal data is stored, only anonymized identifiers. A FastAPI dashboard turns that log data into two things: cost governance and adoption tracking. The cost side shows spending per user and team, tracks each group against a monthly budget, and sends Slack or email alerts when a team hits 80 or 100 percent of its limit. Virtual API keys can be issued and revoked from the dashboard. The adoption side shows whether people are actually returning to use the tools each week, how many different tools each person uses, and trend charts for daily active usage. It distinguishes between a productivity claim and a simple activation signal. The whole stack runs locally via Docker. You configure a BigQuery project, run a setup command to create the table, then bring up the proxy with Docker Compose. Adding a new provider requires only an entry in a YAML config file and the provider API key. The dashboard is available in English and Japanese. The project is described as a demo and reference implementation, not a production-hardened system.

Copy-paste prompts

Prompt 1
I want to set up llm-governance-dashboard to monitor Claude Code and Codex spending for my team. Walk me through the Docker Compose setup and BigQuery configuration.
Prompt 2
How do I add a new AI provider to llm-governance-dashboard? I want to route OpenRouter calls through the LiteLLM proxy and track their costs.
Prompt 3
My team has a monthly AI budget of 500 dollars. How do I configure budget alerts in llm-governance-dashboard to notify our Slack channel at 80 percent usage?
Prompt 4
How does llm-governance-dashboard measure adoption versus productivity? What metrics does the dashboard show and what does each one mean?

Frequently asked questions

What is llm-governance-dashboard?

A self-hostable dashboard that puts a proxy in front of AI coding tools, logs every request to BigQuery, and shows teams their AI spending and adoption metrics.

What language is llm-governance-dashboard written in?

Mainly Python. The stack also includes Python, FastAPI, LiteLLM.

What license does llm-governance-dashboard use?

Use freely for any purpose including commercial, as long as you keep the copyright notice.

How hard is llm-governance-dashboard to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is llm-governance-dashboard for?

Mainly ops devops.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub 0xkaz on gitmyhub

Verify against the repo before relying on details.