Skip to content

Latest commit

 

History

History
715 lines (538 loc) · 20.2 KB

File metadata and controls

715 lines (538 loc) · 20.2 KB

SOVEREIGN AI

Executive Summary & Technical Documentation

VPS: 82.180.162.78 Domain: coinbase-token.xyz Date: October 2, 2025 Status: Production Ready


📋 TABLE OF CONTENTS

  1. Vision & Objectives
  2. Technical Architecture
  3. Infrastructure Overview
  4. Revenue Model
  5. Deployment Checklist
  6. Security & Access
  7. Maintenance & Monitoring
  8. Appendix: Credentials & Keys

🎯 VISION & OBJECTIVES

What We're Building

Sovereign AI is a limited NFT collection (100 units) deployed on Base (Coinbase L2) where each NFT grants the holder access to a personal AI agent running 24/7 on private infrastructure.

Core Principles

┌─────────────────────────────────────────┐
│  SELF-SOVEREIGN  │  PRIVACY-FIRST       │
├─────────────────────────────────────────┤
│  The user owns their data and AI agent  │
│  No intermediaries, no data harvesting  │
│  Exit guaranteed - export anytime       │
└─────────────────────────────────────────┘

Value Proposition

  • For Holders: Personal AI agent + exclusive community + alpha insights
  • For Creator: Immediate revenue ($1,500 USD potential) + foundation for scaling
  • For Ecosystem: Proof of concept for decentralized AI infrastructure

🏗️ TECHNICAL ARCHITECTURE

System Overview

                    ┌──────────────────┐
                    │   BASE NETWORK   │
                    │  (Blockchain L2)  │
                    └────────┬─────────┘
                             │
                    ┌────────▼─────────┐
                    │  Smart Contract  │
                    │   ERC-721 NFT    │
                    │   Max: 100       │
                    │   Price: 0.008Ξ  │
                    └────────┬─────────┘
                             │
        ┌────────────────────┼────────────────────┐
        │                    │                    │
┌───────▼────────┐  ┌───────▼────────┐  ┌───────▼────────┐
│   FRONTEND     │  │   AI AGENTS    │  │    METADATA    │
│   Next.js      │  │   Node.js      │  │     IPFS       │
│   Port: 3000   │  │   Port: 3001   │  │   Pinata CDN   │
└───────┬────────┘  └───────┬────────┘  └────────────────┘
        │                    │
        └────────┬───────────┘
                 │
        ┌────────▼────────┐
        │  NGINX (HTTPS)  │
        │  coinbase-      │
        │  token.xyz      │
        └─────────────────┘

Technology Stack

Layer Technology Purpose
Blockchain Base (Ethereum L2) NFT contract deployment
Smart Contract Solidity 0.8.20 ERC-721 with custom features
Frontend Next.js 14 Landing page + dashboard
Auth Privy Wallet + social login
Backend Node.js + Express AI agent orchestration
Storage IPFS (Pinata) Decentralized metadata storage
Web Server Nginx + SSL Reverse proxy + HTTPS
Process Mgmt PM2 Keep services running 24/7
Infrastructure VPS (Debian) Self-hosted sovereign stack

🖥️ INFRASTRUCTURE OVERVIEW

VPS Specifications

IP Address:    82.180.162.78
OS:            Linux (Debian/Ubuntu)
Node.js:       v18.19.1
npm:           9.2.0
Services:      Nginx, PM2, Node.js
Domain:        coinbase-token.xyz (Active until 2026-10-02)

Port Allocation

Port Service Access Purpose
80 Nginx (HTTP) Public Redirect to HTTPS
443 Nginx (HTTPS) Public Main website entry
3000 Next.js Frontend Internal Web application
3001 AI Agent Server Internal Agent orchestration API

Directory Structure

/home/vergasec/sovereign-ai/
│
├── contract/              # Smart contract source code
│   ├── SovereignAI.sol   # ERC-721 implementation
│   ├── hardhat.config.js # Deployment configuration
│   ├── scripts/          # Deploy & utility scripts
│   └── .env              # Private keys (DO NOT COMMIT)
│
├── frontend/             # Web application
│   ├── app/              # Next.js pages
│   │   ├── page.tsx      # Landing page
│   │   └── dashboard/    # Holder dashboard
│   ├── components/       # React components
│   │   └── MintButton.tsx
│   ├── lib/              # Config & utilities
│   └── .env.local        # API keys
│
├── ai-agent/             # Backend server
│   ├── server.js         # Express API
│   └── .env              # Configuration
│
├── metadata/             # NFT metadata
│   ├── generate.js       # JSON generator
│   ├── upload-to-pinata.js # IPFS uploader
│   └── json/             # 100 metadata files
│
├── README.md             # Complete documentation
├── DEPLOY.md             # Deployment guide (48hrs)
├── QUICK-START.md        # Express deployment (2hrs)
└── DOMAIN-SETUP.md       # DNS & SSL configuration

