SuperAPIAI Directory

openhermit

github.com · AI developer platforms

OpenHermit is an open-source AI agent deployment platform built by Amiko, used to run large numbers of AI agents as production-grade services. Its core design separates internal state from external state: internal state such as sessions, memory, instructions, skills, MCP servers, scheduled tasks, secrets, and users is stored centrally in a shared PostgreSQL and isolated by agent_id scope; external state such as the workspace files an agent is currently working on is placed in each agent's independent sandbox, with optional backends such as self-hosted Docker, E2B, Daytona, or Tenki. The platform provides a control plane through a single Hono gateway server; agents can be started, attached, and detached at any time, and it includes a built-in /admin/ management interface. It has built-in Telegram, Discord, and Slack channel adapters, as well as Signal, WeChat, and WhatsApp adapters installable via packages, plus a CLI and Web UI, supporting runtime enablement, disabling, and reconfiguration. Skills and MCP servers can be centrally installed and enabled per agent or across the entire fleet. It also provides cron and one-off scheduled tasks with timeouts, concurrency policies, and error backoff, multi-user roles (owner / user / guest), multi-protocol transport (HTTP synchronous, inline SSE, persistent SSE, WebSocket RPC), and a deep research feature that cites server-verified evidence. The project uses the MIT license and is still under continuous development.

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

About this tool

OpenHermit is an open-source agent infrastructure platform from Amiko, with the goal of deploying and operating a set of AI agents as production services, rather than being limited to single-user, single-machine file-based use.

[Core design] OpenHermit makes a key design choice: separating internal state from external state. Internal state includes sessions, memory, instructions, skills, MCP servers, scheduled tasks, secrets, users, and more, all stored centrally in a shared PostgreSQL and scoped by agent_id. External state refers to the workspace files the agent is currently working on, stored in each agent's own sandbox. The sandbox backend can be a self-hosted Docker container, or cloud sandbox providers such as E2B and Daytona, and provides a consistent exec interface across backends. Once internal state is centralized, fleet-level operations become simple, solving the problems of scattered files, secret leakage, and reliance on SSH for fleet operations.

[Main capabilities]

  • Gateway control plane: a single Hono server. Agents can start, attach, and detach without orchestration, and the management interface is located at /admin/.
  • Postgres-backed state: sessions, memory, instructions, skills, MCP, scheduled tasks, secrets, and more are persisted through Drizzle.
  • Sandboxed execution: one sandbox per agent, supporting self-hosted Docker, E2B, Daytona, or Tenki; code runs isolated from the gateway, and all backends use the same exec interface.
  • Built-in channels: Telegram, Discord, and Slack adapters, plus package-installable Signal, WeChat, and WhatsApp, along with a CLI and Web UI, supporting runtime enablement, disabling, and reconfiguration.
  • Skills and MCP servers: centrally installed, can be enabled per individual agent or across the entire fleet, and audited in one place.
  • Scheduled tasks and automation: cron and one-off tasks, supporting timeouts, concurrency policies, and error backoff.
  • Multi-user and roles: owner / user / guest, with unified identity across the CLI, Web, and various channels.
  • Multi-protocol transport: HTTP synchronous, inline SSE streaming, persistent SSE, WebSocket RPC.
  • Deep research: research runs bound to persistent sessions. An LLM drafts a plan for you to review and approve, followed by a bounded search/read/extract loop within a hard budget, and each finding in the final reportAll evidence excerpts cited are now server-verified; runs can be paused, adjusted, and resumed, and survive restarts. A Web provider must be configured (Tavily or Exa recommended; the default Defuddle provider works but scrapes Google results). Current limitations: only HTML/text sources are supported (PDFs are reported as unsupported), only Web sources (uploads and MCP are not yet supported), and manual recovery is required after an unclean restart. Note: research runs are model-intensive.

