Skip to main content
This guide helps you deploy the complete AiToEarn application quickly with Docker Compose.

Service Architecture

Prerequisites

  • Docker: 20.10+
  • Docker Compose: 2.0+
  • System memory: 4GB+ recommended
  • Disk space: 20GB+ recommended
Verify the installation:

Quick Start

Only 3 steps to run the complete AiToEarn locally.
1

Clone and start

The first startup pulls images and may take a few minutes. Run docker compose ps to confirm all services are healthy or running.
2

Open the web interface

Once started, open http://localhost:8080 in your browser.An admin account is created automatically on first startup, and you are logged in automatically. No manual registration is required.
3

Configure Relay (strongly recommended)

AiToEarn needs to sign in to your social media accounts (TikTok, RedNote, YouTube, etc.) to publish content. These platforms require OAuth developer credentials for authorization.
  • Without Relay: You need to apply for developer accounts on more than a dozen platforms one by one and obtain client_id/secret, which is tedious.
  • With Relay: Authorization is completed using the official aitoearn.ai credentials. One API Key covers all platforms.
How to configure:
  1. Register and sign in on aitoearn.ai (international) or aitoearn.cn (China), go to Settings → API Key, and create an API Key.
  2. Open your deployed instance in a browser and go to Configuration Management.
  3. Select Server → Relay and configure the Relay used for platform authorization.
  4. To use AI models provided by the platform, select AI → Relay and configure the AI Relay.
  5. For providers like OpenAI, Gemini, and Anthropic, you can also enter the API Key and API address in AI → Model Providers.
  6. After saving, click Save and Restart to reload the corresponding services.
A China Key pairs with https://aitoearn.cn/api, and an international Key pairs with https://aitoearn.ai/api. A mismatched environment and Key will result in a 401 error.
That’s it — AiToEarn is ready to use.

Operations Reference

Auto login is enabled by default. On first startup, the aitoearn-init service generates an admin token and saves it to a shared volume, and the aitoearn-web service reads the token to complete login automatically.
All application images use pull_policy: always, ensuring every docker compose up pulls the latest images.
The following settings are used for inter-service communication over the internal Docker network and usually do not need to be changed:
Configuration files are mounted into containers as writable volumes. Modify them through the configuration management UI; restart the corresponding service after saving:

Configuration Cheat Sheet

aitoearn-ai and aitoearn-server no longer read runtime parameters from the environment section of docker-compose.yml. They read the mounted config.yaml instead, which is edited through the configuration management UI.

Environment variables still kept in Compose

Last modified on October 30, 2026