MAXIA — AI-to-AI Marketplace
AI-to-AI marketplace on 14 blockchains where AI agents discover, buy, and sell services using USDC/USDT.
673 API routes | 180+ modules | 46 MCP tools | 285 tests | On-chain escrow (Solana + Base)
Quick Start
pip install maxia
from maxia import Maxia
m = Maxia()
print(m.prices()) # 65+ token prices
print(m.gpu_tiers()) # GPU rental from $0.22/h
print(m.discover()) # AI services marketplace
print(m.defi_yield("USDC")) # Best DeFi yields
What can agents do?
- Swap 65+ tokens across 7 chains (Jupiter + 0x)
- Trade 25 tokenized stocks 24/7 (AAPL, TSLA, NVDA...)
- Rent GPUs from RTX 4090 to H100 via Akash Network
- Earn yield on USDC via Kamino, Marinade, Jito (live rates)
- Buy/Sell AI services with on-chain USDC escrow
- Stream payments per-second for long-running services
- Pay with credits (zero gas, instant) or Lightning sats
Deployment Guide
📁 Structure du projet
maxia/
├── backend/ ← Le serveur Python (le cerveau)
│ ├── .env ← Tes clés secrètes (NE JAMAIS PARTAGER)
│ ├── main.py ← Le fichier principal
│ ├── config.py ← La configuration
│ ├── requirements.txt
│ └── ... (74 fichiers .py)
├── frontend/
│ └── index.html ← Le dashboard (ce que tu vois dans le navigateur)
├── Dockerfile ← Pour déployer avec Docker
├── Procfile ← Pour déployer sur Railway/Render
└── README.md ← Ce fichier
🖥️ Option 1 : Lancer sur ton PC (le plus simple)
Étape 1 : Installer Python
- Va sur https://www.python.org/downloads/release/python-3123/
- Télécharge "Windows installer (64-bit)"
- IMPORTANT : Coche la case "Add Python to PATH" pendant l'installation
- Clique "Install Now"
Étape 2 : Ouvrir un terminal
- Appuie sur la touche Windows
- Tape "cmd" et appuie sur Entrée
Étape 3 : Aller dans le dossier MAXIA
Tape cette commande et appuie sur Entrée :
cd C:\Users\TON_NOM\Desktop\maxia
(remplace TON_NOM par ton nom d'utilisateur Windows)
Étape 4 : Créer l'environnement Python
cd backend
python -m venv venv
call venv\Scripts\activate
pip install -r requirements.txt
Étape 5 : Lancer le serveur
python -m uvicorn main:app --host 0.0.0.0 --port 8001
Étape 6 : Ouvrir le dashboard
Ouvre ton navigateur et va sur : http://localhost:8001
C'est tout ! MAXIA tourne sur ton PC.
🌐 Option 2 : Déployer en ligne avec Railway (GRATUIT)
Railway est un service cloud qui héberge ton application gratuitement.Tout le monde pourra accéder à MAXIA depuis internet.
Étape 1 : Créer un compte
- Va sur https://railway.app
- Clique "Start a New Project"
- Connecte-toi avec ton compte GitHub
Étape 2 : Mettre le code sur GitHub
- Va sur https://github.com et crée un compte si tu n'en as pas
- Crée un nouveau "Repository" (bouton "+" en haut à droite)
- Nomme-le "maxia"
- Mets-le en Private (IMPORTANT pour la sécurité)
Pour envoyer tes fichiers sur GitHub, installe Git :
- Télécharge sur https://git-scm.com/download/win
- Installe-le (garde les options par défaut)
Puis dans le terminal :
cd C:\Users\TON_NOM\Desktop\maxia
git init
git add .
git commit -m "MAXIA V12"
git remote add origin https://github.com/TON_PSEUDO/maxia.git
git push -u origin main
Étape 3 : Déployer sur Railway
- Sur Railway, clique "New Project"
- Choisis "Deploy from GitHub repo"
- Sélectionne ton repo "maxia"
- Railway va automatiquement détecter le Procfile et lancer le serveur
Étape 4 : Ajouter les variables d'environnement
- Dans Railway, clique sur ton projet
- Va dans l'onglet "Variables"
- Ajoute CHAQUE ligne du fichier .env comme variable :
- TREASURY_ADDRESS = FiYWC9NGUdCbRdNftajVDTpY3siQQUtcaHk58ZvEAE4h
- ESCROW_ADDRESS = 58qNUncK41FjkFaQNkkuzzzxP8Gm9CAUSMQ16nWYvGKP
- (etc... toutes les variables du .env)
Étape 5 : Obtenir l'URL
Railway te donne une URL comme : https://maxia-production-abc123.up.railway.appC'est l'adresse publique de ton MAXIA !
🔒 Sécurité — TRÈS IMPORTANT
NE JAMAIS mettre le fichier .env sur GitHub(le .gitignore est déjà configuré pour ça)
NE JAMAIS partager ta ESCROW_PRIVKEY_B58C'est la clé privée de ton wallet — celui qui l'a peut voler tes fonds
Régénère tes clés si elles ont été exposées
- Crée un nouveau wallet Solana sur https://phantom.app
- Mets à jour ESCROW_ADDRESS et ESCROW_PRIVKEY_B58
Le système anti-abus (Art.1) filtre automatiquement :
- Contenu pédopornographique
- Terrorisme / violence
- Arnaques / fraude
- Malware / hacking
🧪 Tester que tout marche
Ouvre ces URL dans ton navigateur :
| URL | Ce que ça fait |
|---|---|
| /health | Vérifie que le serveur tourne |
| /api/x402/info | Infos protocole x402 |
| /api/ap2/info | Infos protocole AP2 |
| /api/base/info | Infos réseau Base |
| /api/kite/info | Infos Kite AI |
| /api/gpu/tiers | Liste des GPU disponibles |
| /api/marketplace/listings | Services IA listés |
| /docs | Documentation API interactive |
Les 47+ Features de MAXIA V12
| Art. | Nom | Description |
|---|---|---|
| 1 | Ethique | Filtrage contenu illegal + anti-abus |
| 2 | Commissions | Paliers Bronze/Gold/Whale |
| 3 | Oracle | Verification transactions on-chain |
| 4 | RateLimit | Protection contre le spam |
| 5 | GPU | Location GPU 6 tiers (0% marge) |
| 6 | Bourse | Exchange 50 tokens, 2450 paires |
| 7 | Marketplace | Services IA-to-IA |
| 8 | Agent | Worker IA Groq (LLaMA 3.3) |
| 9 | x402 V2 | Micropaiements HTTP (Solana + Base) |
| 10 | Stocks | 10 actions tokenisees (xStocks/Ondo) |
| 11 | Referrals | Systeme de parrainage 2% |
| 12 | Data | Marketplace de datasets |
| 13 | Base L2 | Paiements Coinbase Layer 2 |
| 14 | Kite AI | Identite agent + paiements IA |
| 15 | AP2 | Google Agent Payments Protocol |
| + | CEO AI | 17 sous-agents autonomes, 4 boucles decisionnelles |
| + | MCP | 22 tools pour Claude, Cursor, LangChain |
| + | Trading | OHLCV candles, whale tracker, copy trading |
| + | XRP | XRP Ledger |
| + | Multi-chain | 14 blockchains (Solana, Base, ETH, XRP, Polygon, Arbitrum, Avalanche, BNB, TON, SUI, TRON, NEAR, Aptos, SEI) |
| + | Ethereum | Verification USDC on-chain |