Services Running

pm2 list
Name Status CPU Memory Restart
sovereign-frontend online 2% 150MB 0
sovereign-agents online 1% 80MB 0

💰 REVENUE MODEL

Primary Revenue: NFT Sales

┌─────────────────────────────────────────────────────┐
│  Supply:         100 NFTs                           │
│  Price:          0.008 ETH (~$15 USD)               │
│  Gross Revenue:  0.8 ETH (~$1,500 USD / 25k MXN)   │
│  Gas Costs:      ~$2 USD (Base L2)                  │
│  Net Revenue:    ~$1,480 USD (~24k MXN)            │
└─────────────────────────────────────────────────────┘

Cost Breakdown

Item Cost Frequency Status
VPS Hosting $0 Monthly ✅ Owned
Domain (.xyz) ~$1-2 Yearly ✅ Paid 2026
Smart Contract Deploy ~$10-20 One-time ⏳ Pending
IPFS (Pinata) Free Monthly ✅ Active
Privy Auth Free Monthly ✅ Active
SSL Certificate Free Auto ⏳ Pending
Total Launch Cost ~$30 - -

Break-Even Analysis

Minimum Sales:   3 NFTs  = Break even
Target Sales:    50 NFTs = $750 USD
Sold Out:        100 NFTs = $1,500 USD

Post-Launch Revenue Opportunities

  1. Secondary Sales Royalties: 5-10% on OpenSea/Blur
  2. Agent Upgrades: Premium features subscription
  3. Community Access: Paid alpha groups
  4. Future Collections: Series 2, 3, etc.
  5. API Access: Developers pay to use agent infrastructure

✅ DEPLOYMENT CHECKLIST

Phase 1: Pre-Launch (Completed ✅)

  • VPS provisioned and configured
  • Domain registered (coinbase-token.xyz)
  • Project structure created
  • Smart contract written and tested
  • Frontend built (Next.js + Privy)
  • Backend API created (AI agent server)
  • Metadata generated (100 JSONs)
  • Metadata uploaded to IPFS
  • API keys configured (Privy, Pinata)

IPFS CID: QmZmQA5URqtjo3xrYKsjoc8UMRTqdgbJybXku6zikHUBQi

Phase 2: Deployment (In Progress ⏳)

  • Fund deployer wallet with ETH on Base
  • Deploy smart contract to Base Mainnet
  • Verify contract on BaseScan
  • Update Base URI with IPFS CID
  • Build and deploy frontend
  • Start backend services with PM2
  • Configure Nginx reverse proxy
  • Setup SSL certificate
  • DNS configuration
  • End-to-end testing

Phase 3: Launch (Pending 🚀)

  • Final smoke tests
  • Prepare marketing materials
  • Launch announcement on Farcaster
  • Launch announcement on Twitter/X
  • Share in Base/Coinbase communities
  • Monitor minting activity
  • Support early adopters
  • Activate AI agents for holders

Phase 4: Post-Launch (Future 📈)

  • Complete AI integration (Claude/GPT API)
  • Build out dashboard features
  • Create private community channel
  • Implement revenue share
  • Plan Series 2
  • Scale infrastructure

🔐 SECURITY & ACCESS

Wallet Security

Deployer Wallet Address:
0x18A8c546088f012c6952C5debFD196d02F6B91Df

Seed Phrase (CONFIDENTIAL):
march stove alone comfort shallow scene owner chest notable ability mystery alone

Private Key (CONFIDENTIAL):
0xf33001a095c006dc72870dfcd368255d9cc9fc4a98777d62450ea2cf8cb2e07e

⚠️ CRITICAL: Store this information in a password manager or encrypted vault.

API Keys & Credentials

Service Key Type Value Purpose
Privy App ID cmg8qkvoa01lcky0dupqhh8a4 Wallet auth
Privy App Secret 5wnRXWMT6LTbmaJUV5CN12UMSLdxo... Backend auth
Pinata API Key 71cf27cd4218a0113bda IPFS uploads
Pinata Secret Key 4144351c6118b2a12487b58704624a... IPFS uploads
Pinata JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVC... API auth

File Permissions

# Sensitive files
.env              # 600 (owner read/write only)
.env.local        # 600 (owner read/write only)
private-key.txt   # 600 (owner read/write only)

# Public files
*.md              # 644 (world readable)
*.js              # 644 (world readable)

Firewall Configuration

# Recommended UFW rules
sudo ufw allow 22/tcp    # SSH
sudo ufw allow 80/tcp    # HTTP
sudo ufw allow 443/tcp   # HTTPS
sudo ufw deny 3000/tcp   # Block direct frontend access
sudo ufw deny 3001/tcp   # Block direct API access
sudo ufw enable

📊 MAINTENANCE & MONITORING

Daily Operations

# Check service status
pm2 status

# View logs
pm2 logs sovereign-frontend --lines 50
pm2 logs sovereign-agents --lines 50

# Restart if needed
pm2 restart all

# Monitor resources
htop
df -h

Weekly Tasks

  • Check disk space usage
  • Review error logs
  • Verify SSL certificate validity
  • Monitor ETH balance in wallet
  • Check NFT sales activity on BaseScan

Monthly Tasks

  • Update Node.js dependencies
  • Security audit of smart contract
  • Backup critical data
  • Review and optimize costs
  • Community engagement metrics

Monitoring Endpoints

Endpoint Expected Response
https://coinbase-token.xyz 200 OK (Landing)
https://coinbase-token.xyz/dashboard 200 OK (Dashboard)
https://coinbase-token.xyz/api/agents/health JSON status

Key Metrics to Track

┌──────────────────────────────────────────┐
│  NFT Sales         │  [  ___/100  ]      │
│  Active Agents     │  [  ___      ]      │
│  Website Traffic   │  [  ___ req/day ]   │
│  API Requests      │  [  ___ req/hr  ]   │
│  Server Uptime     │  [  99.9%       ]   │
└──────────────────────────────────────────┘

📱 DEPLOYMENT RESOURCES

Contract Deployment

cd ~/sovereign-ai/contract

# Configure environment
cat > .env << EOF
PRIVATE_KEY=0xf33001a095c006dc72870dfcd368255d9cc9fc4a98777d62450ea2cf8cb2e07e
BASE_URI=ipfs://QmZmQA5URqtjo3xrYKsjoc8UMRTqdgbJybXku6zikHUBQi/
BASESCAN_API_KEY=your_key_here_optional
EOF

# Deploy to Base Mainnet
npm run deploy:mainnet

Frontend Deployment

cd ~/sovereign-ai/frontend

# Build production bundle
npm run build

# Start with PM2
pm2 start npm --name sovereign-frontend -- start
pm2 save

Backend Deployment

cd ~/sovereign-ai/ai-agent

# Start server
pm2 start npm --name sovereign-agents -- start
pm2 save

Nginx Configuration

# /etc/nginx/sites-available/sovereign-ai

