CC

codelocal-cloud/codelocal

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

101 stars 47 forks 质量 74 趋势 54Apache-2.0

AI编码的开源项目"大脑". 把ChatGPT, Codex, Claude 和 MCP 兼容的代理商连接到您的项目, 本地工具和持续的知识.

概览

Code Local是AI编码的通用MCP层. 它将ChatGPT, Codex, Claude 和其他 MCP 兼容客户端连接到您在自己的机器上明确授权的持久加控访问项目文件夹. 大多数AI编码工具将每个聊天,客户端或机器视为新的开始. Code Local是围绕着相反的想法设计的:您的项目智能应该活过您今天恰好使用的界面. - 保留经核实的决定、项目背景、规则、经验和可再利用的技能。 - 使用ChatGPT, Codex, Claude 或另一种MCP能力剂对抗同一项目情报. - ——文件,Git,终端和可选自动化运行于你明确授权的工作空间. ——一个本地运行时间可以保留许多项目,并懒散地激活. - ——寄存器源和本地索引默认停留在您的机器上;Cloud用于身份,路由和消毒的持久连续性.

概述(AI 翻译)

** 一个大脑项目。 任何AI客户端. 诀竟

Code Local是AI编码的通用MCP层. 它将ChatGPT, Codex, Claude 和其他 MCP 兼容客户端连接到一个耐用** Project Brain** 加上您在自己的机器上明确授权的项目文件夹的控制访问.

模式原因。 ** 编码地方记忆、路线和执行。 **

□ 为什么代码本地

大多数AI编码工具将每个聊天,客户端或机器视为新的开始. Code Local是围绕着相反的想法设计的:您的项目智能应该活过您今天恰好使用的界面.

  • ** 一个大脑项目**——保留经核实的决定、项目背景、规则、经验和可重复使用的技能。
  • 任何相容的AI客户 – 使用 ChatGPT, Codex, Claude 或另一种MCP能干剂来对抗同一项目情报.
  • 控制本地执行——文件、Git、终端和可选自动化运行于你明确授权的工作空间。
  • ** 多工作空间,按设计**——一个本地运行时间可以保持许多项目的可用性并懒散地启动这些项目.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

CodeLocal

One Project Brain. Any AI client. Your machine.

CodeLocal is a universal MCP layer for AI coding. It connects ChatGPT, Codex, Claude and other MCP-compatible clients to one durable Project Brain plus controlled access to the project folders you explicitly authorize on your own machine.

The model reasons. CodeLocal remembers, routes and executes.

Why CodeLocal

Most AI coding tools treat each chat, client or machine as a fresh start. CodeLocal is designed around the opposite idea: your project intelligence should survive the interface you happen to use today.

  • One Project Brain — preserve verified decisions, project context, rules, Experience and reusable skills.
  • Any compatible AI client — use ChatGPT, Codex, Claude or another MCP-capable agent against the same project intelligence.
  • Controlled local execution — files, Git, terminal and optional automation run against workspaces you explicitly authorize.
  • Multi-workspace by design — one local runtime can keep many projects available and activate them lazily.
  • Local-first source access — repository source and local indexes stay on your machine by default; Cloud is used for identity, routing and sanitized durable continuity.

We are not trying to rebuild Codex, Claude Desktop, DeepSeek Harness, Cursor or another AI coding client. AI clients are interfaces. CodeLocal is the shared intelligence and execution layer behind them.

How it works

You
  ↓
MCP-compatible AI clients    ChatGPT · Codex · Claude · other agents
  ↕ MCP over HTTPS + OAuth
CodeLocal Project Brain      durable rules · decisions · Experience · skills
  ↓
CodeLocal Cloud              identity · routing · auth · sanitized continuity
  ↓ authenticated runtime channel
CodeLocal native runtime     controlled execution on your computer
  ↓
Authorized workspaces        files · Git · terminal · local MCP extensions
  ↓
Verification                 evidence → verified Experience → safer reuse

The AI client/model reasons; CodeLocal provides the shared MCP layer, preserves project intelligence and controls execution.

Quick start

Requires Node.js 20+ and npm.

Install the current stable release:

npm i -g codelocal@latest

Verify the installed version:

codelocal --version

Authorize one or more projects:

cd /path/to/project-a
codelocal .

cd /path/to/project-b
codelocal .

Start one machine runtime:

codelocal

A single runtime can keep many workspaces authorized. You do not need one CodeLocal daemon per project or per AI client.

Useful commands:

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →