| summary | read_when | |||
|---|---|---|---|---|
JetBrains AI provider notes: local XML quota parsing, IDE auto-detection, and UI mapping. |
|
JetBrains AI is a local-only provider. We read quota information directly from the IDE's configuration files.
-
IDE auto-detection
- macOS:
~/Library/Application Support/JetBrains/ - macOS (Android Studio):
~/Library/Application Support/Google/ - Linux:
~/.config/JetBrains/ - Linux (Android Studio):
~/.config/Google/ - Supported IDEs: IntelliJ IDEA, PyCharm, WebStorm, GoLand, CLion, DataGrip, RubyMine, Rider, PhpStorm, RustRover, Android Studio, Fleet, Aqua, DataSpell
- Selection: most recently modified
AIAssistantQuotaManager2.xml
- macOS:
-
Quota file parsing
- Path:
<IDE_BASE>/options/AIAssistantQuotaManager2.xml(macOS/Linux) - Format: XML with HTML-encoded JSON attributes
- Path:
quotaInfoattribute (JSON):type: quota type (e.g., "Available")current: tokens usedmaximum: total tokenstariffQuota.available: remaining tokensuntil: subscription end date
nextRefillattribute (JSON):type: refill type (e.g., "Known")next: next refill date (ISO-8601)tariff.amount: refill amounttariff.duration: refill period (e.g., "PT720H")
- Usage calculation:
tariffQuota.available / maximum * 100for remaining percent - Reset date: from
nextRefill.next, notquotaInfo.until - HTML entity decoding:
→ newline,"→ quote
- Provider metadata:
- Display:
JetBrains AI - Label:
Current(primary only)
- Display:
- Identity: detected IDE name + version (e.g., "IntelliJ IDEA 2025.3")
- Status badge: none (no status page integration)
- IDE Picker: auto-detected IDEs list, or "Auto-detect" (default)
- Custom Path: manual base path override (for advanced users)
- Requires JetBrains IDE with AI Assistant enabled
- XML file only exists after AI Assistant usage
- Internal file format; may change between IDE versions
Sources/CodexBarCore/Providers/JetBrains/JetBrainsStatusProbe.swiftSources/CodexBarCore/Providers/JetBrains/JetBrainsIDEDetector.swiftSources/CodexBar/Providers/JetBrains/JetBrainsProviderImplementation.swift