mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
docs cost tracking coding
This commit is contained in:
parent
340b64a46a
commit
e32169dc37
3 changed files with 15 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
BIN
docs/my-website/img/agent_1.png
Normal file
BIN
docs/my-website/img/agent_1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 470 KiB |
BIN
docs/my-website/img/agent_2.png
Normal file
BIN
docs/my-website/img/agent_2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 218 KiB |
Loading…
Add table
Reference in a new issue