跳转至

Claude Code试用

Note

本次测试使用node环境安装,如果没有相关环境,推荐参考官网一键安装curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

1、前置工作

windows 11环境需要先安装好 `Node.js (>=V18.0)`以及 `Git`,这里使用了`node v24.11.1`和`git version 2.40.1.windows.1`。

2、安装(终端版)

#安装claude-code
npm install -g @anthropic-ai/claude-code
#查看版本 (2.0.76 Claude Code)
claude --version

3、配置模型

如果考虑到灵活的用其他平台的API,可以借助第三方工具进行配置,如Coding Tool Helper

# 进入命令行界面,执行如下运行 Coding Tool Helper
npx @z_ai/coding-helper
#根据提示配置即可
同理,如果想用硅基流动,直接在git bash中执行bash -c "$(curl -fsSL https://static01.siliconflow.cn/cdn/assets/ccsf_v2_3.sh)"配置了

Note

此处为手动配置,仅供参考,本次测试使用Coding Tool Helper配置。 Claude Code默认使用Anthropic的服务,无法在中国使用,可以考虑使用代理或者使用其他大模型,这里以GLM-4.7为例。首先在C:\Users\39770\.claude.json中加入"hasCompletedOnboarding": true以绕过Anthropic检查。 API等变量可以配置到C:\Users\xxxx\.claude\settings.json,当然也可以通过临时配置环境变量解决

3、编程体验

a、启动程序

#启动claude code
claude

b、第一轮对话

请帮忙根据@产品设计.md 完成一个前后端分离的产品开发,前端参考@前端规范V2.md ,后端参考@后端规范.md ,如果一些技术栈用不上可以不用

c、第二轮对话

请为该软件写一份中文使用说明文档,尽可能多的提供一些使用示例

d、第3-N轮对话

提出自己的改动即可
本文阅读量  次
本站总访问量  次
Authors: Wind