docs cost tracking coding

This commit is contained in:
Ishaan Jaff 2025-08-02 15:29:44 -07:00
parent 340b64a46a
commit e32169dc37
3 changed files with 15 additions and 0 deletions

View file

@ -1,9 +1,19 @@
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Image from '@theme/IdealImage';
# Track Usage for Coding Tools
This tutorial shows how to track usage and costs for AI-powered coding tools like Claude Code, Roo Code, Gemini CLI, and OpenAI Codex through LiteLLM.
Track requests, total costs, and user engagement metrics for each coding tool via User-Agent headers.
<Image
img={require('../../img/agent_1.png')}
style={{width: '100%', display: 'block', margin: '2rem auto'}}
/>
## Who This Is For
Central AI Platform teams providing developers access to coding tools through LiteLLM. Use this to monitor tool engagement and track individual user usage patterns.
@ -31,6 +41,11 @@ Ensure your coding tool includes identifying User-Agent headers in API requests.
Confirm that LiteLLM is properly tracking requests by checking logs for the expected User-Agent values.
<Image
img={require('../../img/agent_2.png')}
style={{width: '100%', display: 'block', margin: '2rem auto'}}
/>
### 4. View Usage Dashboard
Access the LiteLLM dashboard to view aggregated usage metrics and user engagement data.

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB