MCPcopy Index your code
hub / github.com/bitxeno/atvloadly

github.com/bitxeno/atvloadly @v0.4.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.4.5 ↗ · + Follow
468 symbols 1,438 edges 93 files 54 documented · 12%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

platform release Docker Image Size Docker Pulls license

English | 中文

atvloadly is a web service that supports sideloading app on Apple TV. It uses Impactor as the underlying technology for sideloading and automatically refreshes the app to ensure its long-term availability.

Features

  • Docker running (only supports Linux/OpenWrt platforms)
  • Supports AppleTV pairing
  • Supports automatic app refresh
  • Supports use of multiple Apple ID accounts
  • I18n support

Screenshots

Installation

😔 Only supports Linux/OpenWrt systems, does not support Mac/Windows systems.

  1. The Linux/OpenWrt host needs to install avahi-deamon.

OpenWrt: opkg install avahi-dbus-daemon /etc/init.d/avahi-daemon start

Ubuntu: sudo apt-get -y install avahi-daemon sudo systemctl restart avahi-daemon

  1. Please refer to the following command for installation, remember to modify the mount directory.

Docker: docker run --security-opt seccomp:unconfined -d --name=atvloadly --restart=always -p 5533:80 -v /path/to/mount/dir:/data -v /var/run/dbus:/var/run/dbus -v /var/run/avahi-daemon:/var/run/avahi-daemon bitxeno/atvloadly:latest

The /var/run/dbus and /var/run/avahi-daemon of the host machine need to be shared with the docker container for use.

If you want to use the HOST network and want to modify the listening port, you can add environment variables to container:

SERVICE_PORT=5533

Docker Compose: wget https://raw.githubusercontent.com/bitxeno/atvloadly/refs/heads/master/docker-compose.yml docker compose pull docker compose up -d

Getting Started

Preparation (very important‼️)

  1. A burned account

    Dedicated Apple ID installation account, both free or developer accounts are acceptable (For security reasons, avoid using commonly used accounts. Instead, create a burned account for installation!)

  2. A phone to 2FA Verification

    atvloadly needs to be authorized as a trusted device (it will be virtualized as a MacBook). When logging in, Apple will send a 2FA verification code to the registered phone number of your account or to a device that has already logged in with the installation account. Please authorize and verify promptly.

Operation process

  1. Open the Apple TV settings menu, select Remote and Devices -> Remote App and Devices, enter pairing mode.
  2. Open the web management page, normally it will display the pairable AppleTV.
  3. Click on the AppleTV device to enter the pairing page and complete the pairing operation.
  4. After successful pairing, return to the home page, where the connected AppleTV will be displayed.
  5. Click on the connected AppleTV to enter the sideload installation page, select the IPA file that needs to be sideloaded, and click Install.

FAQ

  1. How many apps can be installed with a free account?

Each free Apple ID can register up to 10 apps and activate up to 3 apps simultaneously. Installing more than 3 will cause previously installed apps to become unavailable.

  1. Unable to find AppleTV

Please turn off the VPN, restart the AppleTV, re-enter pairing mode, make sure [Tool] can detect devices of the _remotepairing-manual-pairing._tcp type, and pair again.

  1. Failed to log in to Apple account

This may have triggered Apple's risk control. Apple has login restrictions for certain regions. You can try adding a proxy in the settings. Alternatively, try creating a new account.

  1. IPA crashes after installation

If the IPA requires permissions such as CloudKit, only paid developer accounts can sign and enable them. After sideloading with atvloadly, the IPA's Bundle Identifier will be modified, and some IPAs may restrict this, causing crashes.

  1. Installation failure after system upgrade.

After upgrading the system, re-pairing is required. Generally, newly released systems are not supported. It is recommended to disable automatic system updates.

  1. Can App-specific passwords be used for passwords? Is it more secure this way?

Currently does not support it.

API

  • /healthcheck: Return service health status (200 indicates normal, 503 indicates that an app has expired).

  • /mcp: MCP service api, streamable http transport, can connect to AI Agent to install or refresh apps.

How to build

>> wiki

Credits

Impactor: the sideload core

idevice: libimobiledevice in pure Rust

usbmuxd2: usbmuxd implementation for linux

frida-core:: remote pairing connection reference

Disclaimer

  • This software is only for learning and communication purposes. The author does not assume any legal responsibility for the security risks or losses caused by the use of this software.
  • Before using this software, you should understand and bear corresponding risks, including but not limited to account freezing, which are unrelated to this software.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Err
called by 57
internal/log/log.go
apiError
called by 44
web/api_result.go
apiSuccess
called by 34
web/api_result.go
WriteMessage
called by 30
internal/manager/websocket_managerr.go
Close
called by 22
internal/tty/tty.go
WithTimeout
called by 18
internal/exec/command.go
Debugf
called by 17
internal/log/log.go
Infof
called by 17
internal/log/log.go

Shape

Function 238
Method 154
Struct 67
TypeAlias 8
Interface 1

Languages

Go99%
TypeScript1%

Modules by API surface

internal/task/task.go28 symbols
internal/manager/install_manager.go23 symbols
internal/log/log.go23 symbols
internal/manager/manager.go22 symbols
internal/manager/device_manager.go22 symbols
internal/manager/device_manager_mdns.go18 symbols
internal/exec/command.go14 symbols
internal/manager/screenshot_manager.go13 symbols
internal/manager/pair_manager.go13 symbols
internal/utils/math.go10 symbols
internal/mcp/tools/install.go10 symbols
internal/manager/device_manager_avahi.go10 symbols

For agents

$ claude mcp add atvloadly \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page