Unattended CrewRun an AI crew Get full access

Your first AI worker, free

Four short lessons. At the end, an AI worker makes one real change to your website and waits for your yes.

You don't write code. You copy a few commands, and the crew writes the code. Never opened a terminal? Lesson 0 walks you through it.

Already comfortable with a terminal? Skip to lesson 1

What you'll need

  • A Mac or Linux computer, or just your phone and a small rented server (from about $5 a month before tax; lesson 0 shows you how). Windows users: we recommend the server, and WSL also works.
  • A free GitHub account. We show you how.
  • A Claude plan, from $20 a month.

No computer? No problem. This is how I run mine: Claude on my phone, the crew on a small server. I built this whole course that way: the site, the lessons, the payments, the emails and the ads.

See all the lessons

What the lessons cover

Lessons 0 and 1 are open now. Lessons 2 to 4 open with your email.

Start lesson 1
0 Get ready, on a computer or from your phoneYour computer or a rented server is ready, with GitHub and Claude. Open
  • Pick your path: your Mac or Linux computer, or a small rented server you run from your phone
  • Make a free GitHub account and choose a Claude plan
  • Install Homebrew, with a fix for each common error
Go to lesson 0
1 What a crew isYou know who does what, you included. Open
  • Why one agent in one terminal is a helper, and a crew is a team
  • The three roles: captain, first mate and crewmate
Read lesson 1
2 Install Claude Code and FirstmateClaude Code and Firstmate run on your computer or your server. With email
  • Install Claude Code and sign in with your Claude account
  • Sign in to GitHub
  • Get Firstmate and start your first mate
Open it with your email
3 Add one projectYour first mate knows your project and has changed nothing. With email
  • Pick a repository you own and do not mind experimenting on
  • Tell your first mate about it in plain English; it reads and changes nothing
Open it with your email
4 Run one worker on one taskA real fix in your project, waiting for your yes. With email
  • Ask for a small, real fix you can check in a minute
  • A crewmate does it in its own copy and asks you to merge
  • Two rules for every unattended run
Open it with your email

0 of 4 free lessons done

Start hereWhat a crew is

00For complete beginners, about an hourDownload PDF

Get ready, on a computer or from your phone

Already comfortable with a terminal? Skip to lesson 1

This lesson is for you if you have never opened a terminal. If you have, skip to lesson 1.

You will not write code, in this lesson or in any other. You will copy a line, paste it into a window, press Enter and wait. That is all a "command" is. By the end you have a place for your crew to live, the two accounts it needs, and Homebrew, the tool that installs everything else.

Set aside about an hour. Most of it is waiting for downloads.

First, pick your path

Your crew needs a computer that stays on while it works. That can be your own Mac or Linux computer, or a small server you rent by the month and run from your phone.

Which path is yours
You haveYour pathWhat it costs on top of Claude
A Mac (macOS 13 or newer)On your own computer. The crew runs on your Mac while it is open.Nothing
A Linux computer (Ubuntu or Debian)On your own computer, with the Linux notes.Nothing
Only a phone or a tabletOn a rented server. You set it up and drive the crew from your phone.About $5 to $6 a month for the server, before tax
A Windows PCOn a rented server. It is the path we recommend for Windows. The note at the end covers running it inside Windows instead.About $5 to $6 a month for the server, before tax

This is how I run mine: Claude on my phone, the crew on a small server. I type a request into the Claude app and the server does the rest.

Both paths need the same two accounts, so start with those.

1. Make a free GitHub account

GitHub is where your project's files live, with every change kept and nothing lost. Firstmate uses it to hand you each change to approve. A free account is all this course uses.

  1. Open github.com/signup in your browser.
  2. Follow the prompts. You choose a password and a username. The username is public, so a short version of your name or business works well.
  3. Verify your email address when GitHub asks. Without a verified address you cannot create a repository later.

You can also sign up with Continue with Google at step 1. Either way, write down your username.

2. Choose a Claude plan

Claude Code, the agent your first mate runs on, comes with the paid Claude plans. The free plan does not include it.

The Pro plan on claude.com/pricing, 18 October 2026: $17 a month with the yearly discount ($200 billed up front), $20 if billed monthly, and Claude Code in the list of what it includes.

These are the prices on claude.com/pricing on 18 October 2026:

  • Pro is $20 a month, or $17 a month if you pay $200 for the year up front. Start here.
  • Max starts at $100 a month. It gives you more usage. Move up only if Pro keeps running out.
  • Free is $0 and does not include Claude Code, so it will not work for this course.

