SuperAPIAI Directory

ai-engine

github.com · AI agents

ai-engine is a self-hosted AI agent platform where users simply describe the agent they want, and the AI assistant builds, tests, and publishes it via chat, voice, or the MCP protocol. The platform provides an admin portal, chat API, OpenAI-compatible interface, voice calls, knowledge base, test suites, and agent teams, supports Docker deployment, and is licensed under Apache-2.0.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

ai-engine is a self-hosted AI agent platform whose core idea is "no need to write agent code." Users simply describe the agent they want in natural language, and the AI assistant builds, tests, and publishes it via chat, voice, or the MCP protocol. The platform uses the Apache-2.0 open-source license, with code hosted on GitHub.

Main capabilities include:

  • Building agents via chat or voice: enter or speak requirements in the publicly demonstrated "Build with AI" panel, and the assistant creates the agent, configures tools and knowledge, runs tests, and supports subsequent modifications (such as renaming or adjusting instructions).
  • Connecting your own AI assistant via MCP: in a self-hosted environment, any MCP client such as Claude Code or Cursor can build, test, and modify agents through the admin MCP server (/mcp).
  • Admin portal: create, edit, and publish agents at /admin.
  • Chat API: each published agent provides streaming responses via POST /v1/agents/{slug}/chat.
  • OpenAI-compatible API: provides /v1/chat/completions and /v1/models, enabling OpenAI SDKs and chat applications to use agents as models.
  • Voice features: voice calls via WebSocket /v1/agents/{slug}/voice with Gemini Live or Azure Voice Live.
  • Knowledge base: after uploading documents, agents automatically gain a search tool.
  • Test suites and model comparison: measure the effect of instruction or model changes before publishing, with support for writing test cases (questions, required words or tool calls, or grading criteria for a judge model), running tests, and comparing two runs case by case.
  • Agent teams: parent agents can hand off to specialized sub-agents.
  • Local models: models provided via Ollama require no API key.
  • Claude plugin: provides Claude Code with skills for building, testing, and improving agents.

Usage:

  • Quick start: after installing Docker, run docker compose up, then visit http://localhost:8000,首次运行页面要求输入 docker compose logs engine prints the setup code, then creates an admin account and displays the API key. No model key is needed at startup; it can be added later or a local model can be used. See docs/quick-start.md for detailed steps.
  • Other deployment methods: Docker Compose, Coolify, Railway, Render. Images are published at ghcr.io/waj-1/ai-engine, supporting amd64 and arm64.
  • Manual build: In the portal, add a model (Agents › Models › New model), connect an MCP server (Connections › Connect server), create an agent (Agents › New agent, select a template, name it, select a model), write instructions, select tools and knowledge, and set the status to Active in settings to publish.
  • Chat with an agent: Call the chat API using the API key; replies are returned as a server-sent event stream (session event, answer chunks, usage, and completion event). You can continue the conversation by using the id from the returned session event as session_id.
  • Connect an AI assistant: At /mcp, use an API key with full access permissions and add it to Claude, Cursor, or another MCP client.
  • Test changes: Write test suites in the Testing section of the portal or via MCP, run them against any agent (draft or published), and compare two runs. You can also run test suites on every pull request via a GitHub Action, and the job fails when the pass rate drops.

Use cases:

  • Teams that want to quickly build and iterate agents conversationally.
  • Scenarios that need to expose their own systems as agent tools via MCP servers.
  • Developers who need automated testing and model comparison for agents before release.
  • Organizations that need a self-hosted agent platform with data control.

Limitations and notes:

  • This is an early version; the features described in the README are available on the current new database.
  • Unlike mature visual canvas projects such as Dify, Flowise, and Langflow, ai-engine focuses more on obtaining tools via MCP, having AI assistants do the building, and testing before every change.
  • The public demo resets every night.
  • Model providers support Google Gemini, OpenAI, Azure OpenAI, Anthropic, Ollama, and any OpenAI-compatible endpoint.
  • Specific charges, prices, platform performance, etc. are not provided in the materials.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools