Automatically track and display your Patungin AI API usage and limits directly in the VS Code status bar. This minimalist extension helps you keep an eye on your short-term limits, weekly limits, and bonus credits without ever leaving your editor.
✨ Features
Live Status Bar Indicator: Shows the available limit of your currently active Patungin API key.
Rich Hover Tooltip: Hover over the status bar item to view a beautiful Markdown table with progress bars, precise limits, and clear expiration dates for your short-term limit, weekly limit, and bonus.
Multi-Key Support: Track multiple API keys simultaneously.
Bonus Credit Tracking: Dedicated indicator for your Bonus (star) usage.
Anti-Spam Throttling: 30-second cooldown on manual refreshes to protect the Patungin API.
Secure Credentials: Sensitive session cookies and keys are stored in VS Code's encrypted.
🖼️ Overview
Status Bar Breakdown
The indicator uses a compact format to save space:
K1⚡ 19% (5m) | K2⚡ 19% (1h55m) - ⭐ 50%
Open Developer Tools (F12), go to Application > Cookies.
Copy the value of the akm_session cookie.
Example Format: akm_session=eyJjYXB0...acjHEA.SDMi...
Enter Credentials:
Paste the Cookie when prompted in VS Code.
Paste your API Key(s) (comma-separated if you use more than one).
⚙️ Extension Settings
patungin.refreshInterval: Polling interval in seconds (Default: 180, Min: 150).
🛠️ Commands
Patungin: Refresh Usage: Force an immediate update (30s cooldown applies).
Patungin: Update Credentials: Re-enter your session cookie or API keys if they change or expire.
🩺 Troubleshooting
Session Expired: If you see "Session Expired" or a warning color, your akm_session has likely expired or requires a new Captcha validation. Simply log in again on the website and update your cookie in the extension.
Quota Exceeded: When a key hits 100%, the indicator will turn amber/red to warn you.
Created with ❤️ for the Patungin community by fauzilive.