差異處
這裏顯示兩個版本的差異處。
| 兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
| tech:opencode [2026/03/23 22:51] – [有訂閱 Google AI Pro 用戶進行認證登入] 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. < | ||
| 行 147: | 行 162: | ||
| openspec update | openspec update | ||
| </ | </ | ||
| - | |||
| - | ==== 安裝 lancedb-opencode-pro ==== | ||
| - | * 讓 OpenCode 可以增加長記憶功能, | ||
| - | * Ref - https:// | ||
| - | * 需要有 embedding 模型 Exp. ollama -> nomic-embed-text , OpenAI -> text-embedding-3-small | ||
| - | - 修改 ~/ | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | ] | ||
| - | } | ||
| - | </ | ||
| - | - 加上設定檔 ~/ | ||
| - | { | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | }, | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | }, | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | } | ||
| - | </ | ||
| - | - 重新啟動 opencode | ||
| - | - 使用 memory_effectiveness 查看長記憶的狀態 \\ {{: | ||
| ===== 使用 openchamber Web 操作介面 ===== | ===== 使用 openchamber Web 操作介面 ===== | ||
| 行 214: | 行 186: | ||
| </ | </ | ||
| * {{: | * {{: | ||
| - | ===== 有訂閱 Google AI Pro 用戶進行認證登入 ===== | + | |
| - | * 參考 - https:// | + | |
| - | <note important> | + | |
| ===== 參考網址 ===== | ===== 參考網址 ===== | ||
| * https:// | * https:// | ||