paperclipai/paperclip · error
Claude CLI could not load usage data. Open the CLI and retry
Error message
Claude CLI could not load usage data. Open the CLI and retry `/usage`.
What it means
Error "Claude CLI could not load usage data. Open the CLI and retry `/usage`." thrown in paperclipai/paperclip.
Source
Thrown at packages/adapters/claude-local/src/server/quota.ts:390
return firstLine;
}
const resetLine = lines.find((line) => /^resets/i.test(line) || normalizeForLabelSearch(line).startsWith("resets"));
if (!resetLine) return null;
return resetLine
.replace(/^Resets/i, "Resets ")
.replace(/([A-Z][a-z]{2})(\d)/g, "$1 $2")
.replace(/(\d)at(\d)/g, "$1 at $2")
.replace(/(am|pm)\(/gi, "$1 (")
.replace(/([A-Za-z])\(/g, "$1 (")
.replace(/\s+/g, " ")
.trim();
}
export function parseClaudeCliUsageText(text: string): QuotaWindow[] {
const cleaned = trimToLatestUsagePanel(cleanTerminalText(text)) ?? cleanTerminalText(text);
const usageError = extractUsageError(cleaned);
if (usageError) throw new Error(usageError);
const lines = cleaned
.split("\n")
.map((line) => line.trim())
.filter((line) => line.length > 0);
const sections: Array<{ label: string; lines: string[] }> = [];
let current: { label: string; lines: string[] } | null = null;
for (const line of lines) {
if (isQuotaLabel(line)) {
if (current) sections.push(current);
current = { label: canonicalQuotaLabel(line), lines: [] };
continue;
}
if (current) current.lines.push(line);
}
if (current) sections.push(current);View on GitHub (pinned to 120ae5428f)
Solutions
- Open the Claude CLI and run `/usage`, then retry.
When it happens
Trigger: Thrown at packages/adapters/claude-local/src/server/quota.ts:390 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@120ae5428f (2026-08-18).
Data as JSON: /api/errors/e2f62801eb6f6f6c.
Report an issue: GitHub.