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

- **GitHub URL**: https://github.com/kody-hq/kody
- **Official Docs / Website**: https://kody.codes
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: See repository
- **Engineering Health**: A (77/100 · Maintenance 35/35 · Adoption 16/25 · Releases 20/20 · License 6/20)
- **Latest Release**: v2026.12.03 (2026-12-03) — https://github.com/kody-hq/kody/releases
- **Review Snapshot**: 2026-12-03 (Note: v2026.12.03 on 2026-12-03 shipped after this review; verify latest release notes)
- **Deployment / Stack Signals**: MCP, API
- **Momentum**: 1,043 ★ total (+12 24h / +39 7d) · 100 forks
- **Topics**: `agents`, `ai-assistant`, `cloudflare-workers`, `code-mode`, `mcp`, `personal-assistant`
- **When to Use**: Best for: Teams using multiple compatible MCP hosts that need persistent memory, governed credentials, reviewable packages, and scheduled execution, and can operate a Cloudflare Workers deployment. Skip if: You only need a small static MCP toolset, want an agent harness with model inference, or require a deployment with no Cloudflare service dependencies.

## Overview
```text
### Architecture & Core Mechanics
Kody is a TypeScript Nx monorepo using npm workspaces, with shared code in `packages/shared`. The origin entrypoint, `packages/worker/src/index.ts`, handles OAuth before MCP and MCP before static assets. Webhooks, including GET subscription challenges, are handled in the Worker’s `fetch` path before remaining site requests reach TanStack Start via `packages/worker/start/http-entry.ts`. Vite-built client assets are served through the `ASSETS` binding.

The origin delegates MCP and other Durable Object services to `packages/platform-worker`, package apps and the invoke API to `packages/runtime-worker`, and cron and JobManager to `packages/jobs-worker`, which calls back via JobsHost. Runtime also receives package-app traffic directly on `kody.run`. D1 is the database, KV holds session and OAuth state, and platform Durable Objects hold MCP state. The extension surface is the OAuth-protected HTTP MCP endpoint, centered on `search` and Code Mode `execute`.

### Key Capabilities & Differentiators
Kody gives individuals and teams a persistent store for package code, credentials, memories, and jobs across compatible MCP hosts. State is isolated by account, with organizations, teams, and grants for collaboration. `search` discovers capabilities and Code Mode `execute` invokes them, favoring a compact MCP interface over a large catalog of individually advertised tools.

Packages are both reusable code and a publishing unit: package apps have an invoke API, and saved packages can be reviewed through lightweight merge requests against protected `main`, including codemod changes. Publishing builds the app’s profile, and the app acts as the publisher. Kody complements an agent host rather than replacing it: there is no specified model backend or local inference stack. ChatGPT is identified as a likely primary host, not as evidence of parity across MCP clients.

### Trade-offs & Limitations
Compared with running standalone MCP servers, Kody is a better fit when several hosts need the same durable state, credentials, and package lifecycle. Standalone servers are simpler when each host needs only a few fixed tools. Kody’s compact interface avoids exposing every capability as a separate tool, but moves more responsibility to discovery and code execution; test that workflow in each client rather than assuming HTTP MCP support is enough.

Centralizing credentials and execution makes team grants and publisher identity operational concerns. Check what access a published app has and how it should be handled when its publisher’s role changes. The Worker split gives ingress, runtime, and scheduling distinct responsibilities, but deployments and incident diagnosis must account for service bindings, state, and job callbacks. Source availability is not a commercial license: the root contains `LICENSE`, but its terms are unspecified here.

### Hardware & Deployment Guide
Local development requires Node.js 26 or newer and npm. Run `npm install` and `npm run dev`; the CLI defaults to `localhost:3742` and selects the next free port if needed. Wrangler provides the local Workers runtime and D1. The setup does not require a model inference stack, and the root scripts include separate client, Worker, and mock Cloudflare development paths.

Production uses the Cloudflare Worker fleet, so plan for service bindings, D1, KV, Durable Objects, and the origin/package-app routing split rather than a single Node.js service. The root exposes a `deploy` script; `docs/contributing/getting-started.md` covers setup and environment variables. Since v2026.12.01, automations, publish builds, and nested `execute` calls follow the stored execution-context chain by default. That lets execution stay on configured machines without implying that ingress, OAuth, or state storage also move off Cloudflare.
```

## Key Capabilities
```text
- Protocol surface: OAuth-protected HTTP `/mcp` centers on `search` and Code Mode `execute`.
- Worker boundaries: Origin handles ingress, platform owns MCP Durable Objects, runtime serves package apps and the invoke API, and jobs owns cron and JobManager.
- State and access: D1, KV, and Durable Objects split database, session/OAuth, and MCP state; orgs, teams, and grants govern access.
- Package governance: v2026.12.02 introduced protected `main` and lightweight merge requests for saved packages, including codemod changes.
- Execution placement: v2026.12.01 made automations, publish builds, and nested `execute` calls follow the stored execution-context chain by default.
- Application identity: v2026.11.30 made package apps act as their publisher and build an app profile at publish time.
```

## Quick Start / Clone
```bash
npm install
npm run dev
```
