Skip to content

ccusage / data-loader / getClaudePaths

Function: getClaudePaths() ​

ts
function getClaudePaths(): string[];

Get Claude data directories to search for usage data When CLAUDE_CONFIG_DIR is set: uses only those paths When not set: uses default paths (~/.config/claude and ~/.claude)

Returns ​

string[]

Array of valid Claude data directory paths

Released under the MIT License.