Trae Account Manager is a desktop application designed for Trae IDE users to manage multiple accounts efficiently. Switch between accounts seamlessly, monitor usage in real-time, and optimize your workflow with advanced performance features.
This project is based on Yang-505/Trae-Account-Manager with significant performance and architectural improvements.
- One-Click Account Switching: Automatically manages Trae IDE process and login state
- Real-Time Usage Monitoring: Track token consumption and remaining quotas
- High Performance: Pagination, virtual scrolling, and smart caching for large account lists
- Production-Grade Logging: Environment-aware logging with Pino (pretty-print in dev, JSON in production)
- WebSocket Communication: Real-time session updates with automatic reconnection
- Data Management: Import/export accounts as JSON for easy backup and sharing
- Windows 10/11, macOS, or Linux
- Trae IDE installed
- Node.js 16+ (for development)
Download the latest release for your platform from Releases.
# Clone repository
git clone https://github.com/911218sky/Trae-Account-Manager.git
cd Trae-Account-Manager
# Install dependencies
npm install
# Development mode
npm run tauri dev
# Build production version
npm run tauri buildOpen Settings β Click Auto Scan or Manual Setup to locate your Trae.exe file.
Click Add Account β Enter your Trae IDE token β Click Add.
How to get your token:
- Open Trae IDE and press
F12 - Go to
ApplicationβLocal Storageβvscode-webview://xxx - Find the key containing
iCubeAuthInfoand copy thetokenvalue
Click Switch on any account card β Confirm β The app will automatically restart Trae IDE with the new account.
View real-time usage statistics on the dashboard or click Details for detailed usage history.
This fork includes significant enhancements over the original:
- Pagination System: Load accounts in batches (50 per page)
- Virtual Scrolling: Render only visible items for smooth performance
- Smart Caching: 5-minute cache with automatic invalidation
- Lazy Loading: Automatic loading at 80% scroll threshold
- Pino Integration: Fast, low-overhead logging
- Environment-Aware: Pretty logs in dev, structured JSON in production
- File Output: Optional log file support
- Module Loggers: Organized logging by component
- TypeScript Strict Mode: Enhanced type safety
- Service Layer: Modular services (cache, logger, performance monitor)
- Custom Hooks: Reusable React hooks for common patterns
- Error Boundaries: Graceful error handling
- WebSocket Client: Real-time communication with auto-reconnect
- Test Suite: Comprehensive tests with Vitest
- CI/CD: Automated releases via GitHub Actions
- Documentation: Detailed implementation notes
- AI Guidelines: Development standards in AGENTS.md
- Frontend: React 19 + TypeScript + Vite
- Backend: Tauri 2 + Rust
- Logging: Pino
- Real-time: WebSocket
- Testing: Vitest
Trae-Account-Manager/
βββ src/ # Frontend source code
β βββ components/ # React components
β βββ services/ # Service layer (API, cache, logger)
β βββ hooks/ # Custom React hooks
β βββ pages/ # Page components
βββ src-tauri/ # Tauri backend (Rust)
βββ .github/workflows/ # CI/CD workflows
Application data is stored locally:
- Windows:
%APPDATA%\com.sauce.trae-auto\ - macOS:
~/Library/Application Support/com.sauce.trae-auto/ - Linux:
~/.local/share/com.sauce.trae-auto/
Export your accounts as JSON and import them into other tools or share with team members.
For automated account registration, check out Trae-Account-Creator - a companion tool that automates the Trae IDE account creation process.
This project is for educational and research purposes only.
- Use at your own risk
- May violate software terms of service
- Authors are not liable for any damages
- Not for commercial use
Contributions are welcome! Feel free to submit issues or pull requests.
# Fork and clone
git checkout -b feature/AmazingFeature
git commit -m 'Add some AmazingFeature'
git push origin feature/AmazingFeature
# Open a Pull RequestThis project is licensed under the MIT License.
- Original Project: Yang-505/Trae-Account-Manager by @Yang-505
- Tauri: tauri.app
- React: react.dev
- Pino: getpino.io
Made with β€οΈ by the community