- Use app.getPreferredSystemLanguages() for reliable OS language detection instead of relying solely on app.getLocale() which returns Chromium's internal locale (was returning zh-CN on pt-BR systems) - Support both Squirrel (%LOCALAPPDATA%) and WiX/MSI (Program Files) install directories when checking if app runs from expected location - Extract matchLocaleTag helper for cleaner language resolution logic - Add getAllExpectedInstallRoots to enumerate all valid install paths
Gemini Nexus
🚀 Professional multi-account AI gateway for Google Gemini & Claude
English | Português | 中文 | Español
📖 Table of Contents
✨ Why Gemini Nexus?
When using AI-powered IDEs and coding tools, have you ever run into these problems?
- 😫 Single account quota runs out quickly, requiring frequent manual switching
- 🔄 Managing multiple Google/Claude accounts is cumbersome
- 📊 Don't know how much quota or tokens you've consumed
- 🔌 Need a reliable local API proxy that speaks OpenAI/Anthropic protocols
- 🔍 Can't see what's actually being sent/received by the proxy
Gemini Nexus solves all of these. It's a professional Electron desktop application that acts as an intelligent gateway between your development tools and Google Gemini / Claude AI:
- ✅ Unlimited Account Pool — Add any number of Google Gemini & Claude accounts
- ✅ Smart Auto-Switching — Automatically rotates to the next available account when quota is low or rate-limited
- ✅ Real-time Usage Analytics — SaaS-grade dashboard with area charts, trend indicators, and model distribution
- ✅ Full Proxy Observability — Live traffic monitor, request replay, and model capabilities inspector
- ✅ OpenAI & Anthropic Compatible — Drop-in replacement proxy for Cursor, Windsurf, OpenCode, and any OpenAI-compatible tool
- ✅ Secure by Default — AES-256-GCM encryption with OS-native credential management
🎯 Features
☁️ Cloud Account Pool
|
📊 Usage Analytics Dashboard
|
🔌 Local API Proxy (Gateway)
|
🔄 Intelligent Auto-Switching
|
🔍 Proxy Observability (Advanced)
|
🔐 Security & Encryption
|
⚙️ Settings & Customization
|
🖥️ Desktop Experience
|
📸 Screenshots
⚡ Quick Start
Prerequisites
- Node.js v20 or higher
- npm (this project uses
package-lock.json)
Build from Source
# Clone the repository
git clone https://github.com/evandrodevbr/GeminiNexus.git
cd GeminiNexus
# Install dependencies
npm install
# Start development
npm start
# Build for production (Windows installer)
npm run make
Using with AI IDEs
Once the proxy is running, configure your IDE:
# In Cursor / Windsurf / OpenCode settings:
API Base URL: http://localhost:10100/v1
API Key: (copy from the Proxy page in the app)
Model: gemini-3-flash (or any mapped model)
🛠️ Tech Stack
| Category | Technologies |
|---|---|
| Core | Electron, React 19, TypeScript |
| Build | Vite, Electron Forge |
| Styling | Tailwind CSS v4, Radix UI, Lucide Icons |
| State | TanStack Query, TanStack Router |
| Backend | NestJS (internal gateway), ORPC (type-safe RPC) |
| Database | Better-SQLite3, Drizzle ORM |
| Charts | Nivo (Line, Bar, Pie) |
| i18n | react-i18next |
| Testing | Vitest, Playwright |
💻 Development
# Start dev environment (Electron + Vite HMR)
npm start
# Run linting
npm run lint
# Type check
npm run type-check
# Format code
npm run format:write
# Run tests
npm test
Project Structure
src/
├── actions/ # App actions and flow orchestration
├── components/ # React UI components
│ ├── proxy/ # Proxy page components (advanced tabs)
│ ├── usage/ # Usage analytics components (StatCard, ChartCard)
│ └── ui/ # Base UI primitives (Radix-based)
├── hooks/ # Custom React hooks
├── ipc/ # Electron IPC + database handlers
├── layouts/ # Layout components (MainLayout + sidebar)
├── localization/ # i18n translation resources
├── routes/ # TanStack Router pages (index, usage, proxy, settings)
├── server/ # NestJS backend (proxy gateway service)
├── services/ # Service layer
├── types/ # TypeScript type definitions + Zod schemas
└── utils/ # Utility functions
❓ FAQ
Q: The app won't start?
- Make sure all dependencies are installed:
npm install - Check if Node.js version is >= 20
- Try deleting
node_modulesand reinstalling - On Windows, ensure the WiX Toolset is available for
npm run make
Q: Account login failed?
- Ensure network connection is working
- Try clearing app data and logging in again
- Check if the account is restricted by Google/Claude
Q: IDE can't connect to the proxy?
- Make sure the proxy is running (green indicator in the status bar)
- Verify the port matches your IDE config (default:
10100) - Copy the API key from the Proxy page and paste it in your IDE settings
- Check that at least one account is active in the Accounts page
Q: Token counts show zero?
- This was a known bug in earlier versions — update to the latest version
- Token tracking now correctly handles streaming metadata and estimated counts
- Usage data refreshes every 15 seconds on the Usage Analytics page
🤝 Contributing
Contributions are welcome! Please read CONTRIBUTING.md for details.
📄 License
⚠️ Disclaimer
Warning
For Educational Purposes Only
This project is intended solely for educational and research purposes. It is provided "as-is" without any warranty. Commercial use is strictly prohibited.
By using this software, you agree that you will not use it for any commercial purposes, and you are solely responsible for ensuring your use complies with all applicable laws and regulations. The authors and contributors are not responsible for any misuse or damages arising from the use of this software.
🙏 Credits
Gemini Nexus is a significantly enhanced and expanded version of the original project AntigravityManager created by Draculabo. All fundamental architecture and design were made by the original author.







