chenhg5/cc-connect · error
claudecode: current Claude account does not support /usage
Error message
claudecode: current Claude account does not support /usage
What it means
A classified error from detectClaudeUsageOutputError: the output indicates the current account tier does not expose usage data. It fires when /usage exists but the signed-in Claude account cannot access it (plan limitation).
Source
Thrown at agent/claudecode/claude_usage.go:450
resetAt = resetAt.AddDate(1, 0, 0)
}
return resetAt, nil
}
return time.Time{}, fmt.Errorf("unsupported reset time %q", raw)
}
func detectClaudeUsageOutputError(screen, stderr string) error {
joined := strings.ToLower(strings.TrimSpace(screen + "\n" + stderr))
switch {
case joined == "":
return nil
case strings.Contains(joined, "unknown command") && strings.Contains(joined, "/usage"):
return fmt.Errorf("claudecode: this Claude Code version does not support /usage; please upgrade Claude Code")
case strings.Contains(joined, "auth login") || strings.Contains(joined, "not logged in") || strings.Contains(joined, "sign in"):
return fmt.Errorf("claudecode: Claude Code is not logged in for /usage; run `claude auth login`")
case strings.Contains(joined, "/usage") && (strings.Contains(joined, "not available") || strings.Contains(joined, "not supported") || strings.Contains(joined, "subscription")):
return fmt.Errorf("claudecode: current Claude account does not support /usage")
default:
return nil
}
}
type claudeUsageTerminal struct {
mu sync.RWMutex
lines [][]rune
row int
col int
}
func newClaudeUsageTerminal() *claudeUsageTerminal {
return &claudeUsageTerminal{
lines: [][]rune{nil},
}
}
View on GitHub (pinned to 4000b2338a)
Solutions
- Switch to an account/plan that exposes usage data
- Check the Claude Code settings for the active account
- Accept that /usage is unavailable for this account
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at agent/claudecode/claude_usage.go:450 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of chenhg5/cc-connect@4000b2338a (2026-09-06).
Data as JSON: /api/errors/6e5fadc36228c114.
Report an issue: GitHub.