AI Balance Manager 1.0.1
AI Balance Manager
Shows the remaining balance of your AI API accounts directly in the Windows 11 taskbar. It is useful when several APIs are prepaid and you want to notice a low balance before requests start failing, without opening every provider's billing page.
AI Balance Manager runs entirely as a Windhawk mod. It does not install or run a companion application, background service, or separate tray process. It adds a small XAML widget next to the taskbar's existing buttons and does not change the clock, date, weather, or other taskbar elements.
AI Balance Manager on the Windows 11 taskbar
Features
- Automatic balances for DeepSeek, Kimi / Moonshot, and OpenRouter.
- Presets for OpenAI, Anthropic Claude, Google Gemini, xAI Grok, Alibaba Qwen, Mistral, Groq, and Together AI. Those providers do not publish a balance endpoint, so their amount is entered manually.
- Add, remove, rename, enable/disable, and reorder providers.
- Custom HTTPS GET/JSON endpoint with configurable value and subtraction paths.
- Configurable refresh interval.
- API keys are encrypted with Windows DPAPI for the current Windows user.
- English interface by default; Russian can be selected in the Windhawk mod settings.
- Clicking a provider opens its website. Right-clicking the widget opens the settings window. Double-clicking refreshes all balances.
Setup
- Install and enable the mod in Windhawk.
- Right-click the balance widget and choose settings.
- Select DeepSeek, Kimi, or OpenRouter and paste the API key from the provider's dashboard. Endpoint, auth header, currency, and JSON path are already set.
- For a provider without a public balance API, choose its preset and enter the current amount manually.
- Set the refresh interval and save.
- Select the interface language in the Windhawk mod settings. English is the default; the setting applies when the settings window is reopened.
Left offset moves the widget horizontally when another taskbar app occupies the area next to the weather button.
Network access
The mod contacts these hosts only for enabled, non-manual providers:
https://api.deepseek.com/user/balance — DeepSeek.https://api.moonshot.ai/v1/users/me/balance — Kimi / Moonshot.https://openrouter.ai/api/v1/credits — OpenRouter.- Any HTTPS URL configured by the user for a custom provider.
Requests are HTTPS GET requests made with WinHTTP. The API key is sent in the configured header, by default Authorization: Bearer <key>. The user agent is AI-Balance-Windhawk/1.0. The response is a JSON body of up to 4 MB, from which only a number is read; no response content is executed.
Requests run when the mod loads, every configured number of minutes, after saving settings, and when the widget is double-clicked. The built-in DeepSeek and Kimi presets have no key by default and make no request until a key is entered. Disable or remove a provider to stop its requests; removing the mod removes all requests.
Privacy
API keys are stored only on this PC and protected with Windows DPAPI for the current Windows account. Each key is sent only to the HTTPS endpoint of its own provider. The mod sends no telemetry and does not log keys.
Balances come from provider APIs and may be delayed or unavailable. Manual amounts are not refreshed automatically.
Related mods
DeepSeek Balance in Taskbar shows DeepSeek's balance inside the clock text. This mod exists separately because it also supports Kimi, OpenRouter, arbitrary HTTPS/JSON balance endpoints, and manually entered amounts, and presents them in a separate XAML widget instead of changing the clock.
Taskbar AI Quota and Taskbar AI Usage display subscription quota or usage limits. They do not read prepaid API-account balances, so the overlap is small.
Requirements
- Windows 11, 64-bit.
- Windhawk with the mod enabled for
explorer.exe.
License
GPL-3.0. Taskbar XAML discovery and window-thread marshaling are based on the GPL-3.0 projects Taskbar System Info and Multirow taskbar for Windows 11.
Русский
Показывает остаток средств на API-счетах ИИ прямо на панели задач Windows 11. Мод помогает заметить низкий баланс до того, как запросы начнут завершаться ошибкой, и не требует открывать страницы оплаты каждого сервиса.
Мод работает полностью внутри Windhawk: отдельная программа, служба или значок в трее не устанавливаются. Он добавляет небольшой XAML-виджет рядом с существующими кнопками панели задач и не изменяет часы, дату, погоду и другие элементы.
Возможности
- Автоматический баланс DeepSeek, Kimi / Moonshot и OpenRouter.
- Пресеты OpenAI, Anthropic Claude, Google Gemini, xAI Grok, Alibaba Qwen, Mistral, Groq и Together AI. Эти сервисы не публикуют API баланса, поэтому сумма для них вводится вручную.
- Добавление, удаление, переименование, включение и изменение порядка сервисов.
- Произвольный HTTPS GET/JSON API с настраиваемыми путями значения и вычитания.
- Настраиваемый интервал обновления.
- API-ключи шифруются Windows DPAPI для текущего пользователя Windows.
- Английский интерфейс по умолчанию; русский выбирается в настройках мода Windhawk.
- Щелчок по сервису открывает его сайт, правая кнопка открывает настройки, двойной щелчок обновляет балансы.
Настройка
- Установите и включите мод в Windhawk.
- Нажмите правой кнопкой по виджету и выберите настройки.
- Выберите DeepSeek, Kimi или OpenRouter и вставьте API-ключ из кабинета сервиса. Адрес API, заголовок, валюта и путь JSON уже заполнены.
- Для сервиса без публичного API баланса выберите его пресет и укажите сумму вручную.
- Задайте интервал обновления и нажмите «Сохранить».
- Выберите язык интерфейса в настройках мода Windhawk. По умолчанию English; настройка применяется после повторного открытия окна настроек.
Параметр Left offset сдвигает виджет по горизонтали, если место рядом с погодой занято другим приложением.
Сетевые запросы
Мод обращается к указанным ниже адресам только для включённых сервисов, баланс которых не задан вручную:
https://api.deepseek.com/user/balance — DeepSeek.https://api.moonshot.ai/v1/users/me/balance — Kimi / Moonshot.https://openrouter.ai/api/v1/credits — OpenRouter.- Любой HTTPS-адрес, указанный пользователем для произвольного сервиса.
Запросы выполняются по HTTPS методом GET через WinHTTP. API-ключ передаётся в настроенном заголовке, по умолчанию Authorization: Bearer <key>; user-agent — AI-Balance-Windhawk/1.0. Ответ — JSON до 4 МБ, из которого читается только число; содержимое не исполняется.
Запросы выполняются при загрузке мода, каждые заданные минуты, после сохранения настроек и по двойному щелчку по виджету. У встроенных пресетов DeepSeek и Kimi по умолчанию нет ключа, поэтому без введённого ключа запросы не отправляются. Чтобы остановить запросы, отключите или удалите сервис; удаление мода прекращает все запросы.
Приватность
Ключи хранятся только на этом компьютере и защищены Windows DPAPI для текущей учётной записи. Каждый ключ отправляется только на HTTPS-адрес своего сервиса. Мод не передаёт телеметрию и не записывает ключи в журнал.
Баланс зависит от API сервиса и может обновляться с задержкой. Ручные суммы автоматически не обновляются.
Связанные моды
Мод DeepSeek Balance in Taskbar показывает баланс DeepSeek в тексте часов. Этот мод сделан отдельно, потому что дополнительно поддерживает Kimi, OpenRouter, произвольные HTTPS/JSON-адреса и ручные суммы, а также выводит данные в отдельном XAML-виджете, не изменяя часы.
Taskbar AI Quota и Taskbar AI Usage показывают квоты и лимиты подписок, а не остаток средств на API-счетах, поэтому пересечение с ними небольшое.
Требования
- Windows 11, 64 бита.
- Windhawk с включённым модом для
explorer.exe.
Лицензия
GPL-3.0. Поиск XAML-элементов панели задач основан на GPL-3.0 проектах Taskbar System Info и Multirow taskbar for Windows 11.