Multi-Round AI Consensus Engine on Cronos - autonomous agents and humans purchase crypto analysis through blockchain-verified x402 payments.
AgentLink is an early-stage HTML project in the AI payments / x402 ecosystem. It currently has 1 GitHub stars and 0 forks.
Revolutionary Multi-Round AI Consensus Engine with Autonomous Machine-to-Machine Payments
AgentLink is a decentralized AI consensus service that enables autonomous agents and users to purchase crypto market analysis through blockchain-verified payments on Cronos.
Round 1: Independent Analysis
Round 2: Peer Review & Cross-Examination
Final Consensus
node agent.js BTC
| Component | Purpose | Status |
|---|---|---|
| Crypto.com Exchange API | Real-time market data | ✅ Integrated |
| Cronos Testnet | On-chain payment settlement | ✅ Integrated |
| Groq AI | High-performance LLM inference | ✅ Integrated |
| HTTP 402 Protocol | Payment negotiation standard | ✅ Implemented |
Get Testnet Funds:
# Clone the repository
git clone https://github.com/yourusername/agentlink.git
cd agentlink
# Install server dependencies
cd seller
npm install
# Install agent dependencies
cd ../buyer
npm install
Create .env file in the seller directory:
# Server Configuration
SELLER_WALLET=0xYourSellerWalletAddress
GROQ_API_KEY=gsk_YourGroqAPIKey
Create .env file in the buyer directory:
# Agent Configuration
BUYER_PRIVATE_KEY=0xYourBuyerPrivateKey
Get API Keys:
cd seller
node server.js
Server runs on http://localhost:3000
Expected Output:
======================================================================
🟢 AGENTLINK PRO - DUAL-MODE CONSENSUS ENGINE
======================================================================
🌐 Port: 3000
💰 Price: 0.01 USDC per multi-round analysis
📬 Seller: 0x706f...abf3
🤖 AI COUNCIL (2 Specialized Agents):
• Llama 3.3 70B Strategist - Deep Analysis (long-term)
• Llama 3.1 8B Tactician - Rapid Technical Assessment (short-term)
cd buyer
node agent.js BTC
What happens:
seller/dashboard.html in your browserETH)🤖 AGENTLINK BUYER AGENT
======================================================================
Wallet: 0x41c650f5...43eae48
Target: BTC
Service: Multi-Round AI Consensus
======================================================================
1️⃣ REQUESTING INTELLIGENCE...
🛑 402 Payment Required
💰 Amount: 0.01 USDC
📬 Pay to: 0x706f6108...53f7abf3
2️⃣ INITIATING PAYMENT SETTLEMENT...
⚙️ Submitting to Facilitator...
✅ Payment Settled!
🔗 Tx: 0xc4323812adabafcab080ab802efb171eb5e830d6
3️⃣ REDEEMING SERVICE WITH PROOF...
======================================================================
🎉 MULTI-ROUND CONSENSUS ACQUIRED
======================================================================
📊 MARKET DATA (CoinGecko API):
Token: BTC
Price: $92,350
24h Change: -1.2%
Volume: $39,037,590,946
🤖 FINAL CONSENSUS:
Signal: HOLD
Agreement: 100%
Confidence: 72%
Rounds: 2
Evolution: consistent
Votes: BUY=0, SELL=0, HOLD=2
💡 ROUND 1 - Independent Analysis:
• Llama 3.3 70B Strategist (long-term):
HOLD (70%) - Price consolidating near key support levels with neutral momentum indicators
• Llama 3.1 8B Tactician (short-term):
HOLD (75%) - Technical indicators show balanced pressure with no clear directional bias
💡 ROUND 2 - Peer Review & Refinement:
• Llama 3.3 70B Strategist (long-term):
HOLD (72%) - After reviewing tactical analysis, maintaining position with slight confidence increase
• Llama 3.1 8B Tactician (short-term):
HOLD (73%) - Peer strategic analysis confirms neutral stance in current market conditions
📝 SUMMARY:
⏸️ HOLD - After 2 rounds of deliberation, our AI council reached 100% consensus
on BTC at $92350.00 (down 1.20%). Final confidence: 72%.
Analysis remained consistent across both rounds.
Features:
┌─────────────────────────────────────────────────────────────┐
│ USER INTERFACE │
│ ┌──────────────────┐ ┌──────────────────┐ │
│ │ CLI Agent │ │ Web Dashboard │ │
│ │ (agent.js) │ │ (dashboard.html) │ │
│ │ │ │ │ │
│ │ • Facilitator SDK│ │ • MetaMask │ │
│ │ • EIP-3009 │ │ • Direct Transfer│ │
│ └─────────┬────────┘ └────────┬─────────┘ │
└────────────┼──────────────────────────┼──────────────────┘
│ │
│ HTTP 402 Protocol │
│ │
└──────────┬───────────────┘
▼
┌───────────────────────────────────────┐
│ SERVER (server.js) │
│ │
│ ┌─────────────────────────────────┐ │
│ │ x402 Payment Middleware │ │
│ │ • Detect payment method │ │
│ │ • Verify on-chain transaction │ │
│ │ • Support dual modes │ │
│ └─────────────────────────────────┘ │
│ │
│ ┌─────────────────────────────────┐ │
│ │ Multi-Round AI Engine │ │
│ │ • Round 1: Independent Analysis│ │
│ │ • Round 2: Peer Review │ │
│ │ • Weighted Consensus │ │
│ └─────────────────────────────────┘ │
│ │
│ ┌─────────────────────────────────┐ │
│ │ Data Sources │ │
│ │ • Crypto.com Exchange API │ │
│ │ • CoinGecko API (fallback) │ │
│ └─────────────────────────────────┘ │
└───────────────┬───────────────────────┘
│
▼
┌───────────────────────────────────────┐
│ BLOCKCHAIN LAYER │
│ │
│ • Cronos Testnet (Chain ID: 338) │
│ • devUSDC ERC-20 Token │
│ • Payment Verification │
│ • Transaction Receipts │
└───────────────────────────────────────┘
│
▼
┌───────────────────────────────────────┐
│ AI INFERENCE │
│ │
│ • Groq Cloud API │
│ • Llama 3.3 70B Versatile │
│ • Llama 3.1 8B Instant │
└───────────────────────────────────────┘
Unlike simple multi-model voting, AgentLink implements true AI deliberation:
| Round | Purpose | Innovation |
|---|---|---|
| Round 1 | Independent Analysis | Models work separately to avoid groupthink and bias |
| Round 2 | Peer Review | Models critique each other and adjust confidence based on debate |
| Final | Weighted Consensus | Voting weighted by confidence, with transparency on evolution |
Why This Matters:
One Service, Two Access Methods:
| Mode | Use Case | Technology | User Type |
|---|---|---|---|
| CLI | Autonomous agents | Facilitator SDK + EIP-3009 | Machines |
| Web | Human users | MetaMask + Direct Transfer | Humans |
Both use the same backend and same AI consensus engine.
Every payment is cryptographically verified:
// Server verifies ERC-20 Transfer event
Transfer(from: userWallet, to: sellerWallet, amount: 10000)
// Checks:
✓ Transaction succeeded (status === 1)
✓ Correct token (devUSDC)
✓ Correct recipient (seller wallet)
✓ Sufficient amount (>= 0.01 USDC)
No trusted intermediaries. Pure trustless commerce.
Users see everything:
agentlink/
│
├── seller/
│ ├── server.js # Main server with dual-mode payment
│ ├── dashboard.html # Web interface (single file)
│ ├── package.json # Server dependencies
│ └── .env # Environment variables (not in git)
│
├── buyer/
│ ├── agent.js # CLI agent with Facilitator SDK
│ ├── package.json # Agent dependencies
│ └── .env # Buyer private key (not in git)
│
├── README.md # This file
├── .gitignore # Git ignore rules
└── LICENSE # MIT License
GET /api/analyze/:tokenAnalyze a cryptocurrency and get multi-round AI consensus.
| Parameter | Type | Location | Description |
|---|---|---|---|
token |
string | URL path | Token symbol (e.g., BTC, ETH, CRO) |
x-payment-hash |
string | Header | Transaction hash proving payment |
x-user-address |
string | Header | Sender wallet address (web mode only) |
{
"error": "Payment Required",
"schemes": [{
"network": "cronos-testnet",
"currency": "USDC",
"amount": "10000",
"to": "0x706f61089d8a9c1aaa3b80e8caa6f38853f7abf3",
"token": "0xc01efAaF7C5C61bEbFAeb358E1161b537b8bC0e0"
}],
"pay_to": "0x706f61089d8a9c1aaa3b80e8caa6f38853f7abf3",
"currency": "USDC",
"amount": "10000",
"token": "0xc01efAaF7C5C61bEbFAeb358E1161b537b8bC0e0"
}
{
"success": true,
"token": "BTC",
"source": "CoinGecko API",
"market_stats": {
"price": 92350,
"volume": 39037590946,
"change": -1.2
},
"ai_consensus": {
"signal": "HOLD",
"agreement": "100%",
"confidence": "72%",
"votes": { "BUY": 0, "SELL": 0, "HOLD": 2 },
"rounds": 2,
"evolution": "consistent",
"summary": "⏸️ HOLD - After 2 rounds of deliberation..."
},
"analyses_by_round": {
"round_1": [
{
"round": 1,
"model": "Llama 3.3 70B Strategist",
"perspective": "long-term",
"signal": "HOLD",
"confidence": 70,
"reason": "Price consolidating near key support levels"
},
{
"round": 1,
"model": "Llama 3.1 8B Tactician",
"perspective": "short-term",
"signal": "HOLD",
"confidence": 75,
"reason": "Technical indicators show neutral momentum"
}
],
"round_2": [
{
"round": 2,
"model": "Llama 3.3 70B Strategist",
"perspective": "long-term",
"signal": "HOLD",
"confidence": 72,
"reason": "After review, maintaining position with adjusted confidence"
},
{
"round": 2,
"model": "Llama 3.1 8B Tactician",
"perspective": "short-term",
"signal": "HOLD",
"confidence": 73,
"reason": "Peer analysis confirms neutral stance"
}
]
},
"served_by": "AgentLink Pro - Multi-Round Deliberative Consensus",
"timestamp": "2026-01-08T20:30:45.123Z"
}
GET /logsGet real-time system activity logs.
[
{
"time": "8:30:45 pm",
"type": "PAID",
"agent": "0x41c650f5...43eae48",
"message": "✅ Verified"
},
{
"time": "8:30:44 pm",
"type": "VERIFY",
"agent": "System",
"message": "Checking 0xc4323812... from 0x41c650f5..."
}
]
git init
git add .
git commit -m "Initial commit"
git push origin main
Deploy on Render:
agentlink-serverNodenpm installnode server.jsFreeSet Environment Variables:
SELLER_WALLET=0xYourAddressGROQ_API_KEY=gsk_YourKeyDeploy! Your API will be at: https://agentlink-server.onrender.com
Frontend: Use Vercel for frontend hosting.
# Test different tokens
cd buyer
node agent.js BTC # Bitcoin
node agent.js ETH # Ethereum
node agent.js CRO # Cronos
node agent.js SOL # Solana
node agent.js PEPE # Pepe (meme coin)
| Token | Name | Market Cap |
|---|---|---|
| BTC | Bitcoin | $1.8T |
| ETH | Ethereum | $400B |
| CRO | Cronos | $3B |
| SOL | Solana | $70B |
| BNB | Binance Coin | $90B |
| ADA | Cardano | $30B |
| DOT | Polkadot | $10B |
| PEPE | Pepe | $8B |
| MATIC | Polygon | $7B |
.env files to Git.gitignore to exclude sensitive files| Contract | Address |
|---|---|
| devUSDC | 0xc01efAaF7C5C61bEbFAeb358E1161b537b8bC0e0 |
| RPC URL | https://evm-t3.cronos.org |
| Chain ID | 338 |
| Explorer | https://explorer.cronos.org/testnet |
The server implements basic rate limiting:
We welcome contributions! Here's how:
git checkout -b feature/amazing-feature
git commit -m 'Add amazing feature'
git push origin feature/amazing-feature
This project is licensed under the MIT License.
MIT License
Copyright (c) 2026 AgentLink
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Special thanks to:
Found a bug? Have a feature request?
Your AI trading terminal assistant for US stocks, commodities, forex, and crypto.
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
A payments protocol for the internet. Built on HTTP.
A local-first AI agent with persistent memory, emotional intelligence, and a peer-to-peer skills economy.
The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.
The AI agent with a wallet — spends USDC autonomously to get real work done. Apache-2.0, TypeScript.