Total Pageviews

Friday, 28 August 2026

claude-code-build


⚠️ WARNING: This repository is unofficial and is reconstructed from the public npm package and source map analysis, for research purposes only. It does not represent the original internal development repository structure.

Copyright: All original source code copyrights belong to Anthropic, PBC. This repository is for technical research and learning purposes only. Commercial use is strictly prohibited. If this repository infringes upon any rights, please contact for immediate removal.

Version: 2.1.88-custom

Status: 非官方构建 / Unofficial Build

简介

本项目基于 Claude Code CLI (Anthropic 官方命令行工具) 泄漏的源码进行编译构建。通过 Bun 打包工具将 TypeScript 源码编译为可运行的 Node.js 应用

这不是官方发布版本,仅供学习研究用途。

构建与运行

前置依赖

构建

bun install
bun run build

运行

# 使用 Anthropic API Key
ANTHROPIC_API_KEY=your-key node dist/cli.js

# 使用自定义 API 端点 (兼容 OpenAI 格式的第三方服务等)
ANTHROPIC_BASE_URL=https://your-endpoint.com ANTHROPIC_API_KEY=your-key node dist/cli.js

主要特性

  • 所有实验性 Feature Flags 默认关闭
  • 支持 Anthropic / AWS Bedrock / Google Vertex / Azure 等多种后端
  • 支持 MCP (Model Context Protocol) 服务器
  • 内置文件读写、搜索、Bash 执行等开发工具

项目结构

├── src/              # 源码目录
├── shim/             # Bun bundle shim
├── dist/             # 构建输出
├── build.ts          # 构建脚本
├── package.json      # 项目配置
└── tsconfig.json     # TypeScript 配置

免责声明 / Disclaimer

中文

  1. 非官方产品: 本项目 不是 Anthropic 官方产品,与 Anthropic 公司无任何关联、授权或背书关系。
  2. 来源说明: 本项目基于网络上泄漏的 Claude Code 源码编译而成,作者不对源码的获取方式承担任何责任。

from  https://github.com/chenqinggang001/claude-code-build

No comments:

Post a Comment