# Installation

> Install the abstr CLI and log in.

## Install

**macOS / Linux** — install the latest prebuilt binary with one command:

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

This installs `abstr` to `/usr/local/bin` (or `~/.local/bin` if that isn't
writable). Make sure the install directory is on your `PATH`, then check it
works:

```bash
abstr --version
```

**Windows** — download `abstr_windows_amd64.zip` from the
[latest release](https://github.com/abstraction-dev/cli/releases/latest),
extract it, and put `abstr.exe` somewhere on your `PATH`.

**With Go** — if you'd rather build from source:

```bash
go install github.com/abstraction-dev/cli/cmd/abstr@latest
```

## Log in

Run `login` once to connect the CLI to your account:

```bash
abstr login
```

This opens your browser to create an API key. Paste the key back into the
terminal, pick a workspace, and you're set — both are saved to `~/.abstr.json`.

## Ask your first question

```bash
abstr "what does the billing service do?"
```

That's the happy path. Next, explore the full [commands](https://docs.abstraction.dev/cli/commands.md)
reference.
