{"id":45216206,"url":"https://github.com/hrygo/hotplex","last_synced_at":"2026-05-15T03:02:50.927Z","repository":{"id":348129425,"uuid":"1196122681","full_name":"hrygo/hotplex","owner":"hrygo","description":"HotPlex — Unified access layer for AI Coding Agent.","archived":false,"fork":false,"pushed_at":"2026-05-02T03:03:22.000Z","size":47538,"stargazers_count":2,"open_issues_count":5,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-02T03:26:22.407Z","etag":null,"topics":["aep","ai-agent","claude-code","feishu","gateway","go","openclaw","opencode","slack","websocket"],"latest_commit_sha":null,"homepage":"https://github.com/hrygo/hotplex","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hrygo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-30T11:50:22.000Z","updated_at":"2026-05-02T03:15:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hrygo/hotplex","commit_stats":null,"previous_names":["hrygo/hotplex-worker","hrygo/hotplex"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hrygo/hotplex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrygo%2Fhotplex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrygo%2Fhotplex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrygo%2Fhotplex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrygo%2Fhotplex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrygo","download_url":"https://codeload.github.com/hrygo/hotplex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrygo%2Fhotplex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32555839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T00:31:16.350Z","status":"online","status_checked_at":"2026-05-03T02:00:09.297Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aep","ai-agent","claude-code","feishu","gateway","go","openclaw","opencode","slack","websocket"],"created_at":"2026-02-20T17:08:49.925Z","updated_at":"2026-05-10T10:56:52.070Z","avatar_url":"https://github.com/hrygo.png","language":"Go","funding_links":[],"categories":["Artificial Intelligence"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eHotPlex Gateway\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eThe Unified Bridge for AI Coding Agents\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  A high-performance Go gateway providing a single WebSocket interface\u003cbr\u003e\n  to access any AI Coding Agent across Web, Slack, and Feishu.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"README_zh.md\"\u003e简体中文\u003c/a\u003e | \u003cstrong\u003eEnglish\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/hrygo/hotplex/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/hrygo/hotplex/actions/workflows/ci.yml/badge.svg\" alt=\"CI\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Version-v1.10.1-10B981?style=flat-square\" alt=\"Version\"\u003e\n  \u003ca href=\"https://github.com/hrygo/hotplex/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-Apache%202.0-3B82F6?style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Go-1.26+-00ADD8?style=flat-square\u0026logo=go\" alt=\"Go\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Protocol-AEP%20v1-7C3AED?style=flat-square\" alt=\"AEP v1\"\u003e\n  \u003ca href=\"https://github.com/hrygo/hotplex/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/hrygo/hotplex?style=flat-square\" alt=\"Stars\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## ✨ Core Capabilities\n\n- 🌐 **Universal Agent Gateway** — Abstract any AI Coding Agent protocol into a unified AEP v1 (Agent Exchange Protocol) WebSocket interface for consistent streaming and interaction.\n- 📱 **Cross-Platform Delivery** — **\"Write Once, Deploy Anywhere\"**. Bridge agents to Web, Slack (Socket Mode), and Feishu (WebSocket) with zero code changes.\n- 🛠️ **Multi-Modal Interaction** — Native Speech-to-Text (SenseVoice) and **Edge-TTS Voice Reply** support for a complete voice-in, voice-out development workflow.\n- 🤖 **Deep Personality Injection** — Dynamic **B/C dual-channel** injection: **B-channel** (SOUL/AGENTS/SKILLS) for directives and **C-channel** (USER/MEMORY) for context.\n- 🧠 **Brain Orchestration Core** — New `internal/brain` layer for LLM-based summarization, intent routing, and safety guarding, decoupling complex AI logic.\n- 🛡️ **Meta-Cognition Hardening** — Constitutional **META-COGNITION** promoted to the top of B-channel with built-in **XML Sanitizer** to block prompt injection.\n- 🌐 **Embedded Web Chat** — A single binary serves both the API/WebSocket gateway and a premium Next.js-based web chat interface out of the box.\n- 🛡️ **Enterprise-Grade Security** — JWT ES256 authentication, SSRF protection, and **Windows File-Based Injection** to bypass cmd.exe escaping traps.\n- 📊 **End-to-End Observability** — Native Prometheus metrics, OpenTelemetry tracing, and structured JSON logging for full auditability.\n- ⏰ **AI-Native Cron Scheduler** — Agents autonomously create scheduled tasks from natural language (e.g., \"remind me in 30 minutes\"), with lifecycle management (`max_runs`, `expires_at`), automatic result delivery, and embedded skill manual.\n- 🛠️ **Self-contained CLI** — `gateway`, `service`, `slack`, `cron`, `update`, `config`, `dev`, `onboard`, `doctor`, `security`, `status` in a single binary\n- 🌍 **Multi-language SDKs** — Go, TypeScript, Python, Java clients ready to use\n\n## ⚡ Quick Start\n\n\u003e **AI Agents:** Read https://github.com/hrygo/hotplex/blob/main/INSTALL.md and complete the HotPlex installation and configuration\n\n### Install\n\n**macOS / Linux (one-click binary):**\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/hrygo/hotplex/main/scripts/install.sh | bash -s -- --latest\n```\n\n**Windows (PowerShell 5.1+):**\n\n```powershell\nInvoke-WebRequest -Uri https://raw.githubusercontent.com/hrygo/hotplex/main/scripts/install.ps1 -OutFile install.ps1\n.\\install.ps1 -Latest\n```\n\n**From source (requires Go 1.26+, pnpm, Node.js 22+):**\n\n```bash\ngit clone https://github.com/hrygo/hotplex.git\ncd hotplex\nmake quickstart\n```\n\n\u003e **Tip (Claude Code):** After cloning, use `/hotplex-setup` for interactive environment setup and `.env` configuration.\n\n**Docker (Experimental):**\n\n```bash\ncp configs/env.example .env  # edit with your API keys\ndocker compose up -d\n```\n\n### Configure\n\n```bash\n# Interactive setup wizard\nhotplex onboard\n\n# Or auto-generate all configs:\nhotplex onboard --non-interactive --enable-slack --enable-feishu\n```\n\n### Run\n\n```bash\n# Development mode (foreground)\nmake dev\n\n# Production mode (background daemon)\nhotplex gateway start -d\n\n# Stop / restart\nhotplex gateway stop\nhotplex gateway restart -d\n```\n\n### Install as System Service\n\n```bash\nhotplex service install              # user-level (no root)\nsudo hotplex service install --level system  # system-wide\nhotplex service start\nhotplex service status\nhotplex service logs -f\n\n# Uninstall\nhotplex service uninstall\n```\n\nSupports **systemd** (Linux), **launchd** (macOS), and **Windows SCM**.\n\n### Services\n\n| Service             | Address                  | Note                                   |\n| :------------------ | :----------------------- | :------------------------------------- |\n| Gateway (WebSocket) | `ws://localhost:8888/ws` | Main protocol endpoint                 |\n| Admin API           | `http://localhost:9999`  | Management \u0026 Statistics                |\n| Web Chat UI         | `http://localhost:8888`  | **Embedded SPA** (served from Gateway) |\n| Dev Web Chat        | `http://localhost:3000`  | Next.js Dev Server (`make dev`)        |\n\n## 🏗️ Architecture\n\nHotPlex sits between frontend clients and backend AI coding agents, featuring a built-in **Meta-Cognition Core** that abstracts protocol differences into a unified **AEP v1** WebSocket layer.\n\n```\n┌──────────┐   ┌──────────┐   ┌──────────┐\n│  Web UI  │   │  Slack   │   │  Feishu  │\n└────┬─────┘   └────┬─────┘   └────┬─────┘\n     │              │              │\n     └──────────────┼──────────────┘\n                    │\n              ┌─────┴─────┐\n              │  HotPlex  │\n              │  Gateway  │\n              └─────┬─────┘\n                    │\n         ┌──────────┴──────────┐\n         │                     │\n   ┌─────┴─────┐          ┌────┴──────┐\n   │  Claude   │          │  OpenCode │\n   │  Code     │          │  Server   │\n   └───────────┘          └───────────┘\n```\n\n## 🔗 SDKs \u0026 Libraries\n\n|    Language    | Path                                                         | Features                                              |\n| :------------: | :----------------------------------------------------------- | :---------------------------------------------------- |\n|     **Go**     | [`client/`](client/)                                         | Full-featured, channel-based events, production-grade |\n| **TypeScript** | [`examples/typescript-client/`](examples/typescript-client/) | Streaming, multi-turn chat, React compatible          |\n|   **Python**   | [`examples/python-client/`](examples/python-client/)         | Asyncio, session resume, CLI ready                    |\n|    **Java**    | [`examples/java-client/`](examples/java-client/)             | Enterprise AEP v1 implementation                      |\n\n### Connect with Go SDK\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n    client \"github.com/hrygo/hotplex/client\"\n)\n\nfunc main() {\n    c, err := client.New(context.Background(),\n        client.URL(\"ws://localhost:8888/ws\"),\n        client.WorkerType(\"claude_code\"),\n        client.APIKey(\"\u003cyour-api-key\u003e\"),\n    )\n    if err != nil {\n        panic(err)\n    }\n    defer c.Close()\n\n    c.SendInput(context.Background(), \"Explain HotPlex architecture\")\n\n    for env := range c.Events() {\n        if data, ok := env.AsMessageDeltaData(); ok {\n            fmt.Print(data.Content)\n        }\n    }\n}\n```\n\n## 🛠️ Configuration\n\n| Key                         | Default                      | Description                                    |\n| :-------------------------- | :--------------------------- | :--------------------------------------------- |\n| `agent_config.enabled`      | `true`                       | Enable agent personality/context injection     |\n| `tts.enabled`               | `true`                       | Enable Edge-TTS voice reply (voice-in → voice-out) |\n| `brain.enabled`             | `false`                      | Enable Brain LLM orchestration (requires key)  |\n| `webchat.enabled`           | `true`                       | Serve embedded webchat SPA from gateway        |\n| `worker.auto_retry.enabled` | `true`                       | Intelligent LLM retry with exponential backoff |\n| `gateway.addr`              | `localhost:8888`             | WebSocket gateway address                      |\n| `admin.addr`                | `localhost:9999`             | Admin API address                              |\n| `db.path`                   | `~/.hotplex/data/hotplex.db` | SQLite database path                           |\n| `log.level`                 | `info`                       | Log level: debug, info, warn, error            |\n\n\u003e [!TIP]\n\u003e See [Config Reference](docs/management/Config-Reference.md) for the full list of environment variables and YAML settings.\n\n## 📖 Documentation\n\n| Area                | Guide                                                                                                                                                                                            |\n| :------------------ | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| **Getting Started** | [Quick Start](docs/User-Manual.md) · [Reference Manual](docs/Reference-Manual.md) · [Whitepaper](docs/Product-Whitepaper.md)                                                                     |\n| **Protocol**        | [AEP v1 Specification](docs/architecture/AEP-v1-Protocol.md)                                                                                                                                     |\n| **Architecture**    | [Gateway Design](docs/architecture/Worker-Gateway-Design.md) · [Agent Config Design](docs/architecture/Agent-Config-Design.md) · [Meta-Cognition Design](internal/agentconfig/META-COGNITION.md) |\n| **Security**        | [Authentication](docs/security/Security-Authentication.md) · [SSRF Protection](docs/security/SSRF-Protection.md)                                                                                 |\n| **Operations**      | [Admin API](docs/management/Admin-API-Design.md) · [Observability](docs/management/Observability-Design.md) · [Testing](docs/testing/Testing-Strategy.md)                                        |\n\n## 👥 Contributing\n\nWe welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feat/AmazingFeature`)\n3. Commit with conventional messages (`git commit -m 'feat: add AmazingFeature'`)\n4. Push to the branch (`git push origin feat/AmazingFeature`)\n5. Open a Pull Request\n\n\u003e [!NOTE]\n\u003e All build/test/lint operations must use `make` targets. See `make help` for the full list.\n\n## 🛡️ Security\n\nIf you discover a security vulnerability, please do NOT open a public issue. Report it via [SECURITY.md](SECURITY.md) or contact maintainers directly.\n\n## 📜 License\n\nDistributed under the [Apache License 2.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrygo%2Fhotplex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrygo%2Fhotplex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrygo%2Fhotplex/lists"}