# 心潮动态心智系统

> 心潮 is a self-hosted, open-source AI dynamic mind state engine with drives, thoughts, fatigue, sleep, and short-term context. HTTP API and remote MCP with OAuth 2.1.

- **Category:** AI Agents
- **Licence:** AGPL-3.0
- **Latest version:** v2.6.0
- **Open source:** oss
- **Languages:** JavaScript
- **Platforms:** Docker Compose, Node.js
- **Tags:** Mcp, OAuth, Node.js, Self Hosted, Ai Agent, Openai compatible, State Machine, Dynamic Mind, Memory MCP, Bark Notifications

## Description

心潮 (Xinchao) is a self-hosted AI dynamic mind state engine designed to run as a persistent state layer outside of conversations. It continuously tracks 12-dimensional drives, a thought pool with flash thoughts and obsessions, fatigue and sleep cycles with dream residue, and short-term window state. The engine exposes a Bearer-token HTTP API and a remote Streamable HTTP MCP endpoint with OAuth 2.1 + PKCE for integration with AI agents like Claude, Codex, custom web frontends, and mobile apps. Optional adapters include OpenAI-compatible models for autonomous dreaming, Ombre-compatible long-term memory MCP, and Bark push notifications. The system is written in Node.js 20+ and can be run via Docker Compose (with read-only container, dropped capabilities, and resource limits) or directly with npm. All sensitive tokens (SERVICE_TOKEN, MCP_PATH_TOKEN, OAUTH_APPROVAL_TOKEN) must be independently generated. The dashboard provides a read-only visual snapshot with HttpOnly session cookies, and a browser-direct mode allows same-machine frontend access without a public HTTPS endpoint. The project is licensed under AGPL-3.0.

## Links

- [Homepage](https://github.com/tianyupaipai-cmd/xinchao-dynamic-mind)
- [GitHub Repository](https://github.com/tianyupaipai-cmd/xinchao-dynamic-mind)
- [Dashboard Integration Guide](https://github.com/tianyupaipai-cmd/xinchao-dynamic-mind/blob/main/docs/DASHBOARD-INTEGRATION.md)
- [Multi-tenant Platform Design](https://github.com/tianyupaipai-cmd/xinchao-dynamic-mind/blob/main/docs/MULTI-TENANT-PLATFORM.md)
- [Security Policy](https://github.com/tianyupaipai-cmd/xinchao-dynamic-mind/blob/main/SECURITY.md)
- [Changelog](https://github.com/tianyupaipai-cmd/xinchao-dynamic-mind/blob/main/CHANGELOG.md)

---
Source: https://selfhost.directory/project/xinchao-dynamic-mind