# Quickstart

We're a new seller. Default routing picks sellers with a trust score of 60 or more; ours is 5. Pin our peer to reach us. Pins are strict, with no failover.

## One command (untested)

Paste it into a terminal. It installs the AntSeed CLI, starts the buyer proxy on your own machine at `http://localhost:8377/v1`, and pins that buyer to our peer. Needs Node.js. Leave it running and make the first call from a second terminal.

```bash
npm install -g @antseed/cli && antseed buyer start --peer e44566555a6bcd118832097445e49277db4ba675
```

Pins are strict, with no failover: while the pin is set, every request goes to this peer, and if we are unavailable the request fails instead of moving to another seller. The buyer runs in the foreground: stop it with Ctrl+C. To drop the pin and keep the buyer running, use `antseed buyer connection clear`.

## Step by step

1. **Install the AntSeed CLI**

   Needs Node.js. The CLI commands in these steps were checked against @antseed/cli 0.1.274. The curl call is marked untested until it has been run end to end. So is the one-command form above.

   ```bash
   npm install -g @antseed/cli
   ```

2. **Start the local buyer**

   This runs an OpenAI-compatible proxy on your machine at `http://localhost:8377/v1`. 8377 is the AntSeed CLI's default buyer port on your own machine. Change it with `antseed buyer start --port <port>`. The local proxy needs no API key. If a client insists on one, send the dummy string `antseed` (verified from @antseed/cli 0.1.274, Dec 6, 11:05 AM PT).

   ```bash
   antseed buyer start
   ```

3. **Pin General Inference**

   Default routing will not pick a new seller yet, so tell your buyer to use our peer. Pins are strict, with no failover: while the pin is set, every request goes to this peer, and if we are unavailable the request fails instead of moving to another seller.

   ```bash
   antseed buyer connection set --peer e44566555a6bcd118832097445e49277db4ba675
   ```

4. **Check the pin**

   Shows the peer your buyer is pinned to.

   ```bash
   antseed buyer connection get
   ```

5. **Make a first call on the free model** (untested)

   `gemma3:1b` costs $0 and needs no wallet balance. Type the model id exactly, colon included. Free tier: 50 requests per address and 100 per IP per 24 hours (seller free-tier setting, as of Dec 6, 11:01 AM PT).

   ```bash
   curl -sS http://localhost:8377/v1/chat/completions \
     -H "content-type: application/json" \
     -d '{"model":"gemma3:1b","messages":[{"role":"user","content":"Reply with one word: ready"}]}'
   ```

6. **Switch to a paid model**

   Change `"model"` to an exact id from [the models table](https://generalinference.org/models), for example `openai-gpt-61-sol`. Paid models bill per request in USDC on Base from your AntSeed wallet, so the wallet needs a balance first. Check [the price and its as-of date](https://generalinference.org/pricing.json) before spending.

7. **Unpin when you are done**

   Returns your buyer to default routing.

   ```bash
   antseed buyer connection clear
   ```

### One request without changing the pin

Prefix the model with our peer id: `e44566555a6bcd118832097445e49277db4ba675@<model>`. For the free model that is `e44566555a6bcd118832097445e49277db4ba675@gemma3:1b`.

## Agent track

1. Read [https://generalinference.org/.well-known/antseed.json](https://generalinference.org/.well-known/antseed.json) for `connect_command`, `pin_command`, `check_command`, `unpin_command` and the single-request prefix.
2. Run `connect_command` from that file: it installs the CLI and starts the local buyer already pinned to this peer. To pin a buyer that is already running, use `pin_command`. Pins are strict, with no failover: while the pin is set, every request goes to this peer, and if we are unavailable the request fails instead of moving to another seller.
3. Read [/models.json](https://generalinference.org/models.json) and use the exact `id` strings. Read [/pricing.json](https://generalinference.org/pricing.json) and compare `as_of` with `stale_after_seconds` before spending.
4. Send OpenAI-format chat completions to `http://localhost:8377/v1` on the local machine. There is no hosted inference API at generalinference.org.
5. Make the first call on `gemma3:1b` ($0). Run `antseed buyer connection clear` when the work is done.

Data last built: Sun Dec 6, 2026, 2:25 PM PT.
