# The installer (install.sh)

`https://api.23step.com/install.sh` installs `23step` and `23step-mcp` into `~/.local/bin`, and optionally the desktop overlay or the Grok Bot turn adapter. It never asks for or stores your API key, except in `--grokbot` mode. It is POSIX `sh` and needs `curl` plus `sha256sum` or `shasum`.

## Usage

Terminal:

```sh
curl -fsSL https://api.23step.com/install.sh | sh                       # CLI (+ 23step-mcp when published)
curl -fsSL https://api.23step.com/install.sh | sh -s -- --overlay        # also the desktop overlay
curl -fsSL https://api.23step.com/install.sh | sh -s -- --no-mcp         # CLI only
STEP23_NONINTERACTIVE=1 STEP23_KEY=st_... \
  curl -fsSL https://api.23step.com/install.sh | sh -s -- --grokbot      # Grok Bot turn adapter
```

Flags:

| Flag | Env | Meaning |
| --- | --- | --- |
| `--overlay` | `STEP23_INSTALL_OVERLAY=1` | Also install the 23step Overlay desktop app. |
| `--no-overlay` | `STEP23_INSTALL_OVERLAY=0` | Skip the overlay (the default). |
| `--step-link` | `STEP23_STEP_LINK=1` | Opt in to posting the active step link at the end of agent responses in `~/.config/23step/preferences.json` (off by default). |
| `--no-step-link` | `STEP23_STEP_LINK=0` | Keep posting the step link at the end of responses off (the default). |
| `--progress-bar` | `STEP23_PROGRESS_BAR=1` | Opt in to the live widget progress bar in `~/.config/23step/preferences.json` (off by default because calibrating progress uses extra tokens and slows down turns). |
| `--no-progress-bar` | `STEP23_PROGRESS_BAR=0` | Keep the live widget progress bar off (the default). |
| `--mcp` | `STEP23_INSTALL_MCP=1` | Require `23step-mcp`; fail if it is not published for this platform. |
| `--no-mcp` | `STEP23_INSTALL_MCP=0` | Skip `23step-mcp`. The default, `auto`, installs it when it is published. |
| `--grokbot` |  | Also install the Grok Bot turn adapter (`23step-grokbot-turn`) and save `~/.config/23step/otel-key`. |
| `--no-cli` | `STEP23_NO_CLI=1` | With `--grokbot`: install only the turn adapter without `23step` binaries. |
| `--dev` |  | With `--grokbot`: point traces and CLI downloads at `https://dev.23step.com` instead of production. |
| `-h`, `--help` |  | Print usage. |

## Environment

Installer environment:

| Env | Meaning |
| --- | --- |
| `STEP23_API` | Download from another server (for example a staging API). |
| `STEP23_APPLICATIONS_DIR` | macOS: where to put `23step Overlay.app` (default `~/Applications`). |
| `STEP23_NO_LAUNCH_OVERLAY=1` | macOS: install the overlay without opening it. |
| `STEP23_KEY` | `--grokbot` only: the write key to save to `~/.config/23step/otel-key`. Without it the installer asks on the terminal. |
| `STEP23_NONINTERACTIVE=1` | `--grokbot` only: never prompt. |

## What it installs

Each file is downloaded with its `.sha256` sidecar and installed only when the hash matches. Binaries are replaced atomically, so running the installer again is how you repair an install. Add `~/.local/bin` to `PATH` if it is not already there.

Files:

| Platform | Installed |
| --- | --- |
| macOS arm64 / amd64 | `~/.local/bin/23step`, `~/.local/bin/23step-mcp`; with `--overlay`, `~/Applications/23step Overlay.app` (Apple Developer ID signed & notarized, opened in the background; also available via `brew install --cask 23step/tap/23step-overlay` or direct `.zip` downloads). |
| Linux amd64 / arm64 | `~/.local/bin/23step`, `~/.local/bin/23step-mcp`; with `--overlay`, `~/.local/opt/23step-overlay` and the launcher `~/.local/bin/23step-overlay`. |
| `--grokbot` | `~/.local/bin/23step`, `~/.local/bin/23step-mcp`, `~/.local/bin/23step-grokbot-turn` and its helper in `~/.local/share/23step`, key in `~/.config/23step/otel-key` (`0600`). |

---

Version: `v0.2` (latest). All 23step developer docs: https://23step.com/docs.md
