Rent a VPS in 10 minutes

A VPS is a computer you rent from a hosting company. It runs all day, so your workers keep building while your laptop is closed. You pay the provider directly. We never create, run or pay for anyone's server, and we never see yours.

You can skip this page if you only want to work on your laptop. See Install.

What to rent

Any provider works. Hetzner, DigitalOcean, Vultr, OVH, AWS Lightsail, Linode and Contabo are examples, not recommendations. A spare home server works too.

Setting Pick
Operating system Ubuntu 26.04 LTS, 24.04 LTS or 22.04 LTS (Debian 12 may work, best effort)
Processor type x86_64 (often called "x86", "Intel" or "AMD"). Avoid ARM: Android build tools on Linux ARM are limited, and the installer will warn you
CPU 4 vCPU (virtual processor cores) or more
Memory 8 GB RAM or more. Building the app is the heavy part. Add RAM if you plan several workers
Disk about 80 GB
Location the region closest to you
Login an SSH key (step 1 below), not a password

Smaller servers fail during builds. kappmaker-army doctor checks the size and tells you if it is too small.

Step 1. Make an SSH key (2 minutes, required)

An SSH key lets your laptop log in to the server safely without a password. You make it once. Don't skip it: the installer switches SSH password logins off to protect the server, so the key is how you get back in. (If the server has no key at all, the installer leaves passwords on and warns you instead of locking you out.)

Mac or Linux. Open Terminal and type:

ssh-keygen -t ed25519 -C "my-laptop"

Press Enter at each question to keep the defaults. A passphrase is optional but good. Then show the public half:

cat ~/.ssh/id_ed25519.pub

Windows 10 or 11. Open PowerShell and type:

ssh-keygen -t ed25519 -C "my-laptop"
type $env:USERPROFILE\.ssh\id_ed25519.pub

You'll see one line that starts with ssh-ed25519. Copy that whole line. This is the public key, safe to paste into the provider's website. Never share the file without .pub: that one is your private key.

Step 2. Create the server (5 minutes)

On the provider's website:

  1. Create a new server (it may be called a "droplet", "instance" or "cloud server").
  2. Choose Ubuntu 26.04, 24.04 or 22.04, x86_64, and the size from the table above.
  3. Under "SSH keys", add a new key and paste the line you copied.
  4. If the provider has a firewall (sometimes called "cloud firewall" or "security group"), set it to allow inbound SSH only (port 22) and nothing else. The installer also locks down (hardens) the server itself.
  5. Create the server and wait until it shows as running. Copy its IP address (four numbers like 203.0.113.10).

Step 3. Log in (1 minute)

In Terminal or PowerShell:

ssh root@203.0.113.10

Use your own IP. Some providers log you in as ubuntu, admin or debian instead of root; the provider's page says which. Either works: logged in as that user, the installer re-runs itself with sudo (admin rights).

The first time, you'll see "Are you sure you want to continue connecting (yes/no)?". Type yes.

You are in when the prompt changes to something like root@my-server:~#.

Step 4. Run the one install command

On kappmaker.com, open My purchase. It shows a command with a one-time install code, like this:

curl -fsSL https://kappmaker.com/install.sh | bash -s -- --server --code XXXX-XXXX-XXXX

Copy it from My purchase, paste it into the server window and press Enter. The code works once and expires after 30 minutes; the page gives you a fresh one whenever you need it.

What it does: it creates a normal (non-root) user for the army, installs everything the builds need (Java, the Android SDK, Node, Claude Code and the rest), adds swap memory (disk space used as extra memory) if the server has none, locks down the server, and sets up the always-on worker service, the project board, the agents, the loop and the routines (routines stay off). It explains what it is doing in plain words as it goes.

It takes a while, because the Android tools are a big download. You can leave it running.

The only things it asks you for come later, in step 5. It exchanges the install code for your licence itself, so your licence key never shows on screen or in your shell history. The licence check is the only thing your server ever sends to us: the key and a random install id. Nothing else leaves your server.

The installer gives the army user limited admin rights by default (only to start, stop and read the logs of its own services). Add --sudo full to the command if you want full admin rights; it prints a warning first.

Rather ask your AI? Connect the KAppMaker tools once (see Install) and tell it Set up App Army on my server at 203.0.113.10. It logs in with the same SSH key and runs this same install for you.

If the connection drops or the install stops halfway, log in again and run the same command: finished steps are skipped. If it says the code was already used or has expired, get a fresh one from My purchase.

Step 5. The guided first run

When the installer finishes, it offers to start the guided first run right away. If you stop there and come back later, log in as the army user and start it:

ssh army@203.0.113.10
kappmaker-army start

It walks you through:

  1. The Claude login, with your own Claude account. A Max plan or an API key is the realistic minimum for always-on workers (see FAQ).
  2. Your Telegram bot. It explains the BotFather steps: in Telegram, open @BotFather, send /newbot, pick a name, and copy the token it gives you. Paste the token into the terminal when asked, never into a chat. The token is checked right away, and your chat with the bot is paired for you.
  3. "What app do you want to build?" Answer there, or close the terminal and continue from Telegram.

Then check the box once:

kappmaker-army doctor          # one line per check: ok / warn / FAIL
kappmaker-army doctor --fix    # repairs common problems itself

You can now close your laptop. The workers keep running, and the service restarts them after a crash or a reboot. Next: Your first app.

Extra safety (optional): SSH only over Tailscale

With Tailscale (a private network between your own devices) on your laptop or phone, you can make SSH reachable only from your own devices. Log in as root or your provider's admin user (ubuntu, admin, debian), not as army, because the army user only has limited admin rights, and run:

sudo kappmaker-army-tailscale-lockdown --user army

iPhone apps and the VPS

A Linux server can't compile an iPhone app, because Xcode only runs on macOS. Everything else for iPhone works from the VPS: the App Store Connect record, subscriptions, prices, the store listing and keywords. For the build itself there are two ways, so you do not need to own a Mac:

  • Mac handoff (default). The worker writes IOS_TASKS.md and IOS_PROMPT.md into the app's repo. On a Mac with Claude Code and the kappmaker CLI, you say "Read IOS_PROMPT.md and follow it". The Mac builds, uploads to TestFlight, and submits after your "yes publish ".
  • Cloud Mac (kappmaker ios-ci). It rents a GitHub-hosted macOS machine for about 20 minutes per build and uploads to TestFlight. It needs a one-time setup per app (kappmaker ios-ci init) and a GitHub token that can read the signing certificates repo. macOS minutes cost about 10 times Linux minutes, so the worker runs it only when you ask, and tells you the cost first.

Details: ios-shipping.md. Apple's own Xcode Cloud is being looked at but is not set up in the kit yet (xcode-cloud.md).

When something goes wrong

What you see What to do
Permission denied (publickey) The key on the server is not the one on your laptop. Check you pasted the .pub line, and that you use the right user (root, ubuntu or admin)
Connection timed out The server is still starting, the IP is wrong, or the provider's firewall blocks port 22
The provider asks you to change the root password at first login Do it, then run the install command
The installer warns about ARM Make a new x86_64 server. ARM works poorly for Android builds
A build fails with out of memory The server is too small. Resize it to 8 GB RAM or more in the provider's panel
Anything else kappmaker-army doctor --fix, then Troubleshooting

Docs for the App Army kit. The Claude Code plugin has its own page.