# agent-ui

agent-ui is a Claude Code skill that adds a ready-made AI agent interface to React and Next.js, with chat, user approvals, and browser tool calls.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 247 installs · ★ 31 repo stars
- Author: 101-skills
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/101-skills/superpowers/tree/HEAD/ui/agent-ui/SKILL.md
- Updated: 2026-08-31
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/agent-ui

## What it does

This skill guides your coding agent through adding the pre-built agent UI from `ui.inference.sh`. The component bundles client-side tool execution, token streaming, and approval prompts. You can embed it into a Next.js project without writing orchestration logic on your own server.

The component relies on an API proxy route created with `@inferencesh/sdk` and needs an `INFERENCE_API_KEY`. Without that proxy configured, requests to the model will fail. It installs via the `shadcn` CLI and supports props for file and image uploads.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill agent-ui -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill agent-ui -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill agent-ui -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install 101-skills/superpowers ui/agent-ui/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/agent-ui/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill agent-ui -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/101-skills/superpowers --path ui/agent-ui
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill agent-ui -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/101-skills/superpowers/tree/HEAD/ui/agent-ui/SKILL.md

## When to use it
- embed an interactive AI assistant into a Next.js or React interface
- require user confirmation before running agent tools
- automate browser form filling with client-side tools
- render declarative JSON widgets directly from agent responses

## Example prompts
- Add the inference agent component configured with the `/api/inference/proxy` route
- Set up form-filling client tools for the Agent component
- Enable file and image attachments on the Agent interface

## Similar
- [ai-elements](https://affpapa.org/en/nevibecode/skills/vercel-ai-elements.md) — skill · 21000 installs
- [nextjs-chatbot](https://affpapa.org/en/nevibecode/skills/nextjs-chatbot.md) — skill · 161 installs
- [clerk-custom-ui](https://affpapa.org/en/nevibecode/skills/clerk-custom-ui.md) — skill · 58200 installs
- [avoid-ai-design](https://affpapa.org/en/nevibecode/skills/avoid-ai-design.md) — skill · 998 installs
- [agent-elements](https://affpapa.org/en/nevibecode/skills/agent-elements.md) — skill · 738 installs
- [project-architecture](https://affpapa.org/en/nevibecode/skills/project-architecture.md) — skill · 5700 installs

From the same set: [101-skills/superpowers](https://affpapa.org/en/nevibecode/by/101-skills/superpowers.md) — 81 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
