A tool for managing multiple Wrapper instances
Support linux x86_64 and arm64 arch
- Multi-instance management
- Add accounts at runtime (support 2FA)
- Start multiple Wrapper instances for the same account by logging in again after each instance is ready
- Multi-connection decryption
- gRPC API
- Get lyrics without an account
- Automatic region detection
Usage of ./wrapper-manager:
-debug
enable debug output
-host string
host of gRPC server (default "localhost")
-mirror
use mirror to download wrapper and file (for Chinese users)
-port int
port of gRPC server (default 8080)
-proxy string
proxy for wrapper and managerFor Chinese users: Please uncomment the sixth line of Dockerfile and configure the mirror and proxy in docker-compose.yml
git clone https://github.com/AMDL-Web/wrapper-manager
cd wrapper-manager
nano docker-compose.yml
docker compose upYou can use WorldObservationLog/AppleMusicDecrypt tools/login.py to log in, or use tools such as Postman to import proto/manager.proto to log in. The process is as follows:

This repository is forked to implement several performance optimizations, thread-safety mechanisms, and functional enhancements:
- Thread-safe Decryption Connection Pool: Introduces a robust connection pooling mechanism to manage decryption worker connections dynamically and thread-safely under heavy parallel requests.
- Disabled Auto-Download: Disabled the automated downloading of wrapper binaries at startup. All dependencies are pre-configured locally to ensure offline usability, startup predictability, and deployment isolation.
- Resilient Readiness Logic:
- If
instances.jsonexists but contains zero instances, the server successfully initializes withReady = trueinstead of entering a blocked state. - Core readiness checks and instance status transitions are fully thread-safe.
- Hardened state transitions to prevent panics during the 2FA login verification flow.
- If
- Status API Extension: The gRPC status check endpoint now returns the list of active decrypted accounts, facilitating easier integration and monitoring.
- Upstream Adjustments & Bug Fixes:
- Adaptations for recent Apple token structure updates.
- Enhanced error handling when
checkAvailableOnRegionfails due to network issues (returns clean errors instead of crashing). - Fixed standard panics caused by nil interface conversions.
- Restored missing
SelectInstancevalidations for music videos.