[Usage] The install command installs both hermit and openhermit. During local development, the gateway listens by default on http://127.0.0.1:4000 and provides an admin UI at /admin/; the end-user web app runs on http://127.0.0.1:4310。 Agent-facing commands accept --agent <id>, defaulting to OPENHERMIT_AGENT_ID or main; see docs/cli.md for the full reference. Agent execution routes live under /api/agents/{agentId}, including: POST /api/agents/{id}/sessions GET /api/agents/{id}/sessions POST /api/agents/{id}/sessions/{sessionId}/messages POST /api/agents/{id}/sessions/{sessionId}/messages?wait=true POST /api/agents/{id}/sessions/{sessionId}/messages?stream=true GET /api/agents/{id}/sessions/{sessionId}/events POST /api/agents/{id}/sessions/{sessionId}/approve POST /api/agents/{id}/sessions/{sessionId}/checkpoint DELETE /api/agents/{id}/sessions/{sessionId} ws://host/api/agents/{id}/ws Admin and owner-side endpoints live under /api/admin/... and /api/agents/{agentId}/.... Channel webhooks land at POST /api/agents/{id}/channels/{namespace}/webhook. See docs/transport-protocol.md, docs/skills.md, docs/mcp-servers.md, and docs/channel-adapter.md.

[Architecture and Storage] Persistent internal state is scoped by agent_id where applicable. Secrets and channel-held credentials are encrypted using OPENHERMIT_SECRETS_KEY (AES-256-GCM); without that key the gateway falls back to per-agentsecrets.json (for local development only), but database-backed channel credentials are unavailable. The only per-agent file on disk is the workspace ~/.openhermit/workspaces/{agentId}/; enabled skills are synced to each backend's own <agent_home>/.openhermit/skills/system/ (docker uses a bind mount, e2b/daytona upload via the SDK).

[Attachment Storage] The gateway supports three storage providers, selected in the gateway configuration (database-backed, edited via the JSON tab at /admin/config, or initialized from gateway.json on first startup). Credentials go in environment variables rather than the configuration; only secrets go in environment variables, while non-secret pointers (provider, bucket, region, prefix, endpoint, root) go in the gateway configuration. By default no configuration block is needed; the path is ~/.openhermit/attachments, and the root path can be overridden under attachments.storage. S3 requires npm install @aws-sdk/client-s3 @aws-sdk/s3-request-presigner on the gateway, with credentials from the AWS default chain. Supabase requires npm install @supabase/supabase-js and setting SUPABASE_URL and the Supabase secret API key (sb_secret_…) in environment variables as SUPABASE_SERVICE_ROLE_KEY (or OPENHERMIT_ATTACHMENT_SUPABASE_SECRET_KEY). The optional attachments.limits.maxBytes overrides the default 25 MB limit. Every successful upload is materialized into the sandbox; if the sandbox is unavailable, the row is marked as failed and re-materialized by attachment_fetch on first read.

[Cost and Model Selection for Deep Research] A research session is a pipeline of multiple model calls: a planner, a per-round action decision, and one evidence extraction per source read (this is the major cost, carrying up to a 200 KB page snapshot each time, roughly 50k input tokens), and comprehensive. The budget is a hard cap for each depth; typical runs come in well below the cap, but you should plan for the worst case. Free model quotas are usually not enough; the real constraint is the per-minute/per-day token quota rather than the level of intelligence, and a single extraction can reach 50k input tokens, which will blow through the free tier of, for example, Google AI Studio. It is recommended to use a paid key, or a funded OpenRouter account ($5 can cover multiple standard runs). The model needs to have: standardized JSON output, a 64k+ token context window, and model.max_tokens of at least about 16k. As for local models, any OpenAI-compatible local server (Ollama, LM Studio, llama.cpp --server, vLLM) can be connected through a custom endpoint; 27B+ models are more feasible, while 7–8B models often fail validation even with built-in fixes; a 64k+ context must be configured; local runs may take over an hour. Web search is not affected, and it can be paired with Tavily's free tier to achieve a fully subscription-free setup.

[Use cases] Suitable for running an internal agent platform for a team, SaaS that assigns an independent agent to each customer, or a cluster of agents with a set of specialized roles. The project uses the MIT open source license and is still under active development; participation through issues, discussions, PRs, and other means is welcome.

[Not yet provided] Specific pricing, billing models, performance benchmarks, and similar materials are not provided.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools