Claude Code 安装指南

Install Claude Code locally with compatibility layers for China.

2|Updated Jun 10, 2020
One-click install
npx skills add https://github.com/geekchow/work-notes --skill claude-code-geekchow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Claude Code 安装指南
Source: https://github.com/geekchow/work-notes/tree/main/AI/ClaudeCode
Command: npx skills add https://github.com/geekchow/work-notes --skill claude-code-geekchow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires node, npm, and includes scripts (resource) components.

What problem does it solve?

Claude Code 安装指南解决了 Claude Code 在中国大陆用户中遇到的网络和账号双重门槛问题,通过本地部署和兼容层方案,实现无障碍安装和使用。

Core Features & Use Cases

  • 本地部署: 支持本地部署,无需依赖外部网络。
  • 兼容层方案: 支持智谱 GLM 和 DeepSeek 等国产大模型,无需注册 Anthropic 账号。
  • 操作简单: 3个步骤即可完成安装。

Quick Start

  1. 确保已安装 Node.js。
  2. 执行命令 npm install -g @anthropic-ai/claude-code 安装 Claude Code。
  3. 根据网络和账号情况选择路径 A 或 B 进行配置。

Frequently Asked Questions about Claude Code 安装指南

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install Claude Code in China without network or Anthropic account issues?

You can install Claude Code in China by following a 3-step local deployment guide that uses a compatibility layer to bypass network and account barriers, enabling access through domestic models like Zhipu GLM and DeepSeek.

Can I use Claude Code with DeepSeek or Zhipu GLM instead of Anthropic?

Yes, a compatibility layer solution allows you to configure Claude Code to use domestic models like DeepSeek or Zhipu GLM locally, entirely removing the need to register an Anthropic account.

Do I need Node.js and npm to run Claude Code locally?

Yes, Node.js and npm are required dependencies. You must ensure Node.js is installed on your system before executing the npm command to globally install the Claude Code package.

What is the compatibility layer approach for Claude Code local deployment?

The compatibility layer approach for Claude Code local deployment routes model requests to alternative AI providers. It enables the tool to function seamlessly without relying on external networks or Anthropic API access.

What are the steps to configure Claude Code after npm installation?

After installing via npm, configure Claude Code by selecting path A or B based on your network and account situation. This directs the tool through either standard Anthropic access or a domestic model compatibility layer.