加入第一個模型
最後更新
訂閱 GitHub Copilot,並在 TUI 中註冊它的模型。
2. 訂閱 GitHub Copilot
GitHub Copilot($10/月)是 Agenvoy 推薦的最低成本起點:費用每月固定,agent 多跑幾輪也不會讓帳單跳動。
Agenvoy 不再推薦免費方案。Ollama Cloud 自 2026-11-09(PT 下午 5:40)起 Free 方案改為 pay-as-you-go,其雲端模型(
gemma4:31b、gpt-oss:120b、gpt-oss:20b、nemotron-3-super、nemotron-3-ultra)需購買 credits。以 Ollama 在本機執行仍然免費,但小型本機模型的 tool calling 不穩定。- 開啟 github.com/features/copilot/plans
- 登入並訂閱 $10/月的方案
3. 加入模型
啟動 TUI:
- agen
接著在 TUI 內:
| 步驟 | 操作 |
|---|---|
| 1 | 輸入 /model 按 Enter |
| 2 | 選 add —— add model from provider |
| 3 | 選單預設開在 OAuth 分頁,選 GitHub Copilot |
| 4 | 視窗顯示驗證網址與使用者代碼,有圖形介面時會自動開啟該頁(按 Enter 可重新開啟),在 10 分鐘內輸入代碼並授權。token 直接寫入 OS keychain —— 不進設定檔,也不進對話 |
| 5 | 從你的 Copilot 方案提供的模型中選 luna 模型 |
設定到此結束。模型登記在 ~/.config/agenvoy/config.json,憑證不在裡面。憑證存在 OS keychain(macOS 用
security、Linux 用 secret-tool),服務名稱固定為 agenvoy;secret-tool 無法使用時改寫入 ~/.config/agenvoy/.secrets(權限 0600)。讀取時依序查 keychain、該檔案、同名環境變數。選 luna 模型的理由是額度損耗夠慢、能力也夠日常使用。Shift+U 可查看 Copilot 剩餘額度。