Set up a private builder
Use your own computer or server to build Android apps instead of AICrea's hosted builders. No Android Studio or Java installation is needed on your computer: the builder runs inside Docker.
Private builders are not shared with other users, so there is no waiting for hosted resources.
The instructions below are for a 64-bit Intel or AMD computer running Windows or Linux. We recommend at least 8 GB of RAM and 30 GB of free disk space. Keep the computer connected to the internet while building.
1. Configure AICrea on your Android device
Open Private Builder in AICrea
- Open the Build tab and choose Private Builder from the options menu.
- Tap Generate to create a private builder key. Copy it and transfer it securely to your computer. The full key is shown only once.
- Turn on Use private builder.
Keep the key secret. Anyone with it can attempt to connect a builder to your account. Generating a new key revokes the old one.
2. Install and start the builder
Install and start Docker Desktop with Linux containers.
- Open Settings (the gear icon) in Docker Desktop.
- Select Extensions.
- Check Enable Docker Extensions.
- Uncheck Allow only extensions distributed through the Docker Marketplace, if checked. AICrea is currently distributed outside the Marketplace.
- Click Apply & restart.
Open Command Prompt or PowerShell and run:
docker extension install ghcr.io/aicrea-app/aicrea-builder-extension:latest
Review the installation prompt. This extension is distributed by AICrea outside the Docker Marketplace and has not been reviewed by Docker. Only install it if you trust AICrea and your Docker Desktop settings allow it.
Open AICrea under Extensions in the Docker Desktop sidebar. Paste your private builder key and select Start. No Windows scripts are needed.
The key is retained in the Docker container configuration. No inbound internet port or public IP is required.
3. Build your app
Return to the AICrea Build tab. Once the worker is connected, start a build normally. The first build may take longer to download Android and Gradle dependencies. Later builds reuse the workspace and caches.
Docker Desktop shows builder logs in the AICrea extension. Keep Docker Desktop and your computer running while you need the builder.
Manage your builder
In Docker Desktop, use the AICrea extension to Start, Stop or Update builder. Paste a new key and select Start to replace a revoked key.
Stop or update only when no build is running. Turn off Use private builder in AICrea to return to hosted builds. Stop the container if you no longer need it.
Remove the private builder completely
- Open the AICrea extension in Docker Desktop and select Remove builder. Confirm the removal. This deletes the local builder container, saved key, standard build workspace, SDK and Gradle caches, seed volume and builder image. Custom workspace mounts are preserved.
- In the AICrea Android app, open Builder setup, select Private, open its setup screen and revoke the key if you no longer need it. Select Hosted or another builder type to continue building.
- In Docker Desktop, open Extensions, select Manage, and uninstall AICrea. Alternatively, run the command below in Command Prompt or PowerShell.
docker extension rm ghcr.io/aicrea-app/aicrea-builder-extension:latest
Uninstalling the extension alone does not remove the builder workspace and caches. Your GitHub repositories and other Docker resources are unaffected by the removal procedure.
Update the extension itself
Open Command Prompt or PowerShell and run:
docker extension update ghcr.io/aicrea-app/aicrea-builder-extension:latest
After restarting your computer, start Docker Desktop and select Start in the AICrea extension.
2. Prepare and start the builder
These instructions also work on headless Linux servers over SSH. Install Docker Engine and curl, and ensure your user can run Docker commands.
Run the following command in your terminal or SSH session. It installs the management scripts in ~/AICreaBuilder without starting the builder:
mkdir -p "$HOME/AICreaBuilder" && curl -fL https://aicrea.app/AICreaBuilder.sh -o "$HOME/AICreaBuilder/.setup.sh" && bash "$HOME/AICreaBuilder/.setup.sh"
Alternatively, download the launcher and run it with bash AICreaBuilder.sh.
When setup finishes, run the following commands to start the builder:
cd "$HOME/AICreaBuilder" ./start.sh
Paste your private builder key once when prompted, then press Enter. For security, the terminal displays an asterisk for each pasted character. The key is verified with AICrea before it is saved locally in ~/AICreaBuilder/.env. Saved keys are checked every time the launcher runs; invalid or revoked keys can be replaced when prompted. No inbound internet port or public IP is required.
3. Build your app
Return to the AICrea Build tab. Once the worker is connected, start a build normally. The first build may take longer to download Android and Gradle dependencies. Later builds reuse the workspace and caches.
Press Ctrl+C to close the terminal log stream; on a regular Linux server, the container continues running even after disconnecting from SSH. Keep Docker and the server running while you need the builder.
Manage your builder
Stop or update only when no build is running. Turn off Use private builder in AICrea to return to hosted builds. Stop the container if you no longer need it.
Start or update
Run the launcher again. It downloads the latest startup script, checks for a new builder image and preserves your workspace and caches. You can also use the installation command above to refresh the management scripts without starting the builder.
bash "$HOME/AICreaBuilder/start.sh"
Stop
bash "$HOME/AICreaBuilder/stop.sh"
View logs
docker logs -f aicrea-builder
Replace the key
Generate a new key in AICrea, then run start.sh again. The old key is detected as revoked and the script prompts for a replacement.
Remove the private builder
This removes the local container, saved key, management scripts and managed build caches after confirmation. It does not revoke the key in your AICrea account.
bash "$HOME/AICreaBuilder/remove.sh"
After restarting your server, ensure Docker is running and run the launcher again.
Troubleshooting
- Docker not found or unavailable: confirm Docker is installed and running, and your account can access it.
- Builder not connected: check that private mode is enabled, the key is current, and the logs show no connection or authentication error.
- Slow first build: wait for the Android SDK and Gradle dependencies to download.