# Repository Briefing: ldjx7/multi-agent-account-manager
> Source: https://repoforai.com/repo/ldjx7/multi-agent-account-manager (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/ldjx7/multi-agent-account-manager
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Rust
- **License**: Apache-2.0
- **Engineering Health**: A+ (93/100 · Maintenance 35/35 · Adoption 18/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.4.0 (2026-12-02) — https://github.com/ldjx7/multi-agent-account-manager/releases
- **Review Snapshot**: 2026-12-01 (Note: v0.4.0 on 2026-12-02 shipped after this review; verify latest release notes)
- **Deployment / Stack Signals**: CLI
- **Momentum**: 463 ★ total (+17 24h / +126 7d) · 115 forks
- **When to Use**: Best for: Individuals and small teams that use multiple Muse, Hark, or Cue accounts and want to bring them into group workflows alongside API agents or desktop CLI tools. Skip if: You only need separate browser sessions, already use a single standard API, or require offline inference, centrally managed hosting, or a signed iOS release.

## Overview
```text
### Architecture & Core Mechanics
Diehao is a Tauri 2 end-user client, not a hosted agent runtime. The Vite/TypeScript frontend lives in `src/`, the Rust/Tauri app in `src-tauri/`, and `@tauri-apps/api` is the only runtime dependency listed in `package.json`. Browser sessions are separated at the platform storage layer: UUID-backed WKWebsiteDataStore on Apple platforms, WebView2 UserDataFolder on Windows, and WebView MULTI_PROFILE on Android.

The native chat paths are service-specific. Muse uses a GraphQL gateway and Noise XX over WebSocket with Protobuf, including media responses and WebView fallback. Hark uses explicit send and poll endpoints and supports system-browser PKCE with loopback OAuth. Cue uses UserService and SessionService RPCs with Socket.IO streaming and supports Google OAuth. OpenAI-compatible endpoints and desktop CLI tools contribute additional agents without depending on those service protocols.

### Key Capabilities & Differentiators
The app combines account switching with group orchestration. Desktop groups can mix web-backed and native-protocol members; mobile groups use native protocols and OpenAI-compatible APIs. Parallel discussion, review flow, and A2A relay share a mention-based routing scheme. Channel-level routing can select accounts by remaining quota and put failed accounts on cooldown. Groups can define member roles, share context and skills, retain conclusions, and start new topics.

Sync is separate from message routing. LAN QR transfers and the optional cross-network relay use AES-256-GCM, with a three-minute or three-fetch limit; the relay receives ciphertext, while the key travels in the QR code or sync string. WebDAV and `.maam` files provide passphrase-protected alternatives. Imports merge accounts, groups, and external agents without deleting existing records, and selective sync and export let users limit which accounts they transfer.

### Trade-offs & Limitations
Browser profiles are a simpler choice for isolated website logins, while a generic OpenAI-compatible client is easier to maintain if every backend exposes a compatible API. Diehao is most useful when both service-specific sessions and coordinated group chat matter. Its native integrations offer quota visibility and, for Muse and Hark, a chat view that can release WebView memory. The cost is dependence on upstream protocol, login, and site changes; isolated storage does not remove provider usage limits.

Resource use depends on how many WebViews stay open and what the CLI agents run; GPU and VRAM sizing belongs to any local model backend, not the client. Mobile sessions have no background keepalive or scheduled polling, and Android does not support per-account proxies. Sync and backup can carry login state, so use strong passphrases and treat QR codes, sync strings, and exported files as sensitive. An optional relay or a local install does not make provider-backed chat offline.

### Hardware & Deployment Guide
This is primarily an installed client: the release targets are a universal DMG for macOS 14+, an x64 installer for Windows 10/11 with WebView2, a universal APK for Android 7+ with MULTI_PROFILE-capable WebView for account isolation, and an unsigned arm64 IPA for iOS 17+. iOS requires self-signing, and macOS and Windows builds may trigger OS trust warnings. Verify the package provenance before installing a build that the OS does not recognize.

Source builds require Node.js 22+ and Rust 1.85+; Android additionally needs the Android SDK and NDK 26+, and iOS needs Xcode on macOS. Use `npm ci` and `npm run tauri -- dev` for local development, or `npm run tauri -- build` to build the app. No relay is needed for LAN sync; `relay-worker/` is an optional Cloudflare Workers and Durable Objects deployment. v0.2.4 added selective sync and export, and v0.3.0 updated the macOS DMG build process and added per-account proxy guidance.
```

## Key Capabilities
```text
- Session isolation: Per-account WKWebsiteDataStore on Apple platforms, WebView2 UserDataFolder on Windows, and WebView MULTI_PROFILE on Android.
- Native transports: Muse uses Noise-encrypted WebSocket and Protobuf; Hark uses send and poll APIs; Cue uses RPC and Socket.IO streaming.
- Group routing: Parallel, review, and A2A relay modes support member and channel mentions, quota-aware selection, and cooldown after failure.
- Agent integration: OpenAI-compatible API agents work on all four platforms; local CLI agents join direct and mixed group chats on desktop.
- Sync and backup: AES-256-GCM LAN and optional relay transfers, passphrase-protected WebDAV and .maam backups, and selective sync or export.
- Proxy operations: Account-bound pools support sticky routing and failover on supported platforms; Android does not support per-account proxy configuration.
```

## Quick Start / Clone
```bash
npm ci
npm run tauri -- dev
npm run tauri -- build
bash scripts/build-ios-ipa.sh
cd relay-worker && npx wrangler deploy
```
