# Repository Briefing: ahmadrosid/nakama
> Source: https://repoforai.com/repo/ahmadrosid/nakama (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/ahmadrosid/nakama
- **Official Docs / Website**: https://ahmadrosid.github.io/nakama
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (94/100 · Maintenance 35/35 · Adoption 19/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.4.77 (2026-11-29) — https://github.com/ahmadrosid/nakama/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted
- **Momentum**: 873 ★ total (+0 24h / +7 7d) · 152 forks
- **Topics**: `agents`, `ai`, `ai-agents`, `automation`, `openai`
- **When to Use**: Best for: Teams that need a shared agent workspace with organization-level isolation, messaging integrations, and a server they can operate themselves. Skip if: You only need a single-user local agent, require fully offline inference out of the box, or need a published Windows desktop installer.

## Overview
```text
### Architecture & Core Mechanics
Nakama is a TypeScript monorepo built around one shared agent runtime. The web, CLI, and desktop apps are thin clients; `@nakama/client` uses HTTP and SSE. In `apps/server`, Hono handles rate limiting, authentication, organization context, and routing; `AgentService` sits behind that request layer. Messaging integrations front the same platform through separate channel workers.

The organization is the main isolation boundary: profiles, sessions, tools, MCP, skills, automations, attachments, and usage are organization-scoped unless designated platform-level. Agents have their own prompt files, tools, skills, memory, identity, and permissions. Those agent-level settings support different jobs within an organization, but should not be treated as a separate infrastructure boundary.

### Key Capabilities & Differentiators
Teams can select an agent in the dashboard, start a chat, and share agents, skills, and automations without running separate server instances for each client. Invitations and roles support shared administration. Telegram, WhatsApp, Discord, and Slack are documented integrations, alongside Composio for external apps. The architecture also lists a Teams worker, but that alone does not establish the same setup or support level as the named integrations.

On an unconfigured first run, the server asks for a model provider and API key; no complete provider or local inference matrix is established. Version 0.4.77 adds MiniMax Hailuo video generation and lets a Telegram bot answer for an Agent Group. It also adds a hash-chained audit ledger with organization filtering and export. The chain links audit events; it is not a substitute for independent retention or access controls.

### Trade-offs & Limitations
Against OpenClaw or Hermes Agent, Nakama’s clearest reason to adopt is team administration: multiple organizations, invitations, roles, and reusable agents on one server. If one operator on one machine is the whole use case, those controls may not justify a shared service. For team use, centralizing administration reduces per-client setup but also makes the server a shared availability dependency.

Self-hosting gives operators control of the Nakama service, not necessarily of model inference or third-party data handling. Review organization and platform-level permissions before connecting shared tools or channels, and verify provider requirements before adopting it for a disconnected environment. The MIT license permits commercial self-hosting, but does not cover external provider terms. Desktop users also have an extra prerequisite if they rely on Claude Code or Codex: since v0.4.76 those CLIs are installed separately.

### Hardware & Deployment Guide
For server self-hosting, use the published GHCR image with Compose. Set `NAKAMA_VERSION` explicitly because the image tag otherwise defaults to `latest`. The service binds `127.0.0.1:4310`, so put an HTTPS reverse proxy in front for remote access. Data lives under `/nakama/data`; keep `/nakama/backups` outside the data volume for the daily encrypted exports. Store a separate copy of `NAKAMA_SECRETS_KEY`: backups do not contain it, and settings secrets need it. The Settings update button can hand off requests through `/nakama/updates` when the updater is enabled.

For local development, Bun runs `bun install` and `bun run dev:web`; the dashboard opens on port 3003. The bare-host PM2 route additionally requires Node.js 22.12 or later. Managed hosting avoids provisioning Docker, Bun, or a VPS. The standalone server’s sizing starts at 1 vCPU and 1 GB RAM, with about 200 MB idle memory; do not extrapolate that to channel workers or concurrent workloads. Desktop is a separate distribution path: the published installer targets macOS 15+ on Apple Silicon, with no published Windows installer.
```

## Key Capabilities
```text
- Runtime: Web, CLI, and desktop clients share a Hono server through an HTTP/SSE client package.
- Isolation: Organizations scope sessions, tools, MCP, skills, automations, attachments, and usage by default; platform-level resources are exceptions.
- Integrations: Composio extends app connectivity, and v0.4.77 lets a Telegram bot answer for an Agent Group.
- Audit: v0.4.77 adds hash-chained events with organization filtering and export.
- Operations: Compose exposes port 4310 on loopback, supports release pinning, and keeps the newest seven daily encrypted exports outside the data volume.
- Desktop: The published installer targets macOS 15+ on Apple Silicon; v0.4.76 stops bundling Claude Code and Codex CLIs.
```

## Quick Start / Clone
```bash
# Install dependencies
bun install

# Start the web (starts the server automatically if needed)
bun run dev:web
```
