# Neuron AI

> An open-source PHP framework for building and orchestrating AI agents, RAG pipelines, and workflows inside PHP applications.

Neuron AI is a PHP framework for creating and orchestrating AI agents, developed under the neuron-core organization and backed by Inspector SRL according to the repository license. It covers the application lifecycle from LLM interfaces and data loading to multi-agent orchestration, monitoring, and debugging. It is distributed via Composer and released under the MIT License.

## What It Is

Neuron is an agentic framework for the PHP ecosystem. Developers extend an Agent class, define a provider, system instructions, and tools, then call the agent from anywhere in their application. The framework manages conversation memory, tool calls, structured output, and retrieval-augmented generation. It requires PHP ^8.1 and installs with `composer require neuron-core/neuron-ai`; a CLI generator (`vendor/bin/neuron make:agent`) scaffolds agents.

## How the Building Blocks Work

- **Providers:** Switch between LLM providers such as Anthropic, OpenAI, Gemini, Mistral, Ollama, AWS Bedrock, DeepSeek, and others with a one-line change.
- **Tools and toolkits:** Give agents concrete abilities, such as a MySQL toolkit whose select tool runs queries in a read-only transaction.
- **MCP connector:** Attach tools exposed by MCP servers instead of writing them manually.
- **Structured output:** Map natural-language input to typed PHP classes for downstream systems.
- **RAG:** Combine an AI provider, an embeddings provider, and a vector store such as Pinecone.
- **Workflow:** Event-driven, multi-step flows with state, loops, and human-in-the-loop interruption, where Agent and RAG classes can run as steps.

## Developer Experience and Ecosystem

The project ships agent skills and an MCP documentation server so AI coding assistants such as Claude Code or Cursor can write Neuron code with accurate context. It includes Laravel and Symfony integration skills and stream adapters for frontend protocols such as AG-UI. Built-in observability is available through Inspector.dev integration. Related projects include Neuron Router, a CLI agent, and community demos such as a terminal UI and a deep research agent.

## Features
- Agent class with built-in memory and chat history
- Multi-provider LLM support with one-line switching
- Tools and toolkits including database readers
- MCP connector for external MCP server tools
- Structured output into typed PHP classes
- RAG with embeddings providers and vector stores
- Event-driven workflows with state, loops, and human-in-the-loop
- Streaming and UI protocol adapters such as AG-UI
- Agent skills and MCP server for AI coding assistants
- Inspector.dev observability integration
- CLI scaffolding for agents and RAG
- Fully typed API

## Integrations
Anthropic, OpenAI, Azure OpenAI, Gemini, Ollama, Mistral, HuggingFace, DeepSeek, Grok, AWS Bedrock, Cohere, ZAI, Alibaba DashScope, Pinecone, Elasticsearch, Voyage AI, MySQL, Laravel, Symfony, Inspector.dev, AG-UI, Vercel AI SDK, MCP

## Platforms
WEB, API, DEVELOPER_SDK, CLI

## Pricing
Open Source

## Version
4.1.11

## Links
- Website: https://neuron-ai.dev
- Documentation: https://docs.neuron-ai.dev/
- Repository: https://github.com/neuron-core/neuron-ai
- EveryDev.ai: https://www.everydev.ai/tools/neuron-ai
