feat: implement usage tracking for AI requests

Adds local token usage tracking for all AI providers. Usage data is
captured during stream processing and stored in a local database.
Includes a new Usage tab in the Providers dashboard to visualize
historical token consumption.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Catalin StanciuandClaude Sonnet 4.5 authored and decolua committed 2026-01-09 17:23:28 +07:00
1 parent 5645d0a0fb
commit 9c3d6f4ad8
12 files changed
+7460 -81

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
"description": "9Router web dashboard",
"private": true,
"scripts": {
"dev": "next dev",
"dev": "next dev --port 3091",
"build": "next build",
"start": "next start"
},