# onchainkit

onchainkit — a skill for building blockchain applications with ready-made React components from Coinbase. Use it to add wallet connections, token swaps, NFT minting, payments, or onchain identity features to your app.

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

## What it does

OnchainKit brings production-ready React components and TypeScript utilities from Coinbase for onchain development. It includes components for wallet connection, blockchain identity display with ENS names and avatars, token operations, NFT handling, payment checkout flows, and transaction execution. All components work on Base, require minimal boilerplate, and need no backend infrastructure.

The skill provides setup scripts: `create-onchain-app.py` for new projects and `setup-environment.py` for existing ones. You'll need two environment variables: `NEXT_PUBLIC_CDP_API_KEY` (Coinbase API key) and `NEXT_PUBLIC_WC_PROJECT_ID` (WalletConnect project ID). Components are composable—mix wallet connection with token swaps, identity display, or payments in any combination.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add BankrBot/skills --skill onchainkit -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add BankrBot/skills --skill onchainkit -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add BankrBot/skills --skill onchainkit -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install BankrBot/skills onchainkit
```

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

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add BankrBot/skills --skill onchainkit -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/BankrBot/skills --path onchainkit
```

### Windsurf (Devin Desktop)

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

### OpenCode

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

## When to use it
- connect a crypto wallet to a web app
- build a token swap interface for ERC-20 tokens
- display user blockchain identity with ENS name and avatar
- add NFT minting or gallery functionality
- create a checkout flow for cryptocurrency payments

## Example prompts
- Set up a new token swap app with wallet connection using onchainkit
- Add an Identity component showing ENS name and avatar to a user profile
- Build a Checkout flow to accept crypto payments

## Similar
- [Whale Alert — Large On-Chain Transfer Tracker](https://affpapa.org/en/nevibecode/mcp/whale-alert-large-on-chain-transfer-tracker.md) — MCP server · 2471 installs
- [Ontario Protocol x402 readiness and Bazaar discovery](https://affpapa.org/en/nevibecode/mcp/ontario-protocol-x402-readiness-and-bazaar-discovery.md) — MCP server · 982 installs
- [mcp-coinbase-commerce](https://affpapa.org/en/nevibecode/mcp/mcp-coinbase-commerce.md) — MCP server · ★ 279 repo stars
- [mcp-coinbase-cdp](https://affpapa.org/en/nevibecode/mcp/mcp-coinbase-cdp.md) — MCP server · ★ 279 repo stars
- [x402 Bazaar Listing Monitor](https://affpapa.org/en/nevibecode/mcp/x402-bazaar-listing-monitor.md) — MCP server · ★ 1 repo stars
- [gmgn-dev-score](https://affpapa.org/en/nevibecode/skills/gmgn-dev-score.md) — skill · 8600 installs

## Other versions with the same name
- [onchainkit · mindrally](https://affpapa.org/en/nevibecode/skills/onchainkit.md) — 682 installs

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