差異處
這裏顯示兩個版本的差異處。
| 兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
| tech:opencode [2026/01/23 14:24] – [安裝 openspec] jonathan | tech:opencode [2026/05/11 16:55] (目前版本) – [安裝 OpenCode (Ubuntu 24.04)] jonathan | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== 安裝 OpenCode (Ubuntu 24.04) ====== | ====== 安裝 OpenCode (Ubuntu 24.04) ====== | ||
| + | <note tip> | ||
| + | * 也可以參考我整合好的專案 \\ **[[https:// | ||
| + | * 用 docker compose 就可啟動使用 | ||
| + | </ | ||
| ===== 安裝程序 ===== | ===== 安裝程序 ===== | ||
| * < | * < | ||
| 行 26: | 行 30: | ||
| For more information visit https:// | For more information visit https:// | ||
| </ | </ | ||
| + | < | ||
| + | * 預設啟動 opencode 就會自動檢查與更新至最新版本, | ||
| + | - 在 ~/ | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | - 安裝特定版本執行檔 Exp. 1.3.2< | ||
| + | curl -fsSL https:// | ||
| + | </ | ||
| + | </ | ||
| ===== 使用方式 ===== | ===== 使用方式 ===== | ||
| * 進入專案目錄執行< | * 進入專案目錄執行< | ||
| ===== 安裝與選用 plugin / MCP / Skills ===== | ===== 安裝與選用 plugin / MCP / Skills ===== | ||
| - | ==== 安裝 Oh My OpenCode | + | ==== 安裝 Oh My OpenAgent |
| - | * Ref - https:// | + | * Ref - https:// |
| sudo snap remove bun-js | sudo snap remove bun-js | ||
| sudo apt install unzip | sudo apt install unzip | ||
| 行 38: | 行 53: | ||
| source ~/.bashrc | source ~/.bashrc | ||
| cp ~/ | cp ~/ | ||
| - | bunx oh-my-opencode | + | bunx oh-my-openagent |
| </ | </ | ||
| - | * Oh My OpenCode | + | * Oh My OpenAgent |
| * Serena MCP : OpenCode 原生就支援 [[https:// | * Serena MCP : OpenCode 原生就支援 [[https:// | ||
| * ulw : UltraWork Mode -> 讓所有 Agent 可以儘可能最大極限合作執行 Exp. < | * ulw : UltraWork Mode -> 讓所有 Agent 可以儘可能最大極限合作執行 Exp. < | ||
| 行 50: | 行 65: | ||
| ==== 安裝 ui-ux-pro-max-skill ==== | ==== 安裝 ui-ux-pro-max-skill ==== | ||
| * Ref - https:// | * Ref - https:// | ||
| + | * <cli> | ||
| + | # Install CLI globally | ||
| + | sudo npm install -g uipro-cli | ||
| + | |||
| + | # Go to your project | ||
| + | cd / | ||
| + | # Install for your AI assistant | ||
| + | uipro init --ai opencode | ||
| + | </ | ||
| + | * 重新啟動 opencode 輸入 "Build a landing page for a SaaS product" | ||
| ==== 安裝 openspec ==== | ==== 安裝 openspec ==== | ||
| 行 110: | 行 135: | ||
| </ | </ | ||
| + | * 複製畫面看到的這段< | ||
| + | " | ||
| + | with details about my project, tech stack, and conventions" | ||
| + | |||
| + | 2. Create your first change proposal: | ||
| + | " | ||
| + | OpenSpec change proposal for this feature" | ||
| + | |||
| + | 3. Learn the OpenSpec workflow: | ||
| + | " | ||
| + | and how I should work with you on this project"</ | ||
| * 進入 opencode 執行 /openspec 命令 | * 進入 opencode 執行 /openspec 命令 | ||
| - Draft the Proposal Exp. < | - Draft the Proposal Exp. < | ||
| 行 128: | 行 164: | ||
| ===== 使用 openchamber Web 操作介面 ===== | ===== 使用 openchamber Web 操作介面 ===== | ||
| + | <note tip> | ||
| * 參考網址 - - https:// | * 參考網址 - - https:// | ||
| * <cli> | * <cli> | ||
| 行 149: | 行 186: | ||
| </ | </ | ||
| * {{: | * {{: | ||
| - | ===== 有訂閱 Google AI Pro 用戶進行認證登入 ===== | ||
| - | * 參考 - https:// | ||
| - | * 如果之後安裝或更新 oh-my-opencode 必須要將 ~/ | ||
| - | * 將會增加 Antigravity + Gemini CLI 所提供的模型 | ||
| - | - 先將 opencode.json 進行備份 < | ||
| - | - 編輯 opencode.json < | ||
| - | { | ||
| - | " | ||
| - | : | ||
| - | : | ||
| - | } | ||
| - | </ | ||
| - | - 進行 Google oAuth 認證< | ||
| - | - 選擇 *Google** | ||
| - | - 將產生的 URL 貼到瀏覽器, | ||
| - | - 如果是 ssh 登入遠端主機, | ||
| - | - 繼續修改 opencode.json 將需要的模型加入< | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | ], | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | }, | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | }, | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | }, | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | }, | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | }, | ||
| - | : | ||
| - | : | ||
| - | } | ||
| - | } | ||
| - | } | ||
| - | }, | ||
| - | " | ||
| - | } | ||
| - | </ | ||
| ===== 參考網址 ===== | ===== 參考網址 ===== | ||