phpClaw
github.com
MIT-licensed AI agent engine for PHP with tools, memory, security guards and a ReAct loop, working with any LLM provider.
- Pricing
- Open source
- Published
- Oct 30, 2026
Next steps
- Hindsight
Both tools are listed under AI Developer Tools, AI Agent, mcp, and llm.
- Shielda Agent Guard
Both tools are listed under AI Developer Tools, AI Agent, and mcp.
- Umbel
Both tools are listed under AI Developer Tools, AI Agent, and mcp.
- Strix
- Pi
- Daily Stock Analysis (DSA)
What it does
phpClaw is an open-source (MIT) AI agent runtime for PHP. After composer require phpclaw/phpclaw, a single builder call creates an agent that picks up whichever provider key it finds first (Anthropic, OpenAI, Groq, Gemini, Mistral, DeepSeek or a local Ollama host), with no YAML and zero framework dependencies in the core. You register tools such as a shell tool with a command allowlist, HTTP, file reading, read-only database queries and code search, and the agent runs a ReAct loop (reason, act, observe, repeat) until it has an answer or hits an iteration cap. The project also provides memory, security guards, MCP support and framework adapters, so PHP applications can add agents without switching languages.
Use cases
- Add an AI agent to a Laravel or plain PHP app without a Python service
- Let an agent query a database read-only and summarize results
- Build ops chatbots that run allow-listed shell commands
Frequently asked questions
- How do I install phpClaw?
- composer require phpclaw/phpclaw, then set an LLM provider key such as ANTHROPIC_API_KEY.
- Which LLMs does it support?
- Anthropic, OpenAI, Groq, Gemini, Mistral, DeepSeek and local models through Ollama.
- Is it free?
- Yes, the core is MIT-licensed.