npm install -g @anthropic-ai/claude-code@latest
| Memory Type 内存类型 | Location 位置 | Purpose 用途 | Use Case Examples 用例示例 |
|---|---|---|---|
| Project memory 项目记忆 | ./CLAUDE.md |
Team-shared instructions for the project项目的团队共享说明 | Project architecture, coding standards, common workflows项目架构、编码标准、通用工作流程 |
| User memory 用户记忆 | ~/.claude/CLAUDE.md |
Personal preferences for all projects所有项目的个人偏好 | Code styling preferences, personal tooling shortcuts代码风格偏好、个人工具快捷键 |
| Project memory (local) 项目记忆(本地) | ./CLAUDE.local.md |
Personal project-specific preferences 个人项目特定偏好 | (Deprecated, see below) Your sandbox URLs, preferred test data*(已弃用,见下文)* 你的沙盒网址、首选测试数据 |
All memory files are automatically loaded into Claude Code’s context when launched.启动时,所有内存文件都会自动加载到Claude Code的上下文环境中。
/memory
3. User memory Saved in ~/.claude/CLAUDE.md
> give me an overview of this codebase
⎿ ☐ 分析代码库整体结构
☐ 检查各个子项目的具体结构
☐ 总结技术栈和架构特点
kimi 支持 openAi Anthropic 接口,k2 模型可以用这种方式体验一下
https://platform.moonshot.cn/console/api-keys
# 编辑 ~/.zshrc
export ANTHROPIC_BASE_URL=https://api.moonshot.cn/anthropic/
export ANTHROPIC_API_KEY=your_api_key_here
https://github.com/Maciek-roboblog/Claude-Code-Usage-Monitor
# Install directly from PyPI with uv (easiest)
uv tool install claude-monitor
# Run from anywhere
claude-monitor # or cmonitor, ccmonitor for short