Observed since 21 Oct, 09:54 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Real-time cost monitoring for AI agent deployments across LLM providers
Real-time cost monitoring and budget controls for autonomous AI agent deployments.
AI Agent Spend Guardian is a cost tracking and monitoring dashboard built for teams running AI agents across platforms like n8n, Composio, LangChain, and AutoGPT. It aggregates LLM API expenses across OpenAI, Anthropic, and local model providers in one unified interface, solving the critical blind spot where teams deploy autonomous agents with zero cost visibility and no budget safeguards.
pip install -r requirements.txt
Copy .env.example to .env and add your API credentials:
cp .env.example .env
Edit .env with your provider keys:
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
DATABASE_URL=postgresql://user:password@localhost/agent_spend_guardian
Start the FastAPI server:
python -m agent_spend_guardian.main
The dashboard will be available at http://localhost:8000.
Generate a cost report from local logs:
python -m agent_spend_guardian.cli report --days 7 --format csv
Set a budget alert:
python -m agent_spend_guardian.cli budget set --agent my-agent --limit 100.00
Access the dashboard to:
from agent_spend_guardian.tracker import SpendTracker
tracker = SpendTracker()
# Log an API call
tracker.log_call(
agent_id="my-agent",
provider="openai",
model="gpt-4",
tokens_used=1500,
cost=0.045
)
# Retrieve costs
costs = tracker.get_agent_costs("my-agent", days=7)
print(f"7-day spend: ${costs['total']}")
Configure Slack notifications:
python -m agent_spend_guardian.cli alert configure \
--channel #costs \
--webhook https://hooks.slack.com/services/YOUR/WEBHOOK
alembic upgrade head
See CONTRIBUTING.md for guidelines on submitting issues and pull requests.
Freemium SaaS model with free tier, Pro ($39/mo), and Enterprise ($299/mo) plans. See MONETIZATION.md for details.
MIT License — see LICENSE for details.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 2 May 2026 | 18 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:54 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:5cc423435c65881b8f5a601476f66076c3e5b8e5643d77cab3f66768287a65bf