Files
nexus/wiki/sources/OpenCode安装与使用指南.md

41 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "OpenCode安装与使用指南"
type: source
tags: [OpenCode, AI编程, 安装配置]
date: 2026-03-29
---
## Source File
- [[raw/Vibe Coding/如何在Ubuntu上安装opencode并配置Vibe-Kanban.md]]
## Summary
- 核心主题OpenCode AI编程代理的安装配置与使用指南
- 问题域OpenCode作为独立AI编程工具的使用
- 方法/机制:安装脚本 → /connect配置API key → /init初始化项目 → /init创建AGENTS.md
- 结论/价值OpenCode支持Plan模式和Build模式切换/undo和/redo可撤销重做
## Key Claims
- 安装curl -fsSL https://opencode.ai/install | bash
- 配置API key/connect → opencode.ai/auth → 粘贴key
- 初始化项目cd /path/project && opencode && /init → 创建AGENTS.md
- Plan模式Tab键切换AI只规划不修改代码
- Build模式Tab键切换回AI执行修改
- Ask模式仅回答问题不修改文件
- 文件引用:@键模糊搜索项目文件
- /undo撤销/redo重做
- /share分享对话
## Key Concepts
- [[OpenCode]]开源AI编程代理
- [[PlanBuild模式]]:规划与执行模式切换
- [[项目初始化]]/init创建AGENTS.md
## Key Entities
- [[OpenCode]]开源AI编程工具
## Connections
- [[OpenCode安装与使用指南]] ← documents [[OpenCode]]
## Contradictions
- 无冲突