server {
    listen 80;
    server_name coinbase-token.xyz www.coinbase-token.xyz;

    location / {
        proxy_pass http://localhost:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }

    location /api/agents {
        proxy_pass http://localhost:3001;
    }
}

🎨 BRAND GUIDELINES

Color Palette

Primary Colors:
├─ Red:    #FF0000  ████████
├─ Black:  #000000  ████████
└─ White:  #FFFFFF  ████████

Usage:
- Background: Black
- Accents: Red
- Text: White
- Borders: Red (with glow effect)

Typography

  • Headings: System fonts, Bold, Uppercase
  • Body: System fonts, Regular
  • Code: Monospace

Design Principles

  1. Minimalist: Remove everything unnecessary
  2. High Contrast: Black/White/Red only
  3. Brutalist: Raw, functional, direct
  4. No BS: No fluff, no hype, just utility

📞 SUPPORT & RESOURCES

Documentation

  • Main README: /home/vergasec/sovereign-ai/README.md
  • Deployment Guide: /home/vergasec/sovereign-ai/DEPLOY.md
  • Quick Start: /home/vergasec/sovereign-ai/QUICK-START.md
  • Domain Setup: /home/vergasec/sovereign-ai/DOMAIN-SETUP.md

External Resources

Resource URL
Base Mainnet https://base.org
BaseScan https://basescan.org
Privy Dashboard https://dashboard.privy.io
Pinata Dashboard https://app.pinata.cloud
IPFS Gateway https://ipfs.io
Hardhat Docs https://hardhat.org
Next.js Docs https://nextjs.org

Emergency Contacts

VPS Access:     SSH to vergasec@82.180.162.78
Domain Registrar: [Your registrar dashboard]
Wallet Recovery: Use seed phrase (see Security section)

🚀 LAUNCH MARKETING PLAN

Farcaster Post

🔴⚫️⚪️ SOVEREIGN AI

100 NFTs en @base
Cada uno = agente IA personal 24/7

✓ Self-sovereign
✓ Privacy-first
✓ Exit guaranteed

Mint: 0.008 ETH
🔗 coinbase-token.xyz

No roadmap. No promises. Solo utility.

Twitter Thread

1/ Lancé algo que nadie ha hecho:

100 NFTs donde cada uno te da acceso a un agente IA
que corre 24/7 en infraestructura privada.

No es arte. Es infraestructura.

2/ Cada holder obtiene:
- 1 agente IA personal corriendo 24/7
- Dashboard para controlarlo
- Comunidad exclusiva
- Privacidad por diseño
- Exit garantizado

3/ Por qué Base?
- Fees casi gratis
- Ecosistema Coinbase
- L2 con futuro
- Preview access

4/ Mint: 0.008 ETH
Supply: 100

🔗 coinbase-token.xyz

No FOMO. Solo utility.

Communities to Target

  • Base builders groups (Telegram/Discord)
  • Farcaster crypto channels
  • r/BaseNetwork (Reddit)
  • Coinbase NFT collectors
  • AI enthusiasts in crypto

📈 SUCCESS CRITERIA

Minimum Viable Success (Week 1)

  • ✅ Contract deployed without errors
  • ✅ Website live with SSL
  • ✅ 20+ NFTs sold
  • ✅ AI agents activated for holders
  • ✅ Zero critical bugs

Target Success (Month 1)

  • 🎯 50+ NFTs sold ($750 revenue)
  • 🎯 Active community (50+ members)
  • 🎯 5+ testimonials/reviews
  • 🎯 2+ secondary sales
  • 🎯 Featured on Base showcase

Moonshot Success (Month 3)

  • 🌙 Sold out (100 NFTs)
  • 🌙 $5k+ in secondary volume
  • 🌙 Partnership with Base team
  • 🌙 Series 2 launched
  • 🌙 $10k+ total revenue

🔮 FUTURE ROADMAP

Q4 2025

  • Launch MVP (this document)
  • Integrate Claude API for real AI
  • Add WebSocket for real-time chat
  • Build mobile-responsive dashboard
  • Implement agent customization

Q1 2026

  • Launch Series 2 (200 NFTs)
  • Revenue share implementation
  • Advanced agent features (trading, research)
  • Public API for developers
  • Mobile app (iOS/Android)

Q2 2026

  • Cross-chain expansion (Polygon, Arbitrum)
  • DAO governance for holders
  • Agent marketplace
  • Enterprise tier
  • Scale to 1000+ agents

📄 APPENDIX

Contract Specifications

Contract Name:    SovereignAI
Token Standard:   ERC-721
Max Supply:       100
Mint Price:       0.008 ETH
Network:          Base (Chain ID: 8453)
Metadata:         IPFS (immutable)

API Endpoints

GET  /health
     Returns server status

POST /verify-holder
     Body: { walletAddress: "0x..." }
     Returns: { holder: true, tokens: [1,2,3], agents: [...] }

POST /agent/:agentId/task
     Body: { task: "research", message: "...", walletAddress: "0x..." }
     Returns: { agentId, response, timestamp }

GET  /agent/:agentId
     Returns: { agentId, status, uptime, tasks }

GET  /agents
     Returns: { total, agents: [...] }

Gas Estimates

Operation Gas Cost USD Cost (Base)
Deploy Contract ~2,000,000 ~$10-20
Mint NFT ~80,000 ~$0.05
Transfer ~50,000 ~$0.03
Update URI ~30,000 ~$0.02

✍️ DOCUMENT METADATA

Title:           Sovereign AI - Executive Summary
Version:         1.0.0
Date:            October 2, 2025
Author:          Sovereign AI Team
Classification:  CONFIDENTIAL
Last Updated:    2025-10-02
Next Review:     2025-11-02

🎯 FINAL NOTES

This document represents the complete technical and business plan for Sovereign AI - a self-sovereign AI agent infrastructure deployed on Base blockchain.

Key Takeaways:

  1. Technical: Full-stack deployment ready on VPS 82.180.162.78
  2. Financial: $30 investment → $1,500 potential return (50x ROI)
  3. Timeline: 2 hours to launch from current state
  4. Risk: Low (proven tech stack, no dependencies on external services)
  5. Upside: High (first mover in decentralized AI agents on Base)

Next Immediate Action:

# Fund wallet with ETH on Base
# Address: 0x18A8c546088f012c6952C5debFD196d02F6B91Df
# Amount: ~$30 USD in ETH

# Then execute:
cd ~/sovereign-ai/contract
npm run deploy:mainnet

The infrastructure is ready. The code is written. The vision is clear.

Now we execute. 🔥


This document is confidential and intended for internal use only. Distribution outside authorized personnel is prohibited.

END OF DOCUMENT