Sign up at claude.com/pricing, pick Pro and pay. Then install the Claude app on your phone from the App Store or Google Play and sign in with the same account. On the server path you will drive your crew from that app.

What a terminal is

A terminal is a window where you give the computer instructions by typing instead of clicking. Each instruction is one line, called a command.

A terminal window: the command git --version, its answer (git version 2.47.3), and the prompt waiting for the next command.

The text before your cursor is the prompt. It usually ends in $ or %. When you see it, the terminal is ready for your next command. Your version number will differ from the picture.

Five things cover almost everything:

  • Paste with Cmd + V on a Mac, Ctrl + Shift + V in a Linux terminal, and a long press or the paste button in a phone app.
  • Press Enter to run what you pasted. Then wait for the prompt to come back before the next command.
  • Passwords stay invisible. When a command asks for your password, nothing appears as you type, not even dots. Type it anyway and press Enter.
  • Ctrl + C stops whatever is running and gives you the prompt back.
  • Copy each command exactly. The copy button next to each command in this course copies the whole line, which is safer than selecting it by hand.

Path A: on your own Mac

Open Terminal

Press Cmd + Space, type Terminal and press Enter. A window with a blinking cursor opens.

Check your macOS version first: Apple menu, then About This Mac. Claude Code needs macOS 13 or newer. Homebrew supports macOS 15 and newer on Apple Silicon Macs. It says macOS 11 to 14 may work, and gives older Intel Macs less support.

Install Homebrew

Homebrew installs the tools your first mate asks for. When Firstmate finds a missing tool on a Mac, the install command it offers is a Homebrew one, so you need it before lesson 2.

Paste this. It is the command on brew.sh:

$/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

What happens next:

  1. It asks for your Mac password. Type it (nothing shows) and press Enter.
  2. It lists what it will do and says Press RETURN/ENTER to continue. Press Enter.
  3. It installs Apple's Command Line Tools, which include git. This step can take a long time.
  4. It ends with Installation successful! and a Next steps section.

If Next steps shows lines under "Run these commands in your terminal to add Homebrew to your PATH", copy those lines exactly as your terminal shows them, paste them and press Enter. They differ between Macs, so copy them from your own screen, not from here.

How to tell it worked

Close the Terminal window, open a new one and run:

$brew --version

You should see a line starting with Homebrew and a version number. You are ready for lesson 1.

Path A: on Linux

Open your terminal with Ctrl + Alt + T, or search for Terminal in your applications. These steps are for Ubuntu and Debian. Homebrew on Linux needs a few system tools first. This command asks for your password:

$sudo apt-get install build-essential procps curl file git

Then install Homebrew with the same command as on a Mac:

$/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

At the end, under Next steps, it shows commands to add Homebrew to your PATH. Copy them from your screen, paste them and press Enter. Then open a new terminal and check:

$brew --version

Path B: no computer needed, on a rented server

A server is a computer in a data centre that stays on all the time. You rent a small one, connect to it from your phone, paste a few commands, and from then on you talk to your crew in the Claude app. Your crew keeps working when your phone is locked.

The honest cost: a server big enough for Claude Code costs money every month, on top of your Claude plan. Claude Code needs at least 4 GB of memory.

These were the prices for a 4 GB server on 18 October 2026, before tax:

  • OVHcloud VPS-1 (2 cores, 4 GB, 40 GB disk): $5.35 a month with no commitment, or $4.54 a month if you pay 12 months up front. This lesson uses it.
  • DigitalOcean Basic (2 CPUs, 4 GB, 80 GB disk): $24 a month, billed by the second, with a terminal in its website that works in the browser.
  • Hetzner is cheaper still when it has stock, but every one of its shared Cloud plans showed as unavailable on 18 October.

Prices change, and each provider's own page decides. The paid lesson on servers compares more of them.

1. Rent the server

  1. Open ovhcloud.com/en/vps on your phone and choose VPS-1.
  2. Pick the commitment you want (no commitment costs a little more each month), the data centre closest to you, and Ubuntu as the system.
  3. Create your account and pay.
  4. Wait for the delivery email. It gives your server's IP address, the username (on Ubuntu it is ubuntu) and a secure link to a temporary password.

2. Connect from your phone

The easiest way to type and paste on a phone is an SSH app. Termius is one, for iPhone and Android, with a free plan.

  1. In Termius, add a new host: the IP address from the email, username ubuntu, and the temporary password.
  2. Connect. The first time, the server asks you to change the password: type the temporary one, then your new one twice. Use your phone's password manager to make a long one and save it.
  3. The connection then closes. Connect again with the new password.

Your provider also has a web console in its control panel (OVHcloud calls it KVM). It works without an app and is your way in if SSH ever fails, but its keyboard can follow a different layout from yours, so check a few characters before typing a password there.

3. Make your own user

Your crew must not run as the server's all-powerful admin, root: Claude Code refuses to let workers act on their own under it. Make a user for yourself instead. These commands use the name captain; keep it, since the later lessons use it too. The first one asks for your password, then for a password for captain, twice:

$sudo adduser captain

It then asks for a name, room and phone. Press Enter to skip those, then Y to confirm.

Give captain admin rights:

$sudo usermod -aG sudo captain

Switch to it. It asks for captain's password:

$su - captain

The prompt now starts with captain@. Every command from here on, in this lesson and the next ones, runs as captain. Each time you connect later, run su - captain first.

4. Install Homebrew

The same steps as Path A on Linux. A new server's list of available software can be out of date, so refresh it first. It asks for captain's password:

$sudo apt-get update

Then the system tools:

$sudo apt-get install build-essential procps curl file git

Then Homebrew:

$/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Copy and run the lines under Next steps that add Homebrew to your PATH, then check:

$brew --version

5. When you reach lesson 2 on a server

Lesson 2 installs Claude Code and Firstmate. It works the same on a server, with three differences.

First, when lesson 2 says to open a new terminal window, type exit and then su - captain instead. That logs you in again, which is what a new window does.

Second, a server has no browser for sign-ins. When claude asks you to sign in, press c to copy the sign-in link, open it in your phone's browser and sign in. If the browser then shows a code, paste it back into the terminal. Long-press the link in Termius to copy it if c does not. For GitHub, gh auth login shows a short code you enter at github.com/login/device on your phone.

Third, start your first mate in a session that keeps running after you disconnect, with Remote Control on so the Claude app can reach it. At lesson 2's last step, run these three commands instead of plain claude. The first installs tmux, the tool that keeps the session alive:

$brew install tmux
$tmux new -s firstmate
$cd ~/firstmate && claude --remote-control "firstmate"

Then open the Claude app on your phone, tap Code, and pick the session named firstmate. From then on you type requests in the app, and the crew works on the server. To come back to the terminal later: connect, run su - captain, then tmux attach -t firstmate.

One warning, said plainly. A server reachable from the internet with a password login is a target. A long, unique password is the minimum. The paid lesson on servers shows how to lock it down with keys and a firewall, and how to back it up.

Windows: run it inside Windows instead

Firstmate runs on macOS and Linux, not on Windows itself. Windows 10 (version 2004 or newer) and Windows 11 can run Linux inside them through WSL 2, and Firstmate's own test records include runs on Linux under WSL 2. We recommend the server path for Windows because it is the one we walk through and support in this course.

If you prefer to try WSL: right-click PowerShell, choose Run as administrator, run wsl --install, and restart. Open Ubuntu from the Start menu, wait while it unpacks, and create a username and password when it asks. From there, follow Path A on Linux inside the Ubuntu window. Do your work inside Ubuntu's own folders, and start everything from the Ubuntu window, not from PowerShell.

If something goes wrong

command not found: brew after the install. The PATH lines from Next steps were not run. Scroll up to Next steps, copy the lines, paste them, press Enter, then open a new window. If they have scrolled away, run the Homebrew install command again. It asks for your password and for Enter again, then prints them again.

Typing your password shows nothing. That is normal. Type it and press Enter. If it says Sorry, try again, you mistyped; type it again.

The Homebrew install seems frozen. It may be waiting for you. Look for Press RETURN/ENTER to continue or a password prompt. On a Mac, the Command Line Tools download can take a long time with little visible progress. If a window pops up asking to install the Command Line Tools, click Install, and when it finishes go back to Terminal and press any key, as it asks.

Don't run this as root! on a server. You skipped su - captain. Run it, then run the command again.

captain is not in the sudoers file on a server. The usermod step was skipped. Type exit to go back to your first user, run sudo usermod -aG sudo captain, then su - captain again.

dyld errors or built for Mac OS X 13.0 later in lesson 2. Your macOS is older than Claude Code supports. Update it from the Apple menu: System Preferences, then Software Update.

GitHub's verification email does not arrive. Check your spam folder, wait a few minutes, then ask GitHub to send it again.

Claude Code will not let you sign in. The Free plan does not include Claude Code. Check that you are on Pro or Max, and that you signed in with the account you paid with.

