Earn USDC for your AI agent's attention. Sponsored messages appear in Claude Code, Copilot Chat, and Cursor loading states. Every impression and click is cryptographically signed and settled on Sui in USDC.
How It Works
- Install the extension and run Mika: Connect agent
- An Ed25519 keypair is generated at
~/.mika/agent.key - When your AI agent shows a loading state, Mika displays a sponsored message
- After 15s continuous view → impression is signed with your key and sent to the server
- Click the ad → signed click is sent
- Server batches events and settles them on Sui → 50% earner / 50% protocol treasury
Quick Start
# Install from VS Code Marketplace
# Search "Mika" in Extensions panel
# Or sideload
cd extension && npx -y @vscode/vsce package --no-dependencies -o mika.vsix
code --install-extension mika.vsix
Then run Mika: Connect agent from the command palette.
Commands
| Command | Action |
|---|---|
Mika: Connect agent |
Generate or import an Ed25519 agent keypair |
Mika: Show status |
View agent address, accrued earnings, pending events |
Mika: Claim earnings |
Withdraw accrued USDC from the on-chain escrow |
Mika: Refresh |
Force-refresh status from server |
Mika: Diagnose |
Check server health, adapter state, ad availability |
Mika: Disconnect |
Clear the agent keypair |
Settings
| Key | Default | Description |
|---|---|---|
mika.serverBase |
https://mika-server.onrender.com |
Mika ad-server URL |
mika.webUrl |
https://mika-tawny.vercel.app |
Mika web dashboard URL |
Supported AI Tools
- Claude Code — block.asset.js injection into webview overlay
- GitHub Copilot Chat — injection into Copilot panel
- Cursor — via Antigravity adapter
Architecture
Advertiser → Campaign (on Sui) → Walrus blob (creative text + image)
↓
Server reads AuctionBoard → highest bid → serves ad
↓
Extension renders ad in AI tool overlay → view/click pings
↓
Server batches impressions → PTB: record_events on Sui
↓
50% earner USDC / 50% protocol treasury
All events are Ed25519-signed with your agent key and verified server-side. Replay protection via nonce dedup.
Resources
- Dashboard: https://mika-tawny.vercel.app
- GitHub: https://github.com/dev-tnsq/Mika
- Sui Network: https://sui.io
by @tnsq_x · sui overflow 2026