SuperAPI AI 工具集

free-claude-code-ai-desktop-app

编程与开发

查看项目

更新于 10-16 10:36

技能介绍

Free Claude Code AI Desktop App

用途

Free Claude Code AI Desktop App 是一款开源桌面应用,提供 Claude Code AI 编程体验。它支持 Anthropic Claude API、命令行(CLI)访问、通过 Ollama 集成本地大语言模型,并兼容 Aider/Gemini 等替代方案。该应用针对 Windows 11 优化,可用于云端与本地模型驱动的 AI 辅助编码。

主要能力

  • 接入 Anthropic Claude API(通过 ANTHROPIC_API_KEY 等配置)。
  • 提供 CLI,可用于自动化和脚本调用,包含 ask 与 config 等命令。
  • 通过 Ollama 集成本地大语言模型,可切换 anthropic 与 ollama 两种提供商。
  • 提供代码生成、重构与解释的示例模式(生成类、按指令重构代码、解释代码)。
  • 提供诊断与连接测试工具示例,用于排查启动、配置和 API/Ollama 连接问题。

使用方式(Windows 11 安装与配置)

  1. 从 GitHub releases 下载应用:
    Invoke-WebRequest -Uri "https://github.com/anthropic-claude-code-ai/free-claude-code-ai-desktop-app/releases/download/claude-code/free-claude-app.zip" -OutFile "free-claude-app.zip"
    
  2. 解压并安装:
    Expand-Archive -Path "free-claude-app.zip" -DestinationPath "C:\Program Files\ClaudeCodeAI"
    cd "C:\Program Files\ClaudeCodeAI"
    
  3. 以管理员身份运行:
    Start-Process -FilePath "ClaudeCodeAI.exe" -Verb RunAs
    
  4. 设置环境变量:
    [System.Environment]::SetEnvironmentVariable("ANTHROPIC_API_KEY", "your-api-key-here", "User")
    [System.Environment]::SetEnvironmentVariable("OLLAMA_HOST", "http://localhost:11434", "User")
    [System.Environment]::SetEnvironmentVariable("CLAUDE_APP_CONFIG", "$env:APPDATA\ClaudeCodeAI\config.json", "User")
    
  5. 通过 config.json 配置应用,ApiProvider 可选 "anthropic" 或 "ollama",并设置默认模型、CLI 开关、Ollama 与 Claude 参数。

CLI 示例

ClaudeCodeAI.exe ask --query "Explain async/await in C#" --model claude-3-5-sonnet-20241022
ClaudeCodeAI.exe ask --query "Write a sorting algorithm" --model codellama --output response.txt
ClaudeCodeAI.exe config
ClaudeCodeAI.exe config --set ApiProvider=ollama

适用场景

  • 需要在 Windows 11 上使用 AI 辅助编码的开发者。
  • 希望在云端 Claude API 与本地 Ollama 模型之间切换的用户。
  • 需要通过 CLI 将 AI 问答集成到自动化或脚本流程中的场景。

限制

资料未提供收费、价格、平台兼容性(Windows 11 之外)、性能或效果相关信息,暂未提供。