<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>开发环境 on Rakien</title>
    <link>https://rakien.top/tags/%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83/</link>
    <description>Recent content in 开发环境 on Rakien</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh</language>
    <lastBuildDate>Sun, 26 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://rakien.top/tags/%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>mac搭建Claude Code</title>
      <link>https://rakien.top/post/life/2026/0426mac%E6%90%AD%E5%BB%BAclaude-code/</link>
      <pubDate>Sun, 26 Apr 2026 00:00:00 +0000</pubDate>
      
      <guid>https://rakien.top/post/life/2026/0426mac%E6%90%AD%E5%BB%BAclaude-code/</guid>
      <description>前言 Claude Code 是 Anthropic 提供的本地化 LLM 开发工具，能够在本机上运行代码、调试、生成文档。本文档记录在 macOS 环境下完整的搭建过程，帮助你快速上手。
正文 1. 安装 Homebrew（如果未安装） 1/bin/bash -c &amp;#34;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;#34; 2. 安装 Node.js 与 pnpm（Claude Code 依赖） 1brew install node 2npm install -g pnpm 3. 安装 Claude Code CLI 1pnpm add -g @anthropic/claude-code 或者使用官方脚本：
1curl -fsSL https://cli.anthropic.com/install.sh | sh 4. 配置 API Key 在终端中设置环境变量，或者在 ~/.zshrc 中写入：
1export ANTHROPIC_API_KEY=&amp;#34;your_api_key_here&amp;#34; 5. 初始化项目 在想要管理的目录下运行：
1claude init 这会生成 .claude/ 目录并创建默认配置文件。
6. 运行一次测试 1claude chat &amp;#34;写一个打印 Hello World 的 Python 程序&amp;#34; 如果能正常返回代码并在本地执行，则说明搭建成功。</description>
    </item>
    
  </channel>
</rss>