# Install Catervas

This page takes you from nothing to Catervas on your computer, with the dashboard open in your browser. Catervas 0.1.0 is released, and you install it from its repository on GitHub.

## What you need

| Requirement | Details |
| --- | --- |
| Operating system | Linux or macOS. On Windows, use WSL2 (Windows Subsystem for Linux). |
| Node.js | Version 22 or newer. |
| pnpm | Needed to build Catervas from its repository. |
| Build tools | Python 3, `make` and a C++ compiler, which two of Catervas's parts need while they are installed. On Debian or Ubuntu, `sudo apt install python3 make g++`. On macOS, `xcode-select --install`. |
| An agent program | At least one of Claude Code, Codex or Hermes. Catervas finds the ones already on your computer, and offers to install a program that is not there, with the command its makers publish. |
| An AI account of your own | Catervas does not include an AI model. Have a Claude, ChatGPT or other model account, or a key from its maker, ready before you sign the agent in. You pay the maker directly. |
| Docker | Optional. Needed only for agents that run in containers. |
| A web browser | To open the dashboard. |

::: tip Not sure what is missing?
Once Catervas is installed, `catervas doctor` checks your setup and says in plain words what is fine and what needs fixing.
:::

## New to the terminal? Prepare your computer first

If you already have Node.js 22 and Git, skip to [the quickest way](#the-quickest-way-run-it-from-the-repository). Otherwise, these steps prepare your computer. You do not need to know how to program, and the first time takes about 20 minutes.

### Open a terminal

A terminal is a window where you type instructions to your computer. You paste one line, press **Enter**, and the computer does it.

- **macOS:** press **Command (⌘) and Space**, type `Terminal`, and press **Enter**.
- **Windows:** first do [Switch on WSL](#switch-on-wsl-windows-only). From then on, your terminal is the app **Ubuntu**.
- **Linux:** press **Ctrl, Alt and T**, or open **Terminal** from your applications.

To paste, use **Command (⌘) and V** on macOS, and **Ctrl, Shift and V** on Windows and Linux.

### Switch on WSL (Windows only)

Catervas runs in WSL (Windows Subsystem for Linux), a free part of Windows that runs Linux programs.

1. Press the **Windows key** and type `PowerShell`.
2. Right-click **Windows PowerShell** and choose **Run as administrator**.
3. Paste `wsl --install` and press **Enter**.
4. When the installation finishes, restart your computer.
5. Open the **Ubuntu** app, and choose a Linux user name and password. The password does not show while you type it.

If PowerShell does not know the command, run Windows Update and try again. If it says that virtualisation is off, follow Microsoft's page [Install WSL](https://learn.microsoft.com/windows/wsl/install).

### Install Node.js

Node.js is the engine that Catervas runs on. Catervas needs version 22 or newer. Install version 24.

- **macOS:** open [nodejs.org/en/download](https://nodejs.org/en/download), choose version **24** and **macOS Installer**, and open the downloaded file.
- **Windows (in Ubuntu) and Linux (Ubuntu or Debian):** paste these two lines, one at a time:

  ```bash
  curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash -
  sudo apt-get install -y nodejs
  ```

Then check it with `node --version`. Any number that starts with `v22` or higher is correct. If the terminal says `command not found`, open a new terminal and try again.

### Check that Git is there

Git is the tool that downloads Catervas. Paste `git --version`. If you see a line such as `git version 2.43.0`, Git is there.

If Git is not there, on macOS choose **Install** in the window that offers the "command line developer tools". On Ubuntu or WSL, paste `sudo apt-get install -y git`.

## The quickest way: run it from the repository

One command installs what Catervas needs, builds it and starts it:

```bash
git clone --branch main https://github.com/ashaat-catervas/Catervas.git
cd Catervas
scripts/start.sh
```

When Catervas starts, it prints a link to the dashboard and opens the dashboard in your browser.

`scripts/start.sh` installs and rebuilds everything each time, so it is safe to run again after you pull new changes.

To stop Catervas and everything it started:

```bash
scripts/stop.sh
```

This stops every agent and Catervas itself, then removes the Docker containers and networks that Catervas created. It leaves Docker images in place, so the next start is quick.

## Or: install the `catervas` command

To use `catervas` from anywhere on your computer, build a package and install it:

```bash
pnpm install
pnpm package
npm install -g ./release/catervas-*.tgz
catervas start
```

The `./` before `release/` matters. Without it, npm reads the path as the name of a repository and fails.

Catervas is not published to npm yet, so for now the package is built from the repository first.

## Keep the dashboard link private

The link Catervas opens contains a secret that lets your browser in. Anyone who has the link can use your dashboard, so do not share it or paste it anywhere public. If you close the tab or lose the link, run:

```bash
catervas open
```

## When setup goes wrong

Find the last lines that the terminal printed in this table.

| What the terminal says | What to do |
| --- | --- |
| `Catervas needs Node.js 22 or newer, and Node.js is not installed on this computer.` | Do [Install Node.js](#install-node-js), open a new terminal, and run `scripts/start.sh` again. |
| `Catervas needs Node.js 22 or newer, and this computer has Node.js 20…` | Do [Install Node.js](#install-node-js) again to get version 24. |
| `Catervas needs pnpm, and could not fetch it…` | Install pnpm from [pnpm.io/installation](https://pnpm.io/installation), then run `scripts/start.sh` again. |
| `git: command not found` | Do [Check that Git is there](#check-that-git-is-there). |
| `scripts/start.sh: No such file or directory` | The terminal is not in the `Catervas` folder. Run `cd Catervas` first. |
| `Catervas is already running.` | Use the link that it prints after that line. |
| `Catervas did not start. See …daemon.log.` | Open the file it names, copy its last lines, and ask for help in [Catervas's issues on GitHub](https://github.com/ashaat-catervas/Catervas/issues). |
| Lines with `ERR_PNPM` or `ECONNRESET` | The download stopped. Check your internet connection and run `scripts/start.sh` again. |

## Next step

The dashboard asks what you want Catervas to help with first, and gives you a checklist from there. [Your first agent](/guide/first-agent) explains it.
