Claw Code + copilot-api 本地的Claude Code使用

🔥 方案总览

  1. Claw Code(Claude Code 泄露源码完美复刻,最稳定)
  2. copilot-api(用你的 GitHub 免费 Copilot 额度当模型后端)

启动流程

pip install copilot-api

copilot-api auth

copilot-api start

Claw Code 极简一键部署 + 对接你的 copilot-api (GPT-4o)

全程复制粘贴即可,无废话、无坑、直接可用 你已经装好了 Rust,直接开干!


【一、克隆 + 编译安装】(3 行直接复制)

bash

运行

复制代码
cd ~/Develop/localhost
git clone https://github.com/instructkr/claw-code.git
cd claw-code
cargo build --release
sudo cp target/release/claw /usr/local/bin/

【二、创建配置文件】(直接复制,自动生成)

bash

运行

复制代码
cat > ~/.claw.env << 'EOF'
OPENAI_API_BASE=http://localhost:4141/v1
OPENAI_API_KEY=dummy
DEFAULT_MODEL=gpt-4o
EOF

【三、启动使用】(1 行)

bash

运行

复制代码
claw chat
相关推荐
长不大的杨瑞杰5 天前
GitHub Copilot Browser Use 实战:让 AI 在浏览器里调试与自动化测试
人工智能·github·copilot·playwright·github copilot·browser use
严肃小白兔10 天前
GitHub Copilot 团队级 Agent Plugins 正式发布:插件架构、共享配置与实战
github·copilot
Jason_gao99922 天前
Github Copilot 新手极速上手指南
人工智能·github·copilot
ms365copilot25 天前
Microsoft 365 Copilot跨工作资料整理
microsoft·copilot
死磕音视频25 天前
PowerPoint Copilot 入门:用 Interactive Slide 做出可点击讲解页
powerpoint·copilot·演示文稿·交互幻灯片
ms365copilot1 个月前
Copilot 笔记本,研究内容整理完变成 PowerPoint
powerpoint·copilot
孙琦Ray1 个月前
GitHub 开源 Replica:用自家设计系统生成 AI 原型
开源·github·copilot·replica·设计系统·ai 原型
copilot中国版1 个月前
PPT 新技能「创建项目启动会」:项目还没开会,Copilot 先把启动会 PPT 搭好了
powerpoint·copilot
AI模型调用笔记1 个月前
Copilot Fusion:用 Python 跑通模型级联
人工智能·驱动开发·语言模型·copilot
海盗12341 个月前
AI 新闻日报 2026-10-29:Gemini 4 Carbon 登顶、Clover 35B 扩散模型开源、Copilot Fusion 接手选模型
人工智能·机器人·开源·copilot·人工智能aigc