# study-ai **Repository Path**: hengandliu/study-ai ## Basic Information - **Project Name**: study-ai - **Description**: https://github.com/spring-projects/spring-ai 学习 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-05 - **Last Updated**: 2026-03-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AI模型 ## [Claude Code](https://code.claude.com/docs/zh-CN/overview) ### 安装 > https://code.claude.com/docs/zh-CN/setup#npm-%E5%AE%89%E8%A3%85 > https://zhuanlan.zhihu.com/p/1934011464114508492 ```shell npm install -g @anthropic-ai/claude-code claude -v ``` ### 配置API KEY #### [Code Router](https://api.code-relay.com/console/token) > https://api.code-relay.com/about * 自由选择模型,并创建对应的API KEY。 ##### 永久设置(推荐) ```shell # 添加到 zsh 配置文件(macOS 默认) echo 'export ANTHROPIC_AUTH_TOKEN="sk-xxx"' >> ~/.zshrc echo 'export ANTHROPIC_API_KEY="sk-xxx"' >> ~/.zshrc echo 'export ANTHROPIC_BASE_URL="https://api.code-relay.com/"' >> ~/.zshrc # 如果使用 Bash #echo 'export ANTHROPIC_AUTH_TOKEN="sk-oiVqEve7SJ53DmHLFlqJeJBpSf2pmv2bo9t1fudpM8hMwWii"' >> ~/.bash_profile #echo 'export ANTHROPIC_BASE_URL="https://api.moonshot.cn/anthropic"' >> ~/.bash_profile # 绕过所有权限检查,允许 Claude Code 无需用户确认直接执行操作 echo 'alias claude="claude --dangerously-skip-permissions"' >> ~/.zshrc # 重新加载配置 source ~/.zshrc # 或 ~/.bash_profile ``` #### [Moonshot AI](https://platform.moonshot.cn/console/account) > https://zhuanlan.zhihu.com/p/1959556696893558838 * 创建API KEY时无法选择模型,固定使用Moonshot Kimi系列模型。 * 在开发工具台可以选择Moonshot其他模型。 ##### 临时设置(当前会话) ```shell export ANTHROPIC_API_KEY="sk-xxx" export ANTHROPIC_BASE_URL="https://api.moonshot.cn/anthropic" ``` ##### 永久设置(推荐) ```shell # 添加到 zsh 配置文件(macOS 默认) echo 'export ANTHROPIC_AUTH_TOKEN="sk-xxx"' >> ~/.zshrc echo 'export ANTHROPIC_BASE_URL="https://api.moonshot.cn/anthropic"' >> ~/.zshrc echo 'export ANTHROPIC_AUTH_TOKEN="eb2bb857b6b34da3a4832ed6a4c5d6cd.uY6j1UuQKzDJNlcn"' >> ~/.zshrc echo 'export ANTHROPIC_API_KEY="eb2bb857b6b34da3a4832ed6a4c5d6cd.uY6j1UuQKzDJNlcn"' >> ~/.zshrc echo 'export ANTHROPIC_BASE_URL="https://open.bigmodel.cn/api/anthropic"' >> ~/.zshrc # 如果使用 Bash #echo 'export ANTHROPIC_AUTH_TOKEN="sk-oiVqEve7SJ53DmHLFlqJeJBpSf2pmv2bo9t1fudpM8hMwWii"' >> ~/.bash_profile #echo 'export ANTHROPIC_BASE_URL="https://api.moonshot.cn/anthropic"' >> ~/.bash_profile # 重新加载配置 source ~/.zshrc # 或 ~/.bash_profile ``` ### [quickstart](https://code.claude.com/docs/zh-CN/quickstart) # Flutter ## 安装 ```shell export PATH="~/workspace/env/flutter/bin:$PATH" echo 'export PATH="/Users/musclecoder/workspace/env/flutter/bin:$PATH"' >> ~/.zprofile echo 'export PUB_HOSTED_URL="https://pub.flutter-io.cn"' >> ~/.zprofile echo 'export FLUTTER_STORAGE_BASE_URL="https://storage.flutter-io.cn"' >> ~/.zprofile ```