Ontheia is a self-hosted AI agent platform positioned as "your data, your AI, your rules." It is open source and aims to integrate scattered chats, tools, scripts, and automation into a governed working environment, allowing AI to maintain capability and connectivity within established boundaries.
Purpose Ontheia is suitable for individuals and organizations that want to run AI agents on their own infrastructure, especially scenarios that value data sovereignty, compliance, and multi-user collaboration. It unifies specialized agents, tools, memory, scheduling, and delegation into a governable working context.
Main Capabilities The platform supports self-hosting: deployed via Docker, running on your own infrastructure. It supports multiple providers: choose Claude, GPT, Grok, Gemini, Ollama, or any OpenAI-compatible model, avoiding lock-in. It supports multiple users: providing role-based access control, teams, and projects, designed for organizations. It natively supports MCP (Model Context Protocol), allowing agents to connect to any external tools. It provides Skills: encapsulating knowledge and workflows into reusable modules, defined once and usable from any agent, based on the open Agent Skills standard, with a built-in skill-creator that can create and test new skills directly in chat. Scheduled automation: set up one-time or recurring tasks through a form or directly in chat. Workflow engine: visually automate pipelines and build complex agent logic without code. Long-term memory: built-in pgvector-based RAG, isolated by user and namespace, with memory entries archived by type as episodic memory, semantic memory, procedural memory, working memory, and document memory, making memory governable rather than merely retrievable. Inter-agent collaboration: agents can communicate directly, and complex tasks are split and coordinated. The default installation comes with two agents: Ontheia Guide to guide setup, and Personal Assistant ready to work.
Other Features The platform supports visibility into reasoning models: compatible with the OpenAI Responses API and Anthropic extended thinking, reasoning effort can be configured per model, the thinking process is retained across multiple tool iterations and displayed in the Reasoning tab of the tracing panel. Mermaid diagrams can be generated and rendered in real time in chat, supporting more than 12 types such as flowcharts, sequence diagrams, class diagrams, ER diagrams, Gantt charts, state diagrams, and mind maps, without requiring a rendering server. Files are presented as artifacts: When agents read and write files, a card appears, allowing one-click opening in the side panel for editing/preview, with conflict-safe saving and built-in PDF and image viewers; every code block in an answer comes with editing capability, allowing modification and saving as a file, reducing token consumption. Secure file handling: the built-in files skill lets agents search, read, write, edit, and move files; writes do not overwrite (recoverable recycle bin), edits require exact matches, and concurrent changes are captured via content hashing, with no configuration required. Governance and control: self-hosted and GDPR-compliant by design, data never leaves the server; role-based access control is implemented via PostgreSQL row-level security; you can decide per agent which models can access which data. In multi-user environments, per-user file access is enforced server-side, so one user's agent cannot access another user's files. Chat history, memory, skills, workflows, scheduling, and tool connections all remain within your own infrastructure; only model inference calls cross the boundary, and you choose the provider.
How to use Chatting requires at least one AI provider's API key (such as Anthropic, OpenAI, or local Ollama). Memory/RAG features also require a provider that supports embeddings. The recommended one-click bootstrap installation command downloads Ontheia to ~/ontheia and runs the installer, handling .env creation, key generation, Docker build, database migration, and guiding the first admin account; after installation, visit http://localhost:5173。若想先检查脚本,可从仓库克隆并运行。更新脚本 scripts/update.sh pulls the latest version, rebuilds containers, applies database migrations, and restarts the stack, while data, configuration, and .env remain unchanged. Removing the entire stack (containers, volumes, images, and installation directory) does not touch ~/.claude, ~/.gemini, or the NVM directory; --keep-data stops the stack but preserves volumes and configuration. The full installation guide is at docs.ontheia.ai/en/getting-started/02_installation, and the full documentation is at docs.ontheia.ai. The platform provides a REST API; the entire feature set is exposed through a documented REST API authenticated with Bearer tokens, so scripts and custom clients can obtain the same capabilities as the WebUI.
Tech stack Backend is Node.js / TypeScript (Fastify); frontend is React, shadcn/ui, Tailwind CSS; database is PostgreSQL with the pgvector extension; containerization uses Docker, Docker Compose (rootless); AI protocols support the Anthropic Messages API, OpenAI-compatible API, and MCP; the REST API covers chat, runs, agents, skills, memory, chains, automation, artifacts, and administration.
Licensing and limitations Ontheia uses dual licensing: the open-source portion is GNU AGPL-3.0, free for personal use, self-hosted deployments, and open-source projects; commercial licensing is aimed at organizations that need to use Ontheia without assuming AGPL obligations (such as using it as part of a proprietary product or hosted service), and inquiries can be made via ontheia.ai. The platform must be self-hosted, and you must prepare your own infrastructure and API keys. The roadmap is in ROADMAP.md; community feedback is welcome via issues or discussions, and contributors should read CONTRIBUTING.md first.