# SETUP.md — Get your DraftLoL bot running (human steps)

Your AI agent (Claude, GPT, Grok…) will build and operate the bot for you.
You only do the parts an agent can't: create the accounts, deposit the money,
and paste the keys. Six steps, ~30 minutes; only steps 1–4 are manual.

## 1. Install MetaMask and create a wallet

- Browser extension: https://metamask.io
- You'll get a **12-word recovery phrase**: write it on paper and keep it
  safe. Whoever has that phrase has your money — never photograph or upload it.

## 2. Create your Polymarket account WITH MetaMask

- https://polymarket.com → Sign up → **"Connect wallet" → MetaMask**.
- ⚠️ **Do NOT sign up with Google or email.** A third party would custody your
  wallet key and the bot couldn't use it — you'd have to start over. It must
  be MetaMask.

## 3. Deposit funds

- Polymarket → **Deposit**. Two ways:
  - **Card** — simplest, slightly higher fee.
  - **Crypto** — send **USDC on the Polygon network** to the deposit address
    Polymarket shows. ⚠️ Pick the network carefully when withdrawing from an
    exchange: **Polygon**, not Ethereum.
- **$100–200 is plenty** to start (bets around $10). You do NOT need
  POL/MATIC for gas.

## 4. Create the collection key (Relayer API key)

- Polymarket: **Settings → API** → create a **Relayer API key** and copy it.
- Without it the bot can bet but **cannot collect winnings** — the most-skipped
  step and the hardest to detect later.

## 5. Get your DraftLoL key and builder credentials

- API key + credits: https://draftlol.ai/pricing (free trial available).
- Log in at https://draftlol.ai/dashboard — your **builder credentials** for
  order attribution are shown there. If you want the bot-copy signals, enable
  **bet_signals** on your stream subscription (your agent can do it via
  `PUT /v1/live/subscription`; each delivered signal is billed in credits).

## 6. Prepare the folder and unleash the agent

- Create an empty folder (e.g. `~/draftlol-bot`) and download
  https://draftlol.ai/agents/AGENTS.md into it (rename to `CLAUDE.md` if you
  use Claude Code).
- You need a machine that stays on: a mini-PC, home server, or a cheap VPS.
- Open your agent in that folder and say:

  > "Read AGENTS.md and build the bot following its phases, starting at
  > phase 0."

- The agent will create a `.env` with blanks. **You paste the secrets into
  that file yourself — never dictate them in the chat:**
  - `DRAFTLOL_API_KEY` → from your dashboard.
  - `POLYGON_PRIVATE_KEY` → MetaMask: account menu → *Account details* →
    *Show private key*.
  - `EOA_ADDRESS` → that same MetaMask account address.
  - `POLYMARKET_RELAYER_API_KEY` → from step 4.
  - `BUILDER_KEY/SECRET/PASSPHRASE` → from your DraftLoL dashboard.

## Go in phases, no rush

AGENTS.md forces the agent through 5 phases: watch signals with no money →
read your balance → ONE small supervised bet → automatic at $10 → raise
stakes. **Don't ask it to skip phases.** Raise the stake only after several
complete operations verified in your Polymarket account.

## What to expect

- Signals only from major leagues, and only when the original bot actually
  bets. **Hours without signals is normal.**
- Each signal is followed by a free event saying who won the game.
- The obvious: the original bot also loses. This replicates its bets with the
  same risk — it is not free money.
