Guide

Vibe Coding with Bitcoin Agents

Build AI agents with their own Bitcoin wallets and payment-gated APIs. No coding experience required.

What you'll build

Claude Code Setup

An AI coding assistant that writes and runs code in your terminal.

Build in hours what used to take weeks.

Agent Wallet

Your AI gets its own Stacks wallet to hold and send funds.

Give your agent a secure wallet to earn and spend on your behalf.

x402 Endpoints

Payment-gated APIs that accept STX, sBTC, or USDCx.

Monetize your agent's work while you sleep.

The Guide

Follow the steps below. Click each section to expand. ~30 min total

Claude Code lets you build with AI that can read, write, and run code. Choose whichever setup works best for you.

Option A: Claude App (Easiest)

If you have the Claude desktop app, Claude Code is built right in. Just open a project folder and start building.

  1. Download Claude for Desktop if you don't have it
  2. Open a project folder (or create a new one)
  3. Start chatting — Claude can now read and edit files in that folder

Option B: Terminal

Prefer the command line? Install Claude Code globally via npm.

Step 1: Install Node.js

Go to nodejs.org and download the LTS version.

Step 2: Open a new Terminal window

Close Terminal and open it again. This ensures Node.js is ready to use.

Step 3: Install Claude Code

npm install -g @anthropic-ai/claude-code

Step 4: Run it

claude

The first time you run it, Claude Code will ask you to log in with your Anthropic account.

💡
Once you're set up, try asking: "What can you help me build?"

Quick Reference

Everything you need in one place.

Payment Tokens

STXNative Stacks token
sBTCBitcoin on Stacks
USDCxUSDC bridged to Stacks

Common Questions

Join the Community

Share what you build, get help, and connect with other builders.

Join AIBTC Discord