# Getting started

> Install Open Max, connect a model, and start a session.

Open Max is a coding agent for your terminal. It runs as one Rust binary with a single agent loop. The terminal shows the model's output, tool calls, and approval requests as they happen.

## Install

Open Max runs on macOS and Linux, on x86-64 and ARM64.

```sh
curl -fsSL https://useopenmax.dev/install.sh | sh
```

Open a new shell or run `. ~/.openmax/bin/env` to add the installed binary to your current shell's `PATH`. Run `openmax --version` to check the install.

If you use Homebrew, run `brew install Max17190/tap/openmax`. With npm or Bun, install the `openmax-cli` package globally. Each method installs the same `openmax` command. See [Install](https://useopenmax.dev/docs/install) for installation options and builds from source.

## Connect a model and start a session

```sh
openmax --login
cd /path/to/your/project
openmax
```

Choose a connection in the login menu. Inside the session, use `/model` to pick a provider and model. If you already run a compatible model server, see [Configuration](https://useopenmax.dev/docs/configuration) for the endpoint settings.

On your first run in a project, Open Max asks you to trust it. Press `a` to review mutating tool calls, `r` to limit the session to read-only calls, or `y` to allow authorized calls without prompting. The choice applies to the project. See [Trust and permissions](https://useopenmax.dev/docs/permissions) for what each mode permits.

Ask Open Max to inspect the repository, run a test, or make a small change. Type `@` to mention a project file and `/` to see session commands.

## Resume a session

From the same project directory, run `openmax --continue` to resume the latest session. Use `/resume` inside Open Max to choose another session. For scripts, use [headless mode](https://useopenmax.dev/docs/usage).
