Skip to content

InstantAIBNB/InstantAI_BNB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InstantAI Logo

InstantAI

License: MIT Python Node.js BSC Status


🌐 语言 / Language 👇 点击展开对应语言版本 · Click to expand your language

🇨🇳 中文版本(点击展开/收起)

BSC 链上 AI 基础设施 · 持有即解锁 · 零摩擦体验

官网 · 文档 · Twitter


🔍 项目介绍

InstantAI 是构建在 BNB 智能链(BSC)上的去中心化 AI 访问基础设施。代币持有者可自动、无摩擦地使用一系列前沿 AI 功能——无需 API Key,无需订阅,无需任何部署。

持有 $InstantAI* 代币,即可立即解锁全部功能。

连接钱包  →  链上持仓验证  →  AI 功能矩阵  →  获取结果

✨ AI 功能矩阵

功能 描述 状态
🤖 OpenClaw 对话 多轮 AI 对话,支持上下文记忆 ✅ 已上线
🧠 多模型路由 智能路由至最优 AI 模型 ✅ 已上线
🎨 AI 图像生成 文字转图像,基于最新扩散模型 ✅ 已上线
✍️ AI 写作助手 长文内容、文案、脚本一键生成 ✅ 已上线
🖼️ 照片修复增强 AI 驱动的图像修复与画质提升 ✅ 已上线
📊 链上金库追踪 实时透明的金库资金看板 ✅ 已上线
🗳️ DAO 社区治理 社区投票与提案机制 🔜 Q2 2025
📱 移动端 App iOS & Android 原生体验 🔜 Q3 2025

🏗️ 系统架构

┌──────────────────┬──────────────────┬───────────────────┐
│  前端(JS/HTML) │  Vercel Edge API │   BSC 智能合约    │
│                  │                  │                    │
│  · 钱包认证      │  · LLM 路由      │  · 代币持仓验证   │
│  · 功能界面      │  · 图像生成      │  · 链上金库       │
│  · 中英文国际化  │  · 写作 API      │  · 链上 DAO 治理  │
└──────────────────┴──────────────────┴───────────────────┘

🚀 快速开始

环境要求

  • Python 3.11+
  • Node.js 18+
  • Web3 钱包(推荐 MetaMask)
  • BSC RPC 节点地址

安装步骤

# 克隆仓库
git clone https://github.com/YOUR_USERNAME/instantai.git
cd instantai

# 安装 Python 依赖
pip install -r requirements.txt

# 安装 Node.js 依赖
npm install

# 复制环境变量模板
cp .env.example .env

环境变量配置

所有敏感配置均通过环境变量管理,请勿将 .env 文件提交到版本控制系统。

# .env.example(可安全提交——不含真实值)
BSC_RPC_URL=https://bsc-dataseed.binance.org/
TOKEN_CONTRACT_ADDRESS=0x...
MIN_HOLD_AMOUNT=100000
ANTHROPIC_API_KEY=sk-ant-...
DEEPSEEK_API_KEY=...
GEMINI_API_KEY=...

本地启动

python scripts/dev.py

📁 项目结构

instantai/
├── src/
│   └── instantai/
│       ├── chain/          # BSC 链上验证逻辑
│       ├── router/         # AI 多模型路由引擎
│       ├── features/       # 各 AI 功能模块
│       └── utils/          # 公共工具函数
├── tests/                  # 单元测试 & 集成测试
├── docs/                   # 文档与静态资源
├── scripts/                # 开发与部署脚本
├── .github/workflows/      # CI/CD 流水线
├── .env.example            # 环境变量模板
├── requirements.txt        # Python 依赖
└── README.md

🔐 安全模型

InstantAI 采用只读链上验证方案,系统不存储、不传输任何私钥:

  1. 用户连接钱包(验证阶段无需签名)
  2. 后端查询 BSC RPC,检查代币余额
  3. 余额 ≥ 阈值 → 签发短效 JWT 会话令牌
  4. 所有 AI 请求均由服务端代理转发,用户 API 密钥永不暴露

🧪 测试

# 运行全部测试
pytest

# 生成覆盖率报告
pytest --cov=src/instantai --cov-report=html

# 运行指定模块
pytest tests/test_verifier.py -v

📊 3%税费使用

分配类别 比例 用途
40% 金库回购 DEX 流动性池
30% 销毁 币价上升
10% 营销 推特推广
20% 运营 开发 API维护

🤝 参与贡献

欢迎提交 PR!请在开始前阅读 CONTRIBUTING.md

  1. Fork 本仓库
  2. 创建功能分支:git checkout -b feat/your-feature
  3. 使用规范提交格式:git commit -m "feat: 新增 AI 模块"
  4. Push 后发起 Pull Request

本项目基于 MIT License 开源,详见 LICENSE。 核心 AI 路由逻辑与合约交互层为专有实现,不包含在本仓库中。


