# CLI Agent Setup block

> Dark 8-step workspace onboarding wizard with progress bar, agent picker, and CLI setup checklist

Full-page dark onboarding flow: profile, role, workspace, goals, teammate invites, AI agent pick, and Codex CLI setup with a success screen. Animated progress bar, copyable commands. ReUI Stepper, Frame, Badge plus Combobox, Select, RadioGroup.

- Type: Pro block
- Category: [Onboarding](https://web.dev.reui.io/blocks/application/onboarding.md)
- Page: https://web.dev.reui.io/blocks/application/onboarding/onboarding-8
- Docs (Base UI): https://web.dev.reui.io/docs/components/base/stepper.md
- Docs (Radix UI): https://web.dev.reui.io/docs/components/radix/stepper.md
- MCP: `get_block("onboarding-8")`
- Built with: Avatar, Badge, Button, Checkbox, Collapsible, Combobox, Field, Frame, Icon Stack, Input, Item, Radio Group, Select, Spinner, Stepper, Switch, Tooltip
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

An always dark page with a dashed plus-cornered card that eases its height per step, ending in an agent pick and Codex CLI setup

## Agent notes

- `ApiAccessStep` takes no props and is fixed to OpenAI Codex, so the picked `selectedAgent` never changes its copy or commands
- The Docs and GitHub buttons and the `actionLabel` link in `ApiAccessStep` have no `onClick` or href, so nothing opens
- Replace `API_SETUP_STEPS` with your own install commands; each `state` is fixed sample data and nothing marks a step done

## When not to use

- A three-step vendor intake that validates each step and ends on a review summary: use [Vendor Onboarding](https://web.dev.reui.io/blocks/application/wizard/wizard-2.md) (`get_block("wizard-2")`)
- A workspace signup that follows the app theme and stops before any agent or CLI step: use [Centered Setup Flow](https://web.dev.reui.io/blocks/application/onboarding/onboarding-4.md) (`get_block("onboarding-4")`)

## Third-party libraries

- Motion v12: [API reference](https://motion.dev/docs/react-motion-component), [docs](https://motion.dev/docs/react) (the docs follow the latest Motion, with no React API break since v12)

## Install

```bash
npx shadcn@latest add @reui/onboarding-8
```

## About Onboarding blocks

### When to use

- A first-run setup after signup that collects profile, role, team size, goals and teammate invites
- Workspace creation shown as a full page, beside a product preview or in a modal over the app
- Developer tool signups that end by picking a coding agent and copying its CLI install commands

### When not to use

- A multi-step business task such as billing, vendor intake, a product listing or a transfer: use the [Wizard blocks](https://web.dev.reui.io/blocks/application/wizard.md)
- Only a progress indicator to place above step content you already built: use [Stepper](https://web.dev.reui.io/components/stepper.md) (`get_component("stepper")`)
- A purchase flow with shipping, payment and an order summary beside the steps: use the [Checkout blocks](https://web.dev.reui.io/blocks/ecommerce/checkout.md)

### Agent notes

- `completeOnboarding` only waits on a `window.setTimeout` before the ready screen; post the collected answers to your API there
- Replace `ONBOARDING_STEPS`, `ROLE_OPTIONS`, `GOAL_OPTIONS` and `DEFAULT_INVITES` in data.tsx; the step order and titles come from `ONBOARDING_STEPS`
- The timezone `Combobox` over `TIMEZONE_GROUPS` takes no `value` or `onValueChange`, so the picked zone never reaches component state

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
