← 返回 AI大模型从0到1——理论与实操
C2-01 agent实操-安装claude code和codex并配置国产模型
安装
💡 前置:按量付费或者购买一个coding plan
cc-switch
地址:https://github.com/farion1231/cc-switch/releases
科学上网
地址:https://www.tntv2.net/auth/register?code=shx90i
Codex
地址:https://openai.com/zh-Hans-CN/codex/
Claude Code desktop:
地址:https://claude.com/product/claude-code
Claude Code CLI:
Windows PowerShell:
PowerShell
1 | |
macOS / Linux / WSL:
Plain Text
1 | |
启动使用
Bash
1 2 3 | |
🌅 Agent = Model + Harness
Model: 你的大模型订阅计划
Harness:Claude Code Desktop/CLI/Codex三选一
📌 使用Agent步骤:
1 下载安装agent产品
2 配置大模型
3 定义工具(mcp server, skills)
4 开始输入你的需求!!
Chatbot vs Agent
Deepseek vs Claude Code
| ChatBot | Agent |
|---|---|
| 被动回答 | 主动规划、定时任务 |
| 一问一答 | 多步骤自主完成 |
| 只能对话 | 对话 + 行动 |
| 无外部交互 | 调用 API / 执行代码 / 操作文件 |
| 上下文有限 | 长期记忆 + 状态管理 |
🎹 领会Agent与对话机器人的区别