# AgentFinOps **Repository Path**: julywhj/AgentFinOps ## Basic Information - **Project Name**: AgentFinOps - **Description**: 🚀 企业级 AI Agent 统一网关与大模型算力 FinOps 成本治理平台。提供 Token 毫秒级计量、智能路由分发、多租户配额与预算控制 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-11-09 - **Last Updated**: 2026-11-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: AI, FinOps, api网关, 智能体, Agent ## README # AgentFinOps 🚀 ### Enterprise AI Agent Gateway & FinOps Financial Governance Platform [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE) [![Docker](https://img.shields.io/badge/Docker-Ready-2496ED?style=flat&logo=docker)](https://www.docker.com) [![Go Version](https://img.shields.io/badge/Go-1.21%2B-00ADD8?style=flat&logo=go)](https://golang.org) > [English](README_en.md) | [中文说明](README.md) > **AgentFinOps** is an enterprise-grade AI Agent Gateway and LLM Cost Governance (FinOps) platform. > It delivers sub-millisecond Token metering, intelligent failover routing, multi-tenant department budget enforcement, and autonomous circuit breakers to prevent runaway LLM costs. --- ## 🌟 Core Capabilities - ⚡ **High-Performance AI Gateway**: Go-based reverse proxy capable of handling 10,000+ concurrent agent requests with sub-millisecond route resolution. - 📊 **Sub-Millisecond Token Metering**: Precise tracking of Prompt and Completion tokens per department, project, session, and agent tool invocation. - 🏢 **Multi-Tenant Budget Governance**: Strict organizational isolation with hard budget caps, sliding 24-hour limits, and automatic billing circuit breakers. - 🛑 **Runaway Agent Circuit Breaker**: Powered by `agent-core-sdk`, automatically detects and neutralizes infinite tool-calling loops and recursive LLM hallucinations before bills escalate. - 🔀 **Intelligent Fallback Routing**: Dynamic model downgrade and upstream provider load balancing based on latency, cost, and availability. - 🔒 **Enterprise Security & Audit**: Full end-to-end request audit trails, upstream Master API Key masking, and granular Role-Based Access Control (RBAC). - 🇨🇳 **100% Domestic Cloud Compliance**: Pure contract quota and postpaid enterprise accounting with zero cryptocurrency or offshore dependencies. --- ## 🛠️ Quickstart ### Production Deployment via Docker Compose ```bash # 1. Clone the repository and configure environment variables cp .env.example .env # 2. Launch Gateway, Console, and Database services docker compose -f docker-compose.caddy.yml up -d ``` ### Accessing the Web Services - **FinOps Management Console**: `https://console.your-domain.com` (Default port: 8080) - **API Gateway Edge**: `https://gate.your-domain.com` (Default port: 8000) --- ## 📚 Documentation & SDK - [Official Documentation](https://aipmedia.cn/docs/) - [Python & TypeScript Client SDK](https://github.com/open-agentpay/agent-core-sdk) --- ## 🤝 Community & Contact - **Documentation**: [https://aipmedia.cn/docs/](https://aipmedia.cn/docs/) - **WeChat Official Account**: 杰哥AI运营 - **Community Assistant (WeChat)**: `jie125846` - **Technical Inquiries & Email**: [julywhj@163.com](mailto:julywhj@163.com) - **Issues & Discussions**: Welcome to submit [GitHub Issues](https://github.com/open-agentpay/AgentFinOps/issues) or join [Discussions](https://github.com/open-agentpay/AgentFinOps/discussions). --- ## License Apache License 2.0. See [LICENSE](LICENSE) for details.