Skip to content
XXD VPS Guide
中文
Main guide · step 3 of 7About 10 minutes

Configure the server

You need: Server IP, root password, SSH port; an open terminalLet AI do it, or type the commands yourself

What this step is

Configure the server you bought in step 1: install the nodes, get a certificate, install the AI API and harden security. Both routes do exactly the same thing; only who types differs.

Afterwards:

  • ssh your-name logs you in without a password (using a key instead);
  • your desktop has a new file 小小东VPS-your-name-登录信息.md (or XXD-VPS-your-name-login-en.md if you ask for English) with the subscription URLs and the panel and AI API logins.

Pick a name first, such as bwg or la1: letters, digits and hyphens only, starting with a letter. From then on, ssh bwg logs you in.

1. Send this message to the AI

Open claude or codex in the terminal, copy the message below, fill in the IP and name, and send it:

Message for the AI
Please configure my new server with the "xiaoxiaodong VPS" setup.

Setup: https://github.com/nevertoday/xiaoxiaodong-vps
Download the project first, read skills/xiaoxiaodong-vps/SKILL.md in full,
and follow its steps and rules strictly, using the project's scripts for deployment and verification.
Please talk to me in English and save the login file in English.

My server:
- IP:
- Login: initial password (please let me type it in the terminal myself)
- SSH user and port: default
- Name I want to use to log in: bwg

What to change:

  • IP: the server IP from step 1.
  • Login: if the provider gave you a key file, change it to key file: path (a zip works too).
  • SSH user and port: if they aren’t root and 22, replace “default” with the real values.
  • Name: replace bwg with your chosen name.

2. Type the password once when asked

The AI will ask you to type the server’s root password in the terminal yourself (nothing shows while typing — that’s normal).

A command starting with !

In Claude Code, the AI may ask you to enter a command that starts with !. Paste the whole line into Claude Code’s input box and press Enter; it then prompts for the password in the terminal. ! means “you run this command yourself”, so the password never passes through the AI.

Don't do this

Don’t paste the password into the chat. The AI gives you a command so you type it into the terminal, keeping it out of the chat history.

3. Wait for it to finish

Usually about 10 minutes. The AI works stage by stage and reports progress: base setup → certificate → nodes → subscription → AI API → maintenance → verification.

If something goes wrong, the AI fixes it using the setup’s troubleshooting notes and reruns that stage. You only answer its questions.

If the AI can’t download the project, download the ZIP yourself, unzip it, and add “the project is already at: folder path” to the message.

How you know it worked

You should see

The last lines show 验收:34/34 通过 (verification: 34/34 passed — every item PASS), followed by a message that the login file has been saved.

Where the login-info file is:

  • Mac: on your desktop.
  • Windows (WSL): WSL has no desktop, so it’s in your Ubuntu home folder. Type explorer.exe . in the terminal to open that folder in File Explorer.

The file contains: the Clash subscription URL, the Shadowrocket subscription URL, the 3x-ui panel login and the CLIProxyAPI address and keys. You’ll need the subscription URL in the next step.

How to open it: it’s a plain-text file. On Mac, right-click → “Open With” → “TextEdit”; on Windows, right-click → “Open with” → “Notepad”. A subscription URL is one long line starting with https:// — copy the whole line.

Don't do this

This file holds every password and key. Keep it only on your own computer — never post, screenshot or upload it.

Stuck?

The certificate stage failed?

Most often the provider’s “security group” or firewall blocks port 80. Allow TCP 80 in the provider’s dashboard and rerun cert. The setup never falls back to a self-signed certificate.

It says the OS isn't supported?

Only Ubuntu 22.04+ and Debian 12+ are supported. Reinstall as Ubuntu 24.04 from the provider’s dashboard — see Reinstall the OS as Ubuntu. The password changes after reinstalling; start again from passwordless login with the new one.

The password is right, but key login fails?

Some provider images disable SSH key login by default. Current versions of the scripts turn it back on automatically; if you have an old copy, update the setup and try again.

One or two verification items FAIL?

Read the note after the FAIL line, fix it, rerun that stage, then run verify --full again. On the AI route, just let the AI handle it.

After reinstalling the OS, my ssh name won't connect?

Reinstalling changes the server’s identity fingerprint, and sometimes the port. See Reinstall the OS as Ubuntu for the clean-up commands.

Before moving on, check

This setup is for you and your family only. Follow local laws and each site's and AI tool's terms of use. Open source (MIT) — code and feedback on GitHub.