DoCoreAI is a privacy-first LLM cost observability and autonomous budget governance SDK for teams running AI in production. It monkey-patches LLM SDKs in the same Python environment as your app and never sitting in the call path, never storing prompts and governs every LLM call autonomously using a self-improving LightGBM prediction model.
Key capabilities:
- Self-tuning token budgets: ML model learns real usage patterns and replaces wasteful default max_tokens ceilings
- Autonomous budget pacing: spreads daily budget across 24 hours, detects over-pace and throttles automatically
- Zero prompt storage: metadata-only telemetry by architecture, prompt and response content never leave your network
- PII detection at the edge: scans before any API call leaves your environment
- Drift detection and auto-retraining: monitors prediction accuracy and retrains automatically
- Zero code changes: monkey-patches all active LLM SDK calls at startup
Works with OpenAI, Anthropic, Google Gemini, Groq, AWS Bedrock, and Ollama. Install in 3 commands via PyPI (pip install docoreai). 30K+ downloads, 20+ enterprise AI engagements, v2.1.0 current.