Skip to content

DDG0808/aibal

Repository files navigation

AiBal

AiBal Logo

macOS Menu Bar AI Usage Tracker

Track your AI API usage, quotas, and balances across multiple providers in one place.

English | 简体中文


Preview

AiBal Preview

Features

  • Multi-Provider Support - Track usage across Claude, GPT, Gemini, and more
  • Real-time Monitoring - View quota consumption and remaining balance at a glance
  • Menu Bar Integration - Quick access from macOS menu bar tray
  • Plugin System - Extend functionality with community plugins
  • Plugin Marketplace - Discover and install plugins easily
  • Dark Mode - Native dark theme UI

Screenshots

Dashboard

Monitor all your AI model quotas in one unified dashboard.

Dashboard

Plugin Management

Manage installed plugins with one-click enable/disable.

Plugins

Plugin Marketplace

Browse and install plugins from the community marketplace.

Marketplace

Installation

Download Release

Download the latest .dmg from Releases.

Build from Source

Requirements

Dependency Version
macOS 10.15+ (Catalina or later)
Node.js 18+
pnpm 8+
Rust 1.77+
Xcode CLI Required

Steps

# Clone the repository
git clone https://github.com/DDG0808/aibal.git
cd aibal

# Install dependencies
pnpm install

# Run in development mode
pnpm tauri dev

# Build for production
pnpm tauri build

Tech Stack

Frontend

  • Vue 3 + Composition API
  • Pinia (State Management)
  • Vue Router
  • Vite
  • TypeScript

Backend

  • Tauri 2.x
  • Rust
  • QuickJS (Plugin Runtime)
  • Tokio (Async Runtime)

Project Structure

aibal/
├── src/                    # Frontend (Vue 3 + TypeScript)
│   ├── components/         # UI Components
│   ├── views/              # Page Views
│   ├── stores/             # Pinia Stores
│   ├── services/           # Service Layer
│   └── types/              # Type Definitions
│
├── src-tauri/              # Backend (Rust)
│   ├── src/
│   │   ├── commands/       # Tauri IPC Commands
│   │   ├── plugin/         # Plugin System
│   │   └── tray/           # System Tray
│   └── tauri.conf.json     # Tauri Config
│
└── contracts/              # Plugin API Contracts
    └── types/              # TypeScript Definitions

Plugin Development

AiBal supports a plugin system that allows you to add custom AI provider integrations.

Plugins are JavaScript modules that run in a sandboxed QuickJS environment with controlled API access.

See Plugin Development Guide for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

Acknowledgments

Built with Tauri and Vue.js.

About

AiBal 是一款 菜单栏应用,为 AI 重度用户提供统一的多服务用量监控平台。

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors