# Grok Bot, Herdr, and Anyr CLI

> Grok Bot assigns goals, Herdr shows the box, and Anyr CLI launches Claude Code when Cursor cloud is blocked.


# Grok Bot, Herdr, and Anyr CLI

A live coding agent on a repo checkout: **Grok Bot** (fleet manager, often `duyetbot`) assigns the goal and collects the PR URL and smoke result, **Herdr** is the box you watch or attach to over Tailscale, and **Anyr CLI** runs Claude Code through AnyRouter in that space.

![duyetbot chat assigning work next to a Herdr screen with a live Anyr CLI session](/img/docs/guides/grok-bot-herdr-anyr/demo-duyetbot-herdr.png)

Use it when Cursor cloud usage or on-demand is blocked, you want an attachable live terminal, or you run several repo spaces at once. Launch with `anyr claude`, never `anyr grok`; if a cloud agent returns on grok-4.6 Fast, turn Fast off.

## Run it

Install and sign in to Anyr CLI first ([AnyRouter CLI](/cli), [anyr claude](/cli/claude-code)).

1. Pull the tip of the branch in the repo checkout (for example `/workspace/<repo>`).
2. Open or create a Herdr space on that checkout.
3. From the space, launch (`--yolo` auto-approves; install Claude Code first with `anyr claude --install --ok`):

   ```bash
   anyr claude --model "poolside/laguna-s-2.1" --yolo
   ```

   Pin this id unless the goal names another; `minimax/m3[1m]` is a valid alternate.
4. Assign the goal from Grok Bot with the prompt below. Squash-merge the PR; never merge a release-please PR.
5. Run the smoke in the prompt (`anyr update`, `curl` health, or Playwright), deploy from the local checkout (`pnpm ops deploy` or the repo's deploy command), and report the PR URL and smoke result to duyetbot.

## Example prompt

```
Use Herdr + Anyr CLI for coding (Cursor cloud may be exhausted).

1) Open/create a Herdr space on the repo checkout (e.g. /workspace/<repo>).
2) Run: anyr claude --model "poolside/laguna-s-2.1" --yolo
3) Goal: <unique issue / rebase PR / add verify-* skill / UI fix>
4) Rules: grok-4.6 Fast off if cloud returns; never Fast; never Grok Build; squash-merge (never release-please); after merge deploy from local (pnpm ops deploy / repo deploy); /poteto-mode + in-repo verify-* skill when present.
5) Smoke: <anyr update | curl health | playwright>
6) Report PR URL + smoke result back to duyetbot.
```

:::note
Both models route through non-cloudflare backends. Avoid `stealth/ox-alpha`: its upstreams are flaky and intermittently 401. Other ids: [anyrouter.dev/models?endpoint=messages](https://anyrouter.dev/models?endpoint=messages).
:::


## Related

- [anyr claude](/docs/cli/claude-code.md)
- [AnyRouter CLI](/docs/cli.md)
- [Claude Code with AnyRouter — free models, one API key](/docs/guides/claude-code.md)
- [Run Claude Code Against AnyRouter](/docs/scenario-examples/run-claude-code-on-anyrouter.md)
