# Installation

The `selltraces` binary is the normal entry point: it starts setup on a first
run and resumes review for new traces on configured machines. Sign in, choose
your sources and projects, review a local preview, and explicitly approve an
upload. Normal setup does not require a YC application; `/yc` is an optional
campaign. If an older CLI opens the YC application, rerun the installer below
to update it.

## Install script (recommended)

Downloads the prebuilt binary for your platform into `~/.selltraces/bin` and adds
it to your PATH:

```bash
curl -fsSL https://selltraces.com/selltraces/install | bash
```

Use the unpinned command above for the latest release. To pin a release, choose a tag from the [public releases](https://github.com/Selltraces/selltraces-releases/releases); CLI 0.2.8 or newer is required for eligibility checks:


The script supports macOS and Linux (glibc) on `arm64`/`x64`. Alpine/musl is not
supported by the prebuilt binary. Use a supported glibc platform.

## Windows (PowerShell)

Downloads `selltraces.exe` into `%USERPROFILE%\.selltraces\bin` and adds it to
your user PATH:

```powershell
irm https://selltraces.com/selltraces/install.ps1 | iex
```

Pin a release with `$env:SELLTRACES_VERSION` before piping to `iex`.

## Requirements

The install script needs only `curl` and `unzip` (preinstalled on macOS and most
Linux). The CLI itself needs:

- A SellTraces account for production uploads
- Local transcript stores from supported AI-agent tools
- `sqlite3` on the system path for Cursor and OpenCode database scanning

## Local files

The CLI stores private local state under `~/.selltraces`:

| File | Purpose |
| --- | --- |
| `credentials.json` | Machine token and API base after login |
| `config.json` | Approved sources and blocked terms |
| `traces.db` | Local trace index and upload ledger for accepted uploads |

Local state files are written with private `0600` permissions where the platform supports them.
