How atharvapawaskar/kubefin-ai works
Kubefin is currently a Phase 0 scaffold for a Kubernetes-native AI FinOps and LLM governance platform. Its documented workflow proxies application requests through a gateway to AI providers, then asynchronously processes usage events into costs and aggregates for storage and visibility. The gateway is documented as owning authentication, policy, limits, budgets, routing, and event generation. The tree contains placeholders rather than sampled runtime implementations, so this map reflects README-described responsibilities and flows, not verified code behavior.
Main entry points: worker Worker · gateway Gateway controls · redis Redis Streams · frontend Dashboard
Components 9
Request governance
- Gateway controls
services/gateway
Usage processing
- Worker
services/worker - Cost calculation
services/worker - Usage aggregation
services/worker
Product interfaces
- Redis Streams
contracts/redis - Dashboard
frontend
Other components
- Application
- AI provider
- MongoDB
Connections 8
- Application → Gateway controls: sends requests
README.md - Gateway controls → AI provider: routes requests
README.md - Gateway controls → Redis Streams: emits usage
README.md - Redis Streams → Worker: feeds events
README.md - Worker → Cost calculation: calculates costs
README.md - Worker → Usage aggregation: aggregates usage
README.md - Worker → MongoDB: stores results
README.md - MongoDB → Dashboard: provides data
README.md