用 ❤️ 构建于 BNB 智能链之上

🇬🇧 English Version (Click to expand/collapse)

BSC Chain AI Infrastructure · Hold to Unlock · Zero Friction

Website · Docs · Twitter · Telegram


📋 Contract Address (CA)

🟩🟩🟩 BSC Mainnet Contract Address 🟩🟩🟩

0xPasteYourContractAddressHere

☝️ Click the copy icon in the top-right corner of the box above to copy the CA

📌 → View & verify contract on BscScan

[!WARNING] ⚠️ Security Notice: Always verify the CA through official channels. Beware of copycat tokens. The CA is only published via this page, the official website, and official community channels. Any CA sent via DM is a scam.


🔍 Overview

InstantAI is a decentralized AI-access infrastructure built on BNB Smart Chain. Token holders gain automatic, frictionless access to cutting-edge AI capabilities — no API keys, no subscriptions, no setup required.

Hold ≥ 100,000 $IAI tokens → unlock all features instantly.

Connect Wallet  →  On-chain Verify  →  AI Feature Matrix  →  Get Results

✨ Feature Matrix

Feature Description Status
🤖 OpenClaw Chat Multi-turn AI dialogue with context memory ✅ Live
🧠 Multi-LLM Router Routes queries to the optimal AI model ✅ Live
🎨 Image Generation Text-to-image via latest diffusion models ✅ Live
✍️ AI Writing Long-form content, copy, and scripts ✅ Live
🖼️ Photo Restore AI-powered image enhancement & restoration ✅ Live
📊 Treasury Tracker On-chain treasury transparency dashboard ✅ Live
🗳️ DAO Governance Community voting and proposals 🔜 Q2 2025
📱 Mobile App iOS & Android native experience 🔜 Q3 2025

🏗️ Architecture

┌──────────────────┬──────────────────┬───────────────────┐
│   Frontend (JS)  │  Vercel Edge API │  BSC Smart Chain  │
│                  │                  │                    │
│  · Wallet Auth   │  · LLM Router    │  · Token Verify   │
│  · Feature UI    │  · Image Gen     │  · Treasury       │
│  · i18n EN/ZH    │  · Writing API   │  · On-chain DAO   │
└──────────────────┴──────────────────┴───────────────────┘

🚀 Getting Started

Prerequisites

  • Python 3.11+
  • Node.js 18+
  • A Web3 wallet (MetaMask recommended)
  • BSC RPC endpoint

Installation

# Clone the repository
git clone https://github.com/YOUR_USERNAME/instantai.git
cd instantai

# Install Python dependencies
pip install -r requirements.txt

# Install Node.js dependencies
npm install

# Copy environment template
cp .env.example .env

Configuration

All sensitive configuration is handled via environment variables. Never commit your .env file.

# .env.example (safe to commit — no real values)
BSC_RPC_URL=https://bsc-dataseed.binance.org/
TOKEN_CONTRACT_ADDRESS=0x...
MIN_HOLD_AMOUNT=100000
ANTHROPIC_API_KEY=sk-ant-...
DEEPSEEK_API_KEY=...
GEMINI_API_KEY=...

Run Locally

python scripts/dev.py

📁 Project Structure

instantai/
├── src/
│   └── instantai/
│       ├── chain/          # BSC on-chain verification
│       ├── router/         # AI model routing engine
│       ├── features/       # Individual AI modules
│       └── utils/          # Shared utilities
├── tests/                  # Unit & integration tests
├── docs/                   # Documentation & assets
├── scripts/                # Dev & deployment helpers
├── .github/workflows/      # CI/CD pipelines
├── .env.example            # Environment variable template
├── requirements.txt        # Python dependencies
└── README.md

🔐 Security Model

InstantAI uses a read-only on-chain verification approach. No private keys are ever stored or transmitted:

  1. User connects wallet (no signature required for verification)
  2. Backend queries BSC RPC to check token balance
  3. Balance ≥ threshold → short-lived JWT session token issued
  4. All AI calls are proxied server-side — API keys are never exposed

🧪 Testing

# Run all tests
pytest

# Run with coverage report
pytest --cov=src/instantai --cov-report=html

# Run a specific module
pytest tests/test_verifier.py -v

📊 3% fee

Allocation Percentage Purpose
burn 30%
Liquidity 40% DEX liquidity pools
Treasury 15% Platform development
Team 20% Dev & operations

🤝 Contributing

We welcome contributions! Please read CONTRIBUTING.md before opening a PR.

  1. Fork the repository
  2. Create a feature branch: git checkout -b feat/your-feature
  3. Commit with conventional commits: git commit -m "feat: add new AI module"
  4. Push and open a Pull Request

Licensed under MIT License — see LICENSE for details. Core AI routing logic and contract interaction layers are proprietary and not included in this repository.


Built with ❤️ on BNB Smart Chain

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages