docs/jetbrains.md
JetBrains AI is a local-only provider. We read quota information directly from the IDE's configuration files.
IDE auto-detection
~/Library/Application Support/JetBrains/~/Library/Application Support/Google/~/.config/JetBrains/~/.config/Google/AIAssistantQuotaManager2.xmlQuota file parsing
<IDE_BASE>/options/AIAssistantQuotaManager2.xml (macOS/Linux)quotaInfo attribute (JSON):
type: quota type (e.g., "Available")current: tokens usedmaximum: total tokenstariffQuota.available: remaining tokensuntil: subscription end datenextRefill attribute (JSON):
type: refill type (e.g., "Known")next: next refill date (ISO-8601)tariff.amount: refill amounttariff.duration: refill period (e.g., "PT720H")tariffQuota.available / maximum * 100 for remaining percentnextRefill.next, not quotaInfo.until → newline, " → quoteJetBrains AICurrent (primary only)Sources/CodexBarCore/Providers/JetBrains/JetBrainsStatusProbe.swiftSources/CodexBarCore/Providers/JetBrains/JetBrainsIDEDetector.swiftSources/CodexBar/Providers/JetBrains/JetBrainsProviderImplementation.swift