← Back to Leaderboard
Nneuron-core

neuron-core/neuron-ai

A PHP framework for tool-using agents, retrieval, and resumable workflows

Engineering Health (Methodology)
A+ · 93/100
Maintenance Activity
● Updated 2d ago
Latest Release
4.1.31
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption18/25
Release Cadence20/20
License Clarity20/20
DockerSelf-HostedAPI
Total Stars
★ 2,191
24h Growth
+4
7d Growth
+6
Forks
261

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

neuron-core/neuron-ai Star History (2025-03-05 - 2026-12-04) ALL-TIME STAR HISTORY (2025-03 – 2026-12) +2.2k in 639d · avg +3/day 2.3k 1.2k 0 2025-03-05: ★ 12025-04-19: ★ 2862025-05-31: ★ 6172025-07-12: ★ 7982025-08-23: ★ 9002025-10-04: ★ 1,0682025-11-15: ★ 1,2192025-12-27: ★ 1,3752026-02-07: ★ 1,5942026-03-21: ★ 1,7532026-05-02: ★ 1,8572026-06-13: ★ 1,9332026-07-25: ★ 1,9992026-09-05: ★ 2,0682026-10-17: ★ 2,1392026-12-04: ★ 2,191 ★ 2.2k 2025-03 2026-01 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Neuron is a Composer library embedded in a PHP application, not a standalone agent server. An Agent subclass supplies the model through AIProviderInterface, defines instructions, and can register tools. The application binds the agent to a thread with setThreadId() before calling chat() to carry conversation history across turns. RAG adds separate interfaces for embeddings and vector storage; the example pairs Voyage embeddings with Pinecone.

Workflow is the lower-level orchestration layer. It can use Agent and RAG as steps or compose providers, data loaders, chat history, and vector stores directly. Its event-driven model supports checkpointing and interruption for multi-agent and human-in-the-loop flows. McpConnector brings server-exposed tools into the same tool surface as PHP toolkits; the repository also contains a Node workspace with frontend build and test scripts, separate from the Composer integration path.

Key Capabilities & Differentiators

Provider adapters cover Anthropic, OpenAI—including the Responses API and Azure OpenAI—Gemini and Vertex, AWS Bedrock Runtime, OpenAI-compatible endpoints, and Ollama, among others. The framework supports async execution and stream adapters for AG-UI and the Vercel AI SDK. Structured output maps model responses into PHP classes with SchemaProperty attributes; v4.1.29 added support for arrays of scalar values.

Tools give the model access to application operations, either through PHP toolkits or MCP. The MySQL example restricts the toolkit to schema inspection and SELECT, with queries running in read-only transactions. That blocks writes but does not narrow what the connection can read. For retrieval, the application selects an embeddings provider and vector store independently of the chat model.

Trade-offs & Limitations

Compared with calling a model API directly from PHP, Neuron gives teams reusable abstractions for thread history, tooling, retrieval, and workflow control, at the cost of more interfaces and state to configure and test. Compared with a separate Python orchestration service, it keeps business logic in the PHP application and avoids an additional service boundary, but it is less attractive if your pipeline already depends on Python-native components. A provider interface makes substitution easier; it does not guarantee identical tool calls, schemas, or stream behavior across models.

Use application authorization, not thread IDs, to isolate users and tenants. Give SQL tools dedicated least-privilege credentials and a statement timeout, and scope MCP tools to the actions the agent actually needs. For workflows that can resume after interruption, test duplicate execution and make side-effecting steps safe to retry. MIT is permissive for commercial embedding, but does not change the terms or data-handling obligations of external services.

Hardware & Deployment Guide

The PHP requirement is ^8.1. Install with composer require neuron-core/neuron-ai and run it inside your application; the Node workspace is not the core PHP installation path. Hosted model APIs shift inference off the PHP host. Ollama offers a local-inference option, but an offline deployment also needs local or otherwise available replacements for any remote embedding, storage, or tool dependencies the application uses.

The bundled Compose stack explicitly targets development and testing. It builds from the root Dockerfile, defaults its build argument to PHP 8.3, bind-mounts the checkout, uses host networking, and starts integration backends including Redis, Qdrant, and PostgreSQL. These are not blanket production prerequisites. Provision only the services your application uses and test stream handling, checkpoint persistence, and resource limits in your own runtime. Recent releases distinguish runtime changes from tooling updates: 4.1.29 added scalar-array output and listed the IQ-Stream channel; 4.1.30 and 4.1.31 updated integration and developer skills.

PHP integration: Install via Composer and scaffold Agent and RAG classes with vendor/bin/neuron make:agent and make:rag.
Workflow control: Event-driven orchestration supports checkpointing, interruption, and human review across agent steps.
Tool boundary: Register PHP toolkits or import tools from an MCP server through McpConnector.
Typed outputs: Define response fields with PHP classes and SchemaProperty; v4.1.29 added scalar-array output support.
Model and UI adapters: Connect hosted APIs or Ollama, and adapt streams for AG-UI or the Vercel AI SDK.
Deployment boundary: The Docker Compose stack is for development and integration tests, not a production service bundle.
Best For

PHP teams embedding document Q&A, structured extraction, or approval-driven workflows into an existing product, especially when agents must use application tools and stream results to a UI.

Skip If

You need a turnkey hosted agent product, only make a handful of stateless model calls, or already have a Python orchestration service with no reason to move it into PHP.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedAPI
# Start all services
docker compose up -d

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
neuron-ai ★2.2k+6PHPMITA PHP framework for tool-using agents, retrieval, and resumable workflows
ruflo82.8k+312TypeScriptMITA TypeScript orchestration layer for coding agents, with shared memory and MCP
rocketride-server19.9k+22PythonMITC++ workflow engine for building and running extensible AI pipelines
browser-use122.7k+477PythonMITPython REPL and CDP for adaptive browser automation

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/neuron-core/neuron-ai.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

neuron-core/neuron-ai Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about neuron-ai

When should I use Agent, RAG, or Workflow?

Use Agent for chat, thread-bound history, tool calls, and structured responses. Use RAG when the agent needs to retrieve context through an embeddings provider and vector store. Move coordination into Workflow when you need to route between agents, checkpoint progress, or pause for a human decision.

Does Neuron AI require a GPU, and what should I size?

With a hosted model API, the PHP application does not need a GPU for inference. Size PHP workers and connections for concurrent requests, open streams, and tool execution. With Ollama, size the inference host separately for the selected model, context length, and concurrency. There is no single VRAM requirement for the framework.

Can we self-host Neuron AI in a commercial product?

Yes. MIT permits commercial use, modification, and redistribution; retain the copyright and license notices when distributing the software. Self-hosting PHP does not automatically keep data on your infrastructure: check where model, embedding, vector-store, and MCP requests go, and review those services’ terms separately.

How does this compare with a Python agent service or direct API calls?

Prefer Neuron when the team owns a PHP application and wants agent orchestration in the same runtime. A separate Python agent service may be a better boundary if your team already operates one or depends on Python-native components. If you only need one model endpoint and no workflow state, calling the provider API directly is simpler.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining neuron-core/neuron-ai? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature neuron-core/neuron-ai on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare