Mininglamp-OSS/octo-server

โ–ฒ 88 stars todayโ˜… 1,017โ‘‚ 165

๐Ÿ™ The Go backend powering OCTO โ€” an open workplace built for humans ร— AI agents. REST & WebSocket APIs, Lobster (AI agent) orchestration, and WuKongIM real-time messaging control plane.

1,017Star
165Fork
107Watch
34Issue
GoLanguage
Apache-2.0License
Created 2026-05-11 ยท last push 2026-09-13 ยท repository size 387379 KB ยท default branch main

README

https://github.com/Mininglamp-OSS/octo-server/blob/HEAD/OCTO https://github.com/Mininglamp-OSS/octo-server/blob/HEAD/OCTO

OCTO โ€” the open workplace built for humans ร— AI agents.
Let Lobsters (OpenClaw-powered digital doubles) do the thinking and doing. You focus on taste.

๐Ÿ  OCTO Home ยท ๐Ÿš€ Quickstart ยท ๐Ÿ“ฆ Ecosystem ยท ๐Ÿค Contributing

https://github.com/Mininglamp-OSS/octo-server/blob/HEAD/License https://github.com/Mininglamp-OSS/octo-server/blob/HEAD/็ฎ€ไฝ“ไธญๆ–‡

---

๐ŸŒ Read in: English ยท ็ฎ€ไฝ“ไธญๆ–‡

OCTO Server

The Go backend at the centre of OCTO โ€” REST + WebSocket APIs, Lobster agent orchestration, and the control plane for WuKongIM.

octo-server is the heart of the OCTO platform. It exposes REST + WebSocket APIs consumed by octo-web and octo-admin, orchestrates business logic and Lobster (AI agent) scheduling, and drives the WuKongIM IM core for real-time messaging.

๐ŸŒŸ Why OCTO Server

๐Ÿš€ Quickstart

git clone https://github.com/Mininglamp-OSS/octo-server.git
cd octo-server
go build -o octo-server .
./octo-server --config ./configs/tsdd.yaml

The default dev config expects a local WuKongIM instance and a MySQL-compatible database. See the bundled configs/tsdd.yaml template for the standalone-binary path, QUICKSTART.md for an end-to-end walkthrough, and BUILDING.md for cross-repo build notes.

For a one-command Docker Compose stack (server + admin + web + matter + smart-summary + WuKongIM + MySQL + Redis + MinIO + nginx), use the official OOTB deployment at Mininglamp-OSS/octo-deployment. The older docker/octo/ and docker/tsdd/ compose stacks that used to live in this repo have been retired in favour of that single source of truth.

๐Ÿ“ฆ Modules / Architecture

High-level layout:

| Path | Purpose | |---|---| | cmd/ | Service entry points (octo-server, subcommands) | | internal/api/ | REST + WebSocket handlers โ€” conversation, user, group, file, org, webhook | | internal/service/ | Business logic โ€” access control, Lobster orchestration, IM fan-out | | internal/repository/ | SQL + cache repositories (MySQL, Redis) | | internal/im/ | Control-plane client for WuKongIM (channel / message / presence) | | internal/agent/ | Lobster routing, session store, tool-call execution | | internal/adapter/ | Adapter registration + dispatch surfaces | | configs/ | YAML config schema + dev / prod examples | | migrations/ | SQL schema migrations | | docs/ | Architecture notes, API reference, diagrams |

What the server does each request:

1. Authenticate โ€” token / cookie / DH-sealed WebSocket frame. 2. Authorise โ€” org-aware RBAC, per-channel ACL, agent-identity gating. 3. Execute โ€” run business logic, possibly spawning / resuming a Lobster agent session. 4. Fan out โ€” enqueue IM message via WuKongIM, trigger adapters if the channel requires an external bridge. 5. Respond โ€” unified JSON envelope (or WebSocket frame) with tracing + metrics tags.

๐Ÿ”— OCTO Ecosystem

graph TD
  subgraph Clients[Clients]
    Web[octo-web
Web / PC] Android[octo-android
Android] iOS[octo-ios
iOS] end

subgraph Core[Core Services] Server[octo-server
Backend API] Matter[octo-matter
Task / Todo] Summary[octo-smart-summary
AI Summary] Admin[octo-admin
Admin Console] end

subgraph Shared[Shared Libraries & Integrations] Lib[octo-lib
Core Go Library] Adapters[octo-adapters
Third-party Adapters] end

Web --> Server Android --> Server iOS --> Server Admin --> Server Server --> Matter Server --> Summary Server --> Adapters Server -.uses.-> Lib Matter -.uses.-> Lib Adapters -.uses.-> Lib

| Repository | Language | Role | |---|---|---| | octo-server | Go | Backend API ยท business orchestration ยท Lobster agent scheduling | | octo-matter | Go | Task / Todo / Matter micro-service | | octo-smart-summary | Go | LLM-powered conversation summarisation | | octo-web | TypeScript / React | Web & PC (Electron) client | | octo-android | Kotlin / Java | Native Android client | | octo-ios | Swift / Objective-C | Native iOS client | | octo-admin | TypeScript / React | Admin console (tenant / org / user / channel management) | | octo-lib | Go | Shared core library (protocol, crypto, storage, HTTP) | | octo-adapters | TypeScript / Python | Third-party integrations (IM bridges, AI channels) |

๐Ÿงญ Philosophy

OCTO ships under three shared principles that apply to every repository in this matrix:

1. Local-first. Anything that can run on the user's own box โ€” chats, embeddings, agents โ€” should. Your data stays yours; cloud is a choice, not a requirement. 2. Humans judge, AI thinks and acts. Humans focus on taste (what matters, what's right, what to ship). Lobster agents โ€” OpenClaw-powered digital doubles โ€” carry the thinking and execution load. 3. Release-as-product. Every open-source cut is shipped as a self-contained product, not a code dump: one squash per release, Apache 2.0, no internal baggage, reproducible from this repo alone.

๐Ÿค Contributing

We love pull requests! Before you open one, please read:

For security issues please follow SECURITY.md instead of the public tracker.

๐Ÿ“„ License

Apache License 2.0 โ€” see LICENSE for the full text and NOTICE for third-party attributions.

๐Ÿ™ Acknowledgments

octo-server is a derivative work of:

See NOTICE for the exhaustive Go module license inventory and third-party attribution block.

---

Made with ๐Ÿ™ by OCTO Contributors ยท Mininglamp-OSS

More Today's Trending projects

1

alibaba / open-code-review

Goโ˜… 28,122โ‘‚ 2,023โ–ฒ 2,751 stars
โ†’
2

debpalash / VoiceStudio

Pythonโ˜… 30,697โ‘‚ 3,683โ–ฒ 2,081 stars
โ†’
3

JustVugg / colibri

Cโ˜… 33,539โ‘‚ 3,522โ–ฒ 2,035 stars
โ†’
4

tt-a1i / archify

JavaScriptโ˜… 63,354โ‘‚ 4,208โ–ฒ 1,407 stars
โ†’
5

cloudflare / security-audit-skill

JavaScriptโ˜… 4,982โ‘‚ 310โ–ฒ 1,210 stars
โ†’
6

Panniantong / Agent-Reach

Pythonโ˜… 81,982โ‘‚ 7,140โ–ฒ 1,094 stars
โ†’