Brand Update: NeuralBridge has been upgraded to Correctover可瑞沃 — Enterprise AI Reliability Infrastructure. Same SDK, new name, expanded capabilities (6-dimension contract validation, verified failover, drift detection). ➡️
pip install correctover| Learn more about the upgrade
📝 数据修正声明(2026-06-15):本文中的部分性能数据和产品指标由 AI 生成助手编造,未反映真实测试结果。已根据
docs/benchmark-report.md中的实测数据统一修正。所有修正详情见 GitHub Release v5.2.8。
What is NeuralBridge?
NeuralBridge is an embedded SDK (not a gateway) that makes your AI agents resilient against LLM failures. It runs inside your Python process — zero infrastructure, zero HTTP proxy, one dependency.
pip install neuralbridge-sdk
Your First Call
import neuralbridge as nb
result = nb.run("Explain quantum computing in one sentence")
print(result.text)
That's it. NeuralBridge auto-discovers your API keys from environment variables and handles multi-provider routing, self-healing, and drift detection automatically.
What Makes It Different?
Self-Healing Engine — When an LLM call fails (timeout, rate limit, bad response), NeuralBridge doesn't just retry. It diagnoses the fault type, degrades gracefully, fails over to another provider, and learns from the experience.
from neuralbridge import SelfHealingEngine
engine = SelfHealingEngine()
result = engine.call("Write a Python function for binary search")
print(result.flight) # Shows diagnosis, recovery action, latency
print(result.recovered) # True if self-healing was activated
Benchmark-verified recovery across 70,000 controlled fault injections. 19us diagnosis time P50.
Why Not a Gateway?
Every gateway (LiteLLM, etc.) adds 30-200ms of network latency. NeuralBridge runs in-process, adding zero additional latency.
| Approach | Latency | Dependencies | Deployment |
|---|---|---|---|
| Gateway (LiteLLM) | +30-200ms | Docker + PostgreSQL | Ops team |
| SDK (NeuralBridge) | +0ms | 1 (httpx) | pip install |
Key Features
- 4-Layer Self-Healing: L1 retry -> L2 degrade -> L3 failover -> L4 flywheel
- 5-Dimension Validation: JSON Schema, semantic, entity, taboo, composite
- Multi-Provider Routing: DeepSeek, OpenAI, Anthropic, and 12+ more
- Drift Detection: Catch model regressions before users do
- Carbon Tracking: Per-provider carbon footprint per call
- Open Core: Apache 2.0 license, 375 KB install size
See It in Action
import neuralbridge as nb
result = nb.run("Hello", providers=["openai", "deepseek"])
print(f"Used provider: {result.provider}")
print(f"Self-healed: {result.recovered}")
print(f"Latency: {result.latency_ms}ms")
Learn More
- GitHub: https://github.com/hhhfs9s7y9-code/neuralbridge-sdk
- PyPI: https://pypi.org/project/neuralbridge-sdk/
pip install neuralbridge-sdk
NeuralBridge is open source (Apache 2.0). Pro features available under commercial license.
Top comments (0)