MaiPai Home
🛠️ Install and set up

Use another computer for the AI

Run the AI engines on a second Ubuntu computer and pair it with Home.

Home can use the AI engines (the Stack) on the same computer, or on a second computer in your home. A second computer is useful when it has a stronger graphics card or more memory than the one running Home.

Settings, AI and models, on the Engines tab, with the Engine computer link card and the Roles table
AI and models, Engines: the engine computer link and the engine for each role.

✅ Before you start

  • The second computer runs Ubuntu Linux. Other systems are not supported for this.
  • Both computers are on the same home network.
  • You can use sudo on the engine computer.

🔧 Set up the engine computer

  1. On the engine computer, run the installer with the engine option.
sudo bash /home/example/home/scripts/install.sh --engine-computer

The installer creates a maipai-stack service user, installs the Stack under /opt/maipai-stack, keeps its data in /data/stack, and enables SSH, asking first if openssh-server is missing. It then installs the maipai-engine tool.

  1. Wait for "Ready to pair."

🔗 Pair it with Home

  1. In Home, open Settings, then AI and models, then the Engines tab.
  2. Under Engine computer link, press Pair engine computer.
  3. Under Where the engine runs, pick Another computer, then Next.
  4. Type the engine computer's name or home network address, for example 192.0.2.20, and its SSH port (usually 22).
The Pair engine computer window on step 2 of 5, with the engine computer's address filled in as 192.0.2.20 and the port set to 22
Step 2 asks for the engine computer's address and port.
  1. Press Get a one-time code. Home shows a command like sudo maipai-engine pair https://home.example ABCD-EFGH-JKLM. Copy it.
  2. Run that command on the engine computer. The code works once and Home shows when it expires. The command prints a check code.
  3. Back in Home, press Check the engine computer, type the check code, then press Pin this computer.

Home reads the computer's security key and compares the check code, so you know you are talking to your machine and not another one.

Home runs a hop-by-hop connection test and shows PASS or FAIL for each hop with the fix.

🩺 Check it later

  • The Engines tab shows Engine health and a Check the connection button.
  • On the engine computer, sudo maipai-engine status and sudo maipai-engine doctor report what is running.
  • Needs restart or Update available on a row means exactly that.

✂️ Unpair

  1. On the engine computer, run sudo maipai-engine unpair.
  2. In Home, press Revoke link key.

🌍 Away from home

Reaching the engine computer through Tailscale is off by default. On the Engines tab, open the advanced settings and turn on Reach the engine computer when away from home only after you have joined both computers to your Tailscale network yourself. See Remote access.

🔧 If chat stops answering

Engines says "No Stack configured" when no engine is set. Open Where the engine runs, pick one, and run Check the connection. The page for the Home computer is at Troubleshooting.

On this page