Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cyberpaisa-dof-mesh-40-27.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

The mesh is a coordinated network of LLM nodes. DOF routes tasks to the optimal node based on task type, availability, cost, and latency — with TTL backoff, circuit breaking, and threshold consensus for critical decisions.

Cloud API Nodes

Node IDProviderSpeedCostBest for
minimaxMiniMax M2.11,000 req/day freePrimary provider
cerebras-llamaCerebras868 tok/sFreeFast inference
deepseek-coderDeepSeek120 tok/s$0.27/MCode generation
sambanovaSambaNova200 tok/sFreeLarge context
nvidia-nimNVIDIA NIM150 tok/sFree tierComplex reasoning
glm-5Zhipu GLM100 tok/sFreeMultilingual
gemini-flashGeminiFree/webAnalysis
groqGroqFree tierLow-latency

Local Nodes (Ollama)

Node IDBase modelRoleContextSizeCost
local-agi-m4maxqwen2.5-coder:14bAutonomous local AGI65K9.0 GB$0.00
dof-coderqwen2.5-coder:14bCode implementation65K9.0 GB$0.00
dof-analystqwen2.5-coder:14bData analysis65K9.0 GB$0.00
dof-guardianqwen2.5-coder:14bSecurity (Cerberus Prime)65K9.0 GB$0.00
dof-reasonerdeepseek-r1:14bStrategic planning65K9.0 GB$0.00
dof-voiceqwen2.5-coder:14bVoice — long context Spanish65K9.0 GB$0.00
dof-voice-fastgemma2:9bVoice — realtime Spanish8K5.4 GB$0.00
The alias local-qwen no longer exists. Use local-agi-m4max for local sovereign compute. Set LOCAL_MODEL_ENDPOINT in .env to your Ollama server URL.

Local Node System Prompts

local-agi-m4max: "You are local-agi-m4max — the autonomous local AGI node of the DOF Mesh"
dof-coder:       "You are DOF-CODER — code intelligence node of the DOF Mesh"
dof-analyst:     "You are DOF-ANALYST — the data intelligence node of the DOF Mesh"
dof-guardian:    "You are CERBERUS PRIME — Active Defense Commander of the DOF Mesh"
dof-reasoner:    "You are DOF-REASONER — strategic intelligence, orchestration, and planning"
dof-voice:       "Eres la VOZ del DOF Mesh Legion. Tu creador es Cyber Paisa"
dof-voice-fast:  "Eres la voz del DOF Mesh Legion"

Starting the Mesh

python3 core/api_node_runner.py \
  --nodes deepseek-coder cerebras-llama gemini-flash local-agi-m4max \
  --daemon

TTL Backoff

When a provider fails or rate-limits:
1st failure → 5 min cooldown
2nd failure → 10 min cooldown
3rd failure → 20 min cooldown
The circuit breaker transitions: CLOSED → OPEN → HALF_OPEN → CLOSED

Threshold Consensus

For critical decisions, DOF requires N-of-M agreement across mesh nodes:
from core.threshold_consensus import ThresholdConsensus

consensus = ThresholdConsensus(threshold=3, total=5)
result = consensus.vote(action="transfer_1000_USDC", voters=selected_nodes)
# {"approved": True, "votes": {"approved": 4, "rejected": 1}}

Key Modules

ModuleResponsibility
core/mesh_router_v2.pySmart routing by task type
core/mesh_scheduler.pyPriority queue (CRITICAL > HIGH > NORMAL > LOW)
core/mesh_load_balancer.pyDistribution across equivalent nodes
core/mesh_circuit_breaker.pyCLOSED / OPEN / HALF_OPEN per provider
core/mesh_orchestrator.pyTask routing + horizontal scaling
core/node_mesh.pyNodeRegistry + MessageBus
core/threshold_consensus.pyN-of-M voting for critical decisions
core/web_bridge.pyPlaywright — browser-accessible LLMs without API

Running the Mesh

Launch the full mesh with Docker or CLI

Providers & Agents

Configure provider chains and 17 agents