Skip to main content

Agent orchestration platform — hardware-aware routing, MCP server, swarm intelligence, OpenAI-compatible

Project description

🧠 NeuralBroker 3.0: Unified Neural Gateway & Agent Orchestration

NeuralBroker logo

VRAM-Aware Routing · Knowledge Graph Memory · Swarm Intelligence · Zero-Trust Federation

PyPI License: MIT Discord Website


⚡ The Ultimate Agent Orchestration Platform

NeuralBroker 3.0 transforms your machine into a Swarm-Native Orchestration Node. It goes far beyond standard model routing by merging the inference gateway, the swarm orchestrator, and structural memory into a single, self-improving daemon.

It automatically evaluates your hardware, coordinates multi-agent task pipelines, builds a persistent graph memory of its actions, and securely talks to other machines across the internet via Zero-Trust Federation.

pip install neuralbrok
neuralbrok start

That's it. Point Cursor, Claude Code, Cline, or any OpenAI/Anthropic-compatible app at http://localhost:8000, and the NeuralBroker Gateway takes over.


🌟 What's New in v3.0: The Unified Vision

🔌 1. Unified Inference Gateway

NeuralBroker now acts as a native Anthropic & OpenAI compatible proxy via a single port (:8000).

  • Protocol Normalization: Transparently routes both /v1/messages (Anthropic) and /v1/chat/completions (OpenAI) calls to any provider (Ollama, NVIDIA NIM, DeepSeek, OpenRouter) using LiteLLM.
  • Hardware-Aware Routing: Automatically falls back to cloud when VRAM is saturated or when task complexity requires a frontier model.
  • Subscription Inheritance: It reads the OAuth session your Claude Code CLI holds in ~/.claude/.credentials.json and uses the claude binary as a free inference backend for hard tasks that spill over from your local GPU.

🕸️ 2. Neural Knowledge Graph & AgentDB

Every interaction creates a trace. NeuralBroker doesn't just store logs; it builds a persistent graph memory (NetworkX + SQLite) above its zero-dependency HNSW vector store.

  • Entity Linking: Decisions, task outcomes, errors, and reasoning chains are stored as typed nodes.
  • Auto-Learning: Agents query the graph before execution to inject historical context and avoid repeating past mistakes.
  • Live Visualization: A real-time D3.js dashboard at http://localhost:8000/dashboard/graph visualizes the growth of your system's knowledge.

🛠️ 3. One-Command IDE Auto-Wiring

Zero configuration for your favorite IDEs. When you run neuralbrok start, NeuralBroker automatically detects your IDEs (Cursor, VS Code, Claude Code) and auto-wires them to use the local gateway by injecting the proper environment variables and settings.

🐝 4. Agentic Swarms & Task Coordination

NeuralBroker doesn't just route prompts; it routes objectives. The built-in SwarmCoordinator decomposes complex user requests into Plan → Execute → Review pipelines, automatically picking the best specialized local agent (Coder, Planner, Reviewer, Analyst) for each subtask.

🧠 5. NeuralFit Hardware Intelligence

Powered by a native Python implementation of our advanced hardware scoring algorithm, NeuralBroker scores models across Quality, Speed, Fit, and Context based on your exact hardware specifications (NVIDIA, Apple Silicon, AMD, or CPU). Run neuralbrok setup to see your live VRAM projections and auto-select optimal models.

🛡️ 6. Security & AIDefence

Every prompt is scrubbed:

  • PII Redaction: AWS keys, emails, and SSNs are automatically masked before reaching cloud LLMs.
  • Injection Shield: Federated incoming requests are heuristically scanned for adversarial jailbreaks.

🌐 7. Zero-Trust Federation

Swarms can securely communicate across networks. Using our local mTLS/Ed25519-style crypto module, your agents can encrypt and sign payloads and send them to other NeuralBroker nodes. Untrusted nodes are automatically downgraded.

🤖 8. Background Workers (Autopilot)

When your machine is idle, NeuralBroker wakes up. The internal WorkerDaemon launches background tasks to optimize codebases and run simulated security audits while you sleep.

🔌 9. MCP Server & Dynamic Plugins

NeuralBroker functions as a native Model Context Protocol (MCP) server via stdio. Connect Claude Code directly to it. You can dynamically load .yaml agent definitions into your ~/.neuralbrok/plugins/ directory and share them with the community.


💻 Quickstart

1. Install & Configure

pip install neuralbrok

# Detect hardware and auto-configure optimal models
neuralbrok setup

2. Start the Gateway

# Starts the unified gateway on port 8000 and auto-wires your IDEs
neuralbrok start

3. Explore the Knowledge Graph

# Open the live memory visualizer in your browser
neuralbrok graph open

# Query the structural memory
neuralbrok memory search "database schema"

4. View Telemetry Dashboard

Open http://localhost:8000/dashboard to view the live Pink Matrix telemetry UI, complete with routing waterfalls and VRAM gauges.


🏗️ Architecture

graph TD
    User([IDE / Agent SDK / Claude Code]) --> Gateway[NeuralBroker Gateway :8000]
    
    Gateway --> Policy[VRAM Policy Engine]
    Policy --> Local[Local Ollama / CUDA]
    Policy --> Cloud[Cloud / NVIDIA NIM / OpenRouter / Claude Subprocess]
    
    Gateway --> Swarm[Swarm Orchestrator]
    
    Swarm --> Memory[(Neural Knowledge Graph)]
    Memory --> Reasoning[Graph-Augmented Context]
    Reasoning -.-> Swarm

🛠️ Development

git clone https://github.com/khan-sha/neuralbroker.git
cd neuralbroker
python3 -m venv .venv && source .venv/bin/activate
pip install -e .
pytest tests/

📜 License

MIT © 2026 NeuralBroker Team. Built with 💖 by the Google Deepmind team (Advanced Agentic Coding).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neuralbrok-3.0.1.tar.gz (159.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neuralbrok-3.0.1-py3-none-any.whl (186.2 kB view details)

Uploaded Python 3

File details

Details for the file neuralbrok-3.0.1.tar.gz.

File metadata

  • Download URL: neuralbrok-3.0.1.tar.gz
  • Upload date:
  • Size: 159.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for neuralbrok-3.0.1.tar.gz
Algorithm Hash digest
SHA256 b68954988943ce31658ab9ceff191aa510354de928a41a877eac053eb29c3a72
MD5 20858afb7db7e321b98b59931830752f
BLAKE2b-256 592e567353b0f52617d9d89dee838158041c64d33097652fe6b46b627da7b9f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for neuralbrok-3.0.1.tar.gz:

Publisher: pypi-publish.yml on khan-sha/neuralbroker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file neuralbrok-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: neuralbrok-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 186.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for neuralbrok-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c46c09ba91e7cd1e18102c5d5b6c37321fabb1db3af44f77fbd4e2a263e49997
MD5 db47dd38efd6528802d2581013e5bb97
BLAKE2b-256 5d70183a233befd034d5b628906d7b1933ebbaff448c09442c5d340f12166df1

See more details on using hashes here.

Provenance

The following attestation bundles were made for neuralbrok-3.0.1-py3-none-any.whl:

Publisher: pypi-publish.yml on khan-sha/neuralbroker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page