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.
| You have | Your path | What 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 tablet | On 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 PC | On 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.
- Open github.com/signup in your browser.
- 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.
- 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.

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.

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 + Von a Mac,Ctrl + Shift + Vin 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 + Cstops 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:
- It asks for your Mac password. Type it (nothing shows) and press Enter.
- It lists what it will do and says
Press RETURN/ENTER to continue. Press Enter. - It installs Apple's Command Line Tools, which include git. This step can take a long time.
- 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 --versionYou 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 gitThen 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 --versionPath 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
- Open ovhcloud.com/en/vps on your phone and choose VPS-1.
- Pick the commitment you want (no commitment costs a little more each month), the data centre closest to you, and Ubuntu as the system.
- Create your account and pay.
- 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.
- In Termius, add a new host: the IP address from the email, username
ubuntu, and the temporary password. - 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.
- 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 captainIt 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 captainSwitch to it. It asks for captain's password:
su - captainThe 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 updateThen the system tools:
sudo apt-get install build-essential procps curl file gitThen 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 --version5. 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 tmuxtmux new -s firstmatecd ~/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