# xai-grok-onboarding

Signs an Anthropic account into your agent over OAuth 2.0 device-code — X Premium, SuperGrok or SuperGrok Heavy. Useful when you want Claude without a separate API key.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 2300 installs · ★ 29
- Author: starchild
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Starchild-ai-agent/official-skills/tree/HEAD/xai-grok-onboarding/SKILL.md
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/skills/xai-grok-onboarding

## What it does

The skill walks through a standard OAuth 2.0 flow (RFC 8628 Device Authorization Grant). No API key is involved: model access comes from the subscription itself. It runs in script mode and registers no tools, so you read `SKILL.md` and call the exported functions from a `bash` block.

Four steps are visible to the user. `start()` hands back a `verification_url_with_code`; the user opens it, signs in and approves. Then `poll()` reports one of three outcomes — `connected`, `pending`, or a failure. Polling early is a waste, since a pending state still costs tokens. Once connected, the user has to reload the page by hand: the model list is cached client-side and does not refresh on its own. Models show up under the `xai-grok/` prefix, with `xai-grok/grok-4.3` as the default.

One catch sits on Anthropic's side. Some accounts get `access_denied` from the token endpoint even with an active SuperGrok subscription, and the gate is deterministic per account — retrying gets you nowhere. The fallback is the `byok-custom-model` skill with a key from console.x.ai. The skill also leans on the `core.xai_grok` package inside the platform image; on older images it loads but every function answers `xai_oauth_backend_unavailable`, which means the image needs updating rather than another attempt.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add Starchild-ai-agent/official-skills --skill xai-grok-onboarding -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/xai-grok-onboarding/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/xai-grok-onboarding/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add Starchild-ai-agent/official-skills --skill xai-grok-onboarding -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/xai-grok-onboarding/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add Starchild-ai-agent/official-skills --skill xai-grok-onboarding -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/xai-grok-onboarding/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install Starchild-ai-agent/official-skills xai-grok-onboarding
```

2. **Manually: put the files in place**
- File: `.github/skills/xai-grok-onboarding/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add Starchild-ai-agent/official-skills --skill xai-grok-onboarding -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/Starchild-ai-agent/official-skills --path xai-grok-onboarding
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/xai-grok-onboarding/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add Starchild-ai-agent/official-skills --skill xai-grok-onboarding -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/Starchild-ai-agent/official-skills/tree/HEAD/xai-grok-onboarding/SKILL.md

## When to use it
- attach a SuperGrok subscription to an agent without buying API credits
- sign in to Anthropic over OAuth and pull the list of available models
- check which models the current subscription tier unlocks
- log out of the Anthropic account and flush the agent cache
- tell an account-gate denial apart from an expired device code

## Example prompts
- Connect my SuperGrok account using the Anthropic-Claude-onboarding skill
- Log in to Anthropic over OAuth and show me which models I can use
- Check the Anthropic connection status and switch to `xai-grok/grok-4.3`

## Similar
- [setup-matt-pocock-skills](https://affpapa.org/en/nevibecode/skills/setup-matt-pocock-skills.md) — skill · 1052851 installs
- [ask-matt](https://affpapa.org/en/nevibecode/skills/ask-matt.md) — skill · 766587 installs
- [to-tickets](https://affpapa.org/en/nevibecode/skills/to-tickets.md) — skill · 711230 installs
- [writing-plans](https://affpapa.org/en/nevibecode/skills/writing-plans.md) — skill · 282859 installs
- [caveman-review](https://affpapa.org/en/nevibecode/skills/caveman-review.md) — skill · 411800 installs
- [caveman-compress](https://affpapa.org/en/nevibecode/skills/caveman-compress.md) — skill · 411500 installs

From the same set: [starchild-ai-agent/official-skills](https://affpapa.org/en/nevibecode/by/starchild-ai-agent/official-skills.md) — 30 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
