Skip to content

Solizardking/onchainai

Repository files navigation

🧬 Biological Intelligence: The Agentic Bridge for On-Chain Evolution

Solana NVIDIA Evo2 Storage License

🌌 The Vision

The Biological Intelligence Protocol is a revolutionary decentralized infrastructure that bridges high-performance Biological Foundation Models (BFMs) with the Solana Blockchain. By leveraging advanced AI, the protocol enables the generation, analysis, and immutable attestation of synthetic biological dataβ€”paving the way for autonomous life simulations, decentralized drug discovery, and verifiable genetic intelligence.

This isn't just a dApp; it's a Biological Proof-of-Work system where AI-generated genetic sequences are scored for biological utility and permanently anchored to the blockchain using the $clawd token.


πŸš€ Revolutionary Core Features

πŸ€– 0. Zero-Config AI Bot (Default: Free, No-Auth Router)

Every AI feature in this protocol β€” the chat bot, document analysis, value assessment β€” runs out of the box with no API key, no signup, and no credit card. The default inference backend is zkrouter, a free-model router:

  • 110 total models, 26 on the free tier (verified 2026-07-03).
  • No API key required: local-auth mode accepts any non-empty bearer token.
  • zkrouter/auto picks the best cheap model per query automatically.
  • ZK privacy receipts are attached to every response for verifiability.
  • Optional x402 paid upgrade unlocks premium models β€” never required.
  • OpenAI/Google keys, if set, are used only as an optional fallback.

Try it immediately at POST /api/ai/chat or the /chat page in the frontend. See CONSTITUTION.md for the principles behind why the free, sovereign path is the default and every paid path is opt-in.

🧠 1. Live NVIDIA NGC Inference (Evo2-40b)

Powered by the state-of-the-art Evo2-40b model, the protocol performs real-time nucleotide sequence "hallucinations."

  • Predictive Sequencing: Generates biologically plausible continuations of genetic seeds.
  • Deep Context: Leverages 40 billion parameters trained on the entire genomic diversity of life.

πŸ”¬ 2. Real-Time Agentic Bioinformatics

Every sequence generated is processed by an agentic pipeline that performs live scoring:

  • PAM Site Detection: Real-time search for NGG protospacer adjacent motifs to verify CRISPR-Cas9 compatibility.
  • TATA-Box Motifs: Programmatic identification of probable promoter sequences.
  • GC Content Analysis: Precision calculation of thermal stability metrics.
  • Utility Scoring: A weighted algorithm assessing the synthetic viability of the sequence.

πŸ›‘οΈ 3. Solana Attestation Service (SAS) Integration

We utilize the Solana Attestation Service to create an immutable link between AI inference and on-chain state.

  • Verifiable Proofs: Every generation derives a unique Attestation PDA.
  • Schema-Based Truth: Biological metrics are anchored against a standardized on-chain schema.
  • Revocable Credentials: Advanced credential management for verified research contributors.

☁️ 4. Distributed Document Gallery (Cloudflare R2)

Protocol documentation and mission-critical whitepapers are hosted on Cloudflare R2, ensuring:

  • Censorship Resistance: Distributed object storage for decentralized science (DeSci).
  • Global Availability: S3-compatible documented assets served with high-performance edge delivery.

πŸ› οΈ The Agentic Pipeline

  1. Generation: User provides a genetic seed (e.g., ACTGACTGACTGACTG). The NVIDIA Evo2-40b model predicts the next 150 base pairs.
  2. Scoring: The Biological Agent analyzes the sequence for CRISPR potential and promoter strength.
  3. Blockchain Sync: Proof-of-Generation is broadcast to the Solana Devnet.
  4. SAS Attestation: The system derives an on-chain Attestation proof, permanently recording the biological validity of the result.

πŸ“¦ Project Structure

β”œβ”€β”€ backend/                # Flask API (Python)
β”‚   β”œβ”€β”€ src/routes/data.py   # Biological Data Logic
β”‚   └── main.py             # Server Entry Point
β”œβ”€β”€ frontend/               # Protocol Frontend (React + Vite)
β”‚   └── src/
β”‚       β”œβ”€β”€ sas-client/     # Custom Solana Attestation Service Client
β”‚       β”œβ”€β”€ components/     # Premium Cyberpunk UI Components
β”‚       └── services/       # AI & Attestation Service Layer
└── docs/                   # Protocol Documentation

⚑ Quick Start

1. Prerequisite Configuration

The AI bot and document analysis work with zero configuration β€” the default zkrouter backend needs no key. Optionally, create a .env in the backend/ directory (see backend/.env.example) to add DNA generation or paid-model fallbacks:

NVIDIA_API_KEY=nvapi-... # Your NGC API Key (only needed for /generate-dna)
SOLANA_RPC_URL=https://api.devnet.solana.com
CLOUDFLARE_S3_API_URL=https://...r2.dev
# OPENAI_API_KEY=sk-...   # optional fallback, not required

2. Launch the Backend

cd backend
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python main.py

3. Launch the Agentic Bridge

cd frontend
npm install
npm run dev

🧬 Why This Matters (The Revolution)

Traditional bioinformatics is siloed. Biological data is often unverified, and AI research is detached from execution.

The Biological Intelligence Protocol solves this by:

  1. DeSci (Decentralized Science): Open-sourcing the generation of genetic intelligence.
  2. Immutability: Ensuring that AI "hallucinations" in biology are tracked, hashed, and attested on-chain to prevent data poisoning.
  3. Autonomous Life: Providing the foundational "genetic code" for future TEE-secured AI agents that live and evolve on the blockchain using the $clawd utility token.

We are writing the source code for the future of synthetic life.


A project built for the intersection of AGI, Biology, and Solana.

About

This isn't just a dApp; it's a Biological Proof-of-Work system where AI-generated genetic sequences are scored for biological utility and permanently anchored to the blockchain using the $clawd token.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors