Set up Crewship (for an AI agent)

Ask the user first: "Do you already have a server for Crewship?" Follow the steps below in order. Stop and ask the user where a step says STOP. Never guess a login, a code, or a choice. Report each result in one line. If a command fails, remove private data before showing its last lines. Do not skip a step to hide a failure.

Before installation: choose the server

Run the guided setup on the laptop, with Node.js 18 or newer and npm:

npx crewship init

Or use bunx crewship init with Bun and Node.js installed. The guide does not install Crewship on the laptop. If no launcher runtime exists, guide the user through the choices below without installing a runtime.

  1. If the user has a server, ask for its OS, CPU, RAM, free disk, and SSH access details. Check it against Capacity; do not start a purchase interview.

  2. If the user has no server, ask how many agents will work at once and how many will run browsers and dev servers. Ask for the monthly server budget, currency, region, expected sustained load, and extra storage needs. Keep model API costs separate. Recommend the smallest documented preset that meets the CPU, RAM, and disk needs. Treat the estimates as planning figures, not a concurrency guarantee.

  3. STOP: after recommending a purchase, ask whether the user has purchased or provisioned a suitable server. Continue only after an explicit yes. Do not buy a server or start setup for the user before confirmation.

  4. Ask whether to connect from the laptop over SSH or show a command to run manually on the server. Recommend WezTerm as the terminal on the laptop. For SSH, use an existing alias or the hostname, non-root user, and optional port. Use existing SSH keys only; never request, copy, or store a private key or SSH password. Keep host-key checks on and agent forwarding off. Ask the user to verify a new fingerprint through the provider console; stop on a changed key. If no usable key exists, show the manual server command from step 0. Choose optional features with the checklist in step 0 before requesting installation permission.

  5. STOP: show the target server, chosen features, and install action; ask for permission before connecting or installing. Let the user enter any sudo password directly in the terminal. On a failed connection or target check, stop and offer the manual route. Never fall back to installing on the laptop.

If init completed installation, continue at Resume setup on the server. Otherwise, follow step 0 on the server. For an existing Crewship installation, follow Update; do not pass --with again.

Setup flow

Fresh Ubuntu setup runs bootstrap, validates settings, and applies profiles to install Crewship tools and services

0. Choose features and install Crewship

Run this step and all later setup commands on the server, not the laptop. Use Ubuntu 24.04 or 26.04 with systemd and a non-root account that has sudo. Check the OS with lsb_release -rs and the account with id -u (not 0). Check CPU, RAM, and free disk with lscpu, free -h, and df -h. Confirm sudo access; if it needs a password, let the user type it directly in the terminal. STOP if the server does not meet the OS or capacity requirements.

Crewship installs a core, the omp agents and Firstmate. Everything else is opt-in and off until the user chooses it. docker comes with fleet_guards and project_databases, and development comes with board.

Run the installer on the server with the chosen names, comma separated. Use --with none for none. Without an interactive terminal, always pass --with to answer the checklist:

curl -fsSL https://raw.githubusercontent.com/i098/Crewship/main/install.sh | bash -s -- --with public_skills,docker

Use curl on a fresh server; it does not need a JavaScript runtime. bunx crewship needs Bun and Node.js 18 or newer; Bun's Linux installer also needs unzip. npx crewship needs Node.js 18 or newer and npm. pnpm dlx crewship may select an older release because of pnpm's release-age policy. See Launcher prerequisites; do not clone the repository.

See Install, update and migrate for release selection, installation steps, and optional preview. --with applies to a new host only. Sign in and apply again in the later steps.

Read the log file at the printed path if installation fails. Remove private data before showing the log's last lines to the user. Follow the recovery instructions.

Resume setup

"$HOME/Crewship/ship.sh" setup

Run each printed command, then repeat setup. Follow the remaining steps below for manual approvals and sign-ins. GitHub and provider sign-ins still need the user's consent. See Setup checks for the reported states and limits.

The commands below also work from any directory on the server.

1. Sign in to GitHub

gh auth status

2. Sign in to omp

omp is the agent harness. Crewship needs a provider login (Sign in).

omp models --json

3. Review the profiles

~/Crewship/.local/host.yml holds the host config. Open it and show the user the profiles block. Step 0 already set the user's choices. To change one later, set its key to true or false.

The full list and the rules between profiles are in Profiles.

"$HOME/Crewship/ship.sh" inspect

It must print no error. If it names a key, fix that key and run it again.

4. Preview the change

"$HOME/Crewship/ship.sh" chart

Follow the chart contract for preview behavior and side effects. Tell the user what it would change, in a few lines.

5. Apply again

The installer already applied the default profiles. This run applies your changes and the new sign-ins.

"$HOME/Crewship/ship.sh" launch

6. Verify and report

"$HOME/Crewship/ship.sh" setup

Where to look when stuck