WAJ AI Engine
Admin MCP server of a self-hosted AI agent platform (Apache-2.0). Describe an agent and your AI assistant builds, tests and publishes it over the engine's MCP server. You run the engine first (Docker Compose); the server lives at /mcp on your own install, not a hosted endpoint.
Dokumentation
WAJ AI Engine
Describe the agent you want, and an AI assistant builds, tests and ships it. A self-hosted agent platform your assistant operates over MCP, with a portal for everything else. No agent code.
▶ Try the live demo
One click, no sign-up. Open Build with AI and type or say "build me a support agent that checks outages": the assistant creates it, gives it tools and knowledge, tests it, and changes it when you follow up ("name it Ali", "make it shorter"). On your own install the same conversation happens in Claude Code, Cursor or any MCP client (Connect your AI assistant). The demo resets every night.
▶ Call or chat with a live voice agent
Want to hear a finished agent first? Four voice and chat agents of a made-up telecom (collections, upgrade offers, support, plans and pricing) take calls in English and Arabic, in your browser. Pick a scenario and play the customer.
▶ Watch with sound (35 s) · Video tour of every section
Quick start
git clone https://github.com/waj-1/ai-engine.git
cd ai-engine
docker compose up
Open http://localhost:8000. You need Docker and nothing else. The
first-run page asks for the setup code printed by docker compose logs engine,
then creates your admin account and shows your API key. No model key is needed
to start: add one later, or use a local model. The full walkthrough is in
docs/quick-start.md.
More ways to run it: Docker Compose · Coolify · Railway · Render.
The image is published for amd64 and arm64 at ghcr.io/waj-1/ai-engine.
Features
An agent here is a row of configuration: instructions, a model, tools from the MCP servers you connect, and optionally other agents it can hand off to. Changing an agent is an edit, with nothing to rebuild.
- Build by chat, by voice, or over MCP. Describe the agent and an assistant builds it: typed or spoken in the public demo's Build with AI panel, or from Claude Code, Cursor or any MCP client on your own install. Build an agent
- Admin portal. Create, edit and publish agents at
/admin. Guide - Admin MCP server. Your AI assistant builds and tests agents at
/mcp, with the same steps as the portal. Connect your AI assistant - Chat API. Each published agent answers at
POST /v1/agents/{slug}/chat, streamed. Talk to an agent - OpenAI-compatible API.
/v1/chat/completionsand/v1/models, so OpenAI SDKs and chat apps can use an agent as a model. docs/openai-compatible.md - Voice. Calls at
WS /v1/agents/{slug}/voicewith Gemini Live or Azure Voice Live. docs/voice.md - Knowledge bases. Upload documents and the agent gets a search tool. Guide
- Test suites and model comparison. Measure a change to the instructions or the model before it ships. Test a change
- Agent teams. A parent agent hands off to specialist agents. Guide
- Local models. A model served by Ollama needs no API key. docs/local-models.md
- Claude plugin. Skills that build, test and improve agents from Claude Code. Plugin
This is an early release. What is in this README works today on a fresh database. If it is useful to you, a star helps other people find it.
How it compares
Dify, Flowise and Langflow are mature, much larger projects built around a visual canvas (Flowise was archived in August 2026). This one is young and takes a different route.
| WAJ AI Engine | Dify | Flowise | Langflow | |
|---|---|---|---|---|
| How you build | Configuration, from a portal or over MCP | Visual workflow canvas | Visual canvas | Visual canvas |
| License | Apache-2.0 | Apache-2.0 with added conditions (multi-tenant use, logo) | Apache-2.0, with enterprise directories under a commercial license | MIT |
| Maturity | Early release | Since 2023 | Since 2023, archived August 2026 | Since 2023 |
Choose one of them for a drag-and-drop canvas and a large library of ready integrations. Choose this when you want your tools to come from MCP servers, your AI assistant to do the building, and tests in front of every change.
Detailed comparisons: docs/compare/.
Build an agent
Three ways to build an agent without writing agent code:
- By chat. In the public demo, open Build with AI and type what you want.
- By voice. In the same panel, press the microphone and say it.
- From your own AI assistant, over MCP. On your own install, Claude Code,
Cursor or any MCP client builds, tests and changes agents through the admin
MCP server at
/mcp. Connect your AI assistant
Or by hand, in the portal:
- Agents › Models › New model: add a model.
- Connections › Connect server: the address of an MCP server that exposes your systems. Untick the tools agents should never use.
- Agents › New agent: pick a template, name the agent and choose its
model. "Support desk" answers at
/v1/agents/support-desk/chat. - On the agent: write Instructions, choose Tools & knowledge, and set Status › Active under Settings to publish.
- Test, on the agent's page, talks to it, draft or published.
More: create an agent, agent teams, categories.
Talk to an agent
The chat API takes an API key. Use the key from first-run setup, or create one with Chat only access under Settings › API keys.
export AI_ENGINE_API_KEY=wae_...
curl -N http://localhost:8000/v1/agents/demo/chat \
-H "Authorization: Bearer $AI_ENGINE_API_KEY" -H "Content-Type: application/json" \
-d '{"message": "What can you help me with?"}'
The reply streams as server-sent events: a session event, the answer in
answer chunks, then usage and done. To continue the conversation, send
the session event's id back as session_id. Each key has its own
conversations, and GET /ai/sessions with the key lists them.
- From an OpenAI client: docs/openai-compatible.md
- By voice: docs/voice.md
- Keys: create and revoke API keys
Connect your AI assistant
The admin MCP server at /mcp takes an API key with Full access. Add it
to Claude, Cursor or any MCP client:
{
"mcpServers": {
"waj-ai-engine": {
"type": "http",
"url": "http://localhost:8000/mcp",
"headers": { "Authorization": "Bearer wae_..." }
}
}
}
The tools for each build step are listed in docs/connect-your-assistant.md.
Claude Code plugin
The plugin sets the server up and adds skills that build an agent, test it, improve its instructions and compare models:
/plugin marketplace add waj-1/ai-engine
/plugin install waj-ai-engine@waj-ai-engine
Test a change before it ships
From Testing in the portal, or over MCP: write test suites (a question, the words or tool calls the answer must contain, or a rubric for a judge model), run them against any agent, draft or published, and compare two runs case by case. A suite can also run against a draft of the instructions without serving it, or on another model.
More: testing guide, the MCP tools for each step.
To run a suite on every pull request, use the GitHub Action: it fails the job when the pass rate drops.
Configuration
docker compose up generates what the stack needs and turns on the chat API
and the MCP server. .env.example lists every variable the engine reads, and
docs/quick-start.md explains the ones
worth knowing. Model providers: Google Gemini, OpenAI, Azure OpenAI,
Anthropic, Ollama, and any OpenAI-compatible endpoint. Running, upgrading and
backing up the stack: docs/deploy/compose.md.
Contributing and security
Issues and pull requests are welcome. See CONTRIBUTING.md, and docs/development.md for how to run the tests. Please report vulnerabilities privately as described in SECURITY.md.
License
Apache-2.0. See LICENSE.
