LLM Cost Governance — budget enforcement, cost tracking, and smart model routing for AI agent fleets.
Project description
LLMGovernor
LLM Cost Governance — budget enforcement, cost tracking, and smart model routing for AI agent fleets
LLMGovernor provides intelligent cost monitoring and budget enforcement for AI agent applications. Track spending, set limits, and route to the right model across OpenAI, Anthropic, and AWS Bedrock.
Installation
Install the core package:
pip install llmgovernor
Or install with all provider dependencies:
pip install llmgovernor[all]
Provider-specific installations:
pip install llmgovernor[openai] # OpenAI support
pip install llmgovernor[anthropic] # Anthropic support
pip install llmgovernor[bedrock] # AWS Bedrock support
Quick Start
from llmgovernor import Fleet
# Initialize your fleet
fleet = Fleet(api_key="your-llmgovernor-api-key")
# Decorate your agent functions
@fleet.agent(name="research-assistant", budget_limit=50.00)
async def research_assistant(query: str):
# Your agent logic here
response = await openai_client.chat.completions.create(...)
return response
# Monitor via dashboard
print(f"Dashboard: {fleet.dashboard_url}")
Features
- Real-time cost tracking — Monitor LLM spend across providers
- Budget enforcement — Set limits per agent or fleet-wide
- Usage analytics — Detailed breakdowns by model, provider, and agent
- Multi-provider support — OpenAI, Anthropic, AWS Bedrock
- Smart model routing — Route to the right model for the job
- Dashboard monitoring — Web interface for fleet oversight
Documentation
Full documentation: llmgovernor.ai
License
MIT License — see LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llmgovernor-0.2.0.tar.gz.
File metadata
- Download URL: llmgovernor-0.2.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fba6616a6373be8cd329fe968bb4ad8ce2eeb8a3ce465f88972278e3dea7418
|
|
| MD5 |
8ed2680d2eb1b01ef2201cad709ab95e
|
|
| BLAKE2b-256 |
de26152c735dac6a2e66bcb6e6ad5036f7774f12d6583f4098a947a0c8488b88
|
File details
Details for the file llmgovernor-0.2.0-py3-none-any.whl.
File metadata
- Download URL: llmgovernor-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18bf6d191e26a67bb8db240209768dd81db975c2859ee56cd4f3ae163167b117
|
|
| MD5 |
17966a02de08609f7e9d0da4f9c8afb0
|
|
| BLAKE2b-256 |
488e20ee97b354111595828cd4f0ceb981bffd07fe25c8e26713b53b000ee7b3
|