Skip to content

Cline Source

  • VS Code and Cursor global storage for extension saoudrizwan.claude-dev: <editor root>/User/globalStorage/saoudrizwan.claude-dev/tasks/*/ui_messages.json, where the roots are ~/.config/Code and ~/.config/Cursor on Linux, ~/Library/Application Support/Code and ~/Library/Application Support/Cursor on macOS, and %APPDATA%\Code and %APPDATA%\Cursor on Windows
  • Remote VS Code server storage: ~/.vscode-server/data/User/globalStorage/saoudrizwan.claude-dev/tasks/*/ui_messages.json
Terminal window
llm-usage daily --source cline --cline-dir /path/to/cline/tasks

cline is directory-backed, so generic source directory overrides also work:

Terminal window
llm-usage daily --source-dir cline=/path/to/cline/tasks

The adapter reads task ui_messages.json arrays and counts say: "api_req_started" entries. The nested JSON payload maps tokensIn, tokensOut, cacheReads, cacheWrites, and positive cost values into normalized usage. Cline writes the provider’s raw input count in tokensIn, so it maps straight to input tokens (unlike Roo Code and Kilo Code, whose cache-inclusive count is split). Model names are read from the sibling api_conversation_history.json file.