Get Yuki402 running on your machine in under 5 minutes. Whether you're a developer looking to integrate autonomous payments or a crypto enthusiast wanting to experience the future firsthandβthis guide has you covered.
β‘ Quick Install
TL;DR for the impatient:
Copy git clone https://github.com/Yuki402-xyz/yuki402.git
cd yuki402
npm install
cp .env.example .env.local
# Add your OpenRouter API key to .env.local
npm run dev Open http://localhost:3000arrow-up-right and you're live. That's it.
π Prerequisites
Before diving in, make sure you have:
npm or yarn - Comes with Node.js
Web3 Wallet - MetaMask, Phantom, or Coinbase Wallet
Some crypto - For testing payments (devnet works too!)
Modern browser - Chrome, Firefox, Brave, or Edge
Check Your Setup
If any of these fail, install the missing tools first.
π Step-by-Step Installation
1. Clone the Repository
What this does: Downloads the entire Yuki402 codebase to your machine.
2. Install Dependencies
What this does: Installs all required packages (Next.js, React, Tailwind, Solana Web3.js, AI SDK, etc.)
This might take 2-3 minutes. Go grab a coffee β
3. Set Up Environment Variables
Now open .env.local in your favorite editor and add your keys:
Getting your OpenRouter API key:
Go to Keys β Create New Key
Copy and paste into .env.local
Pro tip: Start with devnet for testing (free!), then switch to mainnet when you're ready.
4. Start the Development Server
You should see:
5. Open in Browser
Visit http://localhost:3000arrow-up-right
You should see:
Yuki's landing page with the hero section
"Launch App" button ready to go
Beautiful animations and glass-morphism effects
If you see this, you're golden. Welcome aboard! π
π§ Advanced Setup
Using Yarn Instead of npm
Using pnpm (Faster!)
Production Build
Production mode optimizations:
π Solana RPC Configuration
Free Public RPCs
Devnet (Testing):
Mainnet (Production):
Premium RPC Providers
For production and heavy usage, use a dedicated RPC:
Helius:
Get Helius API keyarrow-up-right
QuickNode:
Get QuickNode endpointarrow-up-right
Alchemy:
Get Alchemy keyarrow-up-right
Why premium RPC?
π§ͺ Verify Installation
Test the Chat Interface
You should see the chat interface
Try sending a message (no wallet needed for chat)
AI should respond within seconds
Test Wallet Connection
Install MetaMask or Phantom
Click "Connect Wallet" in the app
Your wallet address should appear
Test a Mock Payment (Optional)
Make sure you're on devnet
Request: "Generate an OpenWeatherMap API key"
Watch Yuki work her magic!
π Common Issues
Port Already in Use
Solution: Kill the process or use a different port
Module Not Found
Solution: Reinstall dependencies
API Key Not Working
Solution:
Verify key is correct in .env.local
Make sure there are NO quotes around the key
Restart the dev server (Ctrl+C, then npm run dev)
Environment Variables Not Loading
Solution:
File must be named exactly .env.local
File must be in project root (not in app/ folder)
Must restart dev server after changes
Check .gitignore includes .env.local
π’ Next Steps
Now that Yuki is installed:
Development Workflow:
Keep the dev server running while coding
Hot reload updates instantly
Check browser console for errors
Use React DevTools for debugging
Environment Management:
Never commit .env.local to git
Use .env.example as template
Different keys for dev/prod
Performance:
Use premium RPC for production
Enable caching where possible
Set appropriate rate limits
π Need Help?
Installation Issues:
Have Suggestions?
Open a feature request on GitHub
Join the community discussions
Installed successfully? Head to the Quick Start Guide to make your first autonomous payment! β‘