Your connection closed. The server is still running, and so is anything you started inside tmux. Connect again, run su - captain, and if you had started tmux, tmux attach -t firstmate. A command that was running outside tmux stopped; run it again.

You are done when

  • You can sign in to github.com and your email address is verified
  • Your Claude plan is Pro or Max, not Free
  • In your terminal (on your computer, or as captain on your server), brew --version prints a version number
  • You know how to paste a command, press Enter and wait for the prompt to come back

01Read, no setup yetDownload PDF

What a crew is

Never used a terminal? Do lesson 0 first. It walks you through everything this course assumes, step by step, on a computer or from your phone.

One AI agent in one terminal is a helper. You sit with it while it works, and three things at once means three terminals and no idea which one had the failing test.

Firstmate turns that into a team. You talk to one agent, the first mate, and it runs other agents for you, each with its own task and its own copy of the code. It watches them and comes back to you when something needs a decision.

Firstmate is free and open source under the MIT licence, made by Kun Chen. It is not an app. It is a folder of instructions, skills and small scripts; start Claude Code inside it and Claude Code becomes your first mate. Claude Code is the coding agent from Anthropic, and it comes with any paid Claude plan.

Unattended Crew is an independent guide to setting it up and running it. It is not part of the Firstmate project.

The three roles

Firstmate uses ship words for the people and agents involved, and so does this course. In its replies to you, the first mate keeps to plain words and calls a crewmate a worker.

Captain
You. You give requests, make the decisions and say "merge it". You never have to watch the work.
First mate
The one agent you talk to. It plans, hands out tasks, checks the results and asks you only what only you can answer.
Crewmate
A worker agent with one task and its own copy of the project, so two workers never trip over each other.

What a crewmate does

A task is one piece of work with a clear end. There are two kinds.

A ship task changes something. The crewmate works in its own copy of your project, then hands back a change for you to approve: on GitHub that is a pull request. Nothing reaches your real code until you say yes.

A scout task finds something out. The crewmate researches, investigates or plans, and leaves a written report. Nothing in your project changes.

This course uses five illustrated example roles: Zach for bookings, Amy for outreach, Andrew for research, Daniel for planning and Charles for preparing first calls. They are job titles for kinds of work, not programs Firstmate ships. The free course needs only one plain crewmate.

Worked example: one request, start to finish

Say you send one message: "fix the typo on my contact page, and find newsletter tools with a free plan".

  1. The first mate makes two tasks: a ship task for the typo, a scout task for the research.
  2. It starts a crewmate for each, each in its own copy of your project.
  3. One crewmate fixes the word and opens a pull request. The other writes a short report.
  4. The first mate checks both and sends you the pull request link and the report's recommendation.
  5. You read the change and say "merge it". Which newsletter tool to use stays your call.

One message from you, two decisions, and no watching.

Worked example: a café owner's request

The same works when your project is a business, not code. Say you run a café and your website lives on GitHub. You send: "change the opening hours on the website to 8 to 4 from November, and draft polite replies to the three customer emails I pasted below".

  1. The first mate makes a ship task for the opening hours and a scout task for the replies.
  2. One crewmate changes the hours in its own copy of your website and opens a pull request.
  3. The other writes the three replies into a short report. It sends nothing.
  4. The first mate sends you the pull request link and the draft replies.
  5. You check the new hours and say "merge it". You read the replies, change a word if you like, and send them yourself.

The crew prepares the work. What goes out in your name stays your call.

What you need for lesson 2

  • A Mac or a Linux computer, or a small rented server you run from your phone. Firstmate's README lists macOS and Linux. Lesson 0 sets up either one, Windows included.
  • A GitHub account. The course uses GitHub throughout, and Firstmate's setup signs in to it.
  • A paid Claude plan. Pro is $20 a month and includes Claude Code. The free Claude plan does not.
  • A terminal you are willing to paste a few commands into. You do not need to write code, and lesson 0 shows you how.

You are done when

  • You can say what the captain, the first mate and a crewmate each do
  • You know the difference between a ship task and a scout task
  • You have a Mac or Linux computer or a rented server, a GitHub account and a paid Claude plan

Marks this lesson on your progress. Tap again to undo.

Continue to lesson 2

Lesson 2 installs Claude Code and Firstmate, on your computer or your server. It opens right here when you enter your email, and lessons 3 and 4 open with it.

Free, no card, no password. We also email you a sign-in link, so the lessons open on your other devices.

Or skip the email: buy full access, $49 once, and read all the lessons now.