# SellTraces documentation

SellTraces helps contributors collect local AI-agent traces, review what is eligible to sell, and get paid when approved traces match buyer demand. It is the trace-sales engine of the platform; the ads engine is [Rebates](/), and both pay into the same account wallet.

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/quickstart">
    Install the CLI, authenticate your machine, preview local traces, and start syncing.
  </Card>
  <Card title="CLI commands" icon="terminal" href="/cli/commands">
    Every supported `traces` command, flag, local file, and repeat-sync behavior.
  </Card>
  <Card title="Public API" icon="braces" href="/api-guides/overview">
    Auth, ingest, trace actions, telemetry, and generated endpoint reference.
  </Card>
  <Card title="Trace lifecycle" icon="workflow" href="/concepts/trace-lifecycle">
    The end-to-end data path from local discovery to sale and payout state.
  </Card>
</CardGroup>

## Install

Install the CLI, then run `selltraces` to start guided setup:

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

The guided flow links your machine, discovers supported local sources, asks what you approve, previews what would upload, and requires confirmation before historical traces are queued.

## What SellTraces reads

Supported source adapters currently cover Claude Code, Cursor, Codex, Gemini CLI, OpenCode, ChatGPT exports, Claude exports, and the local trace index. The CLI discovers source locations first and applies your saved source policy before upload.

## What the API does

The public API accepts authenticated JSON trace uploads, queues background processing, lets the CLI verify saved sessions and telemetry, and lets user-owned clients update trace sale eligibility or download scrubbed trace JSON. The generated endpoint reference is backed by `openapi.json`.

<Note>
The local CLI preview and dashboard estimates are preliminary. No payout is earned until a trace is included in a closed sale and payout processing completes.
</Note>
