Community程式設計與開發github.com

tenorduckpate119/opencode-anthropic-user-agent-plugin

在 OpenCode 中注入自訂的 Anthropic User-Agent,用於 Claude OAuth、令牌刷新、API 呼叫和金鑰建立。

opencode-anthropic-user-agent-plugin 是什麼?

此技能專為開發者與 AI 代理使用者設計,能在 OpenCode 環境中強制注入自訂的 Anthropic User-Agent 標頭。這對於需要透過 Claude OAuth 流程進行身份驗證、自動刷新存取令牌、執行 API 呼叫或建立 API 金鑰的場景尤為重要。透過注入自訂的 User-Agent,您可以確保所有來自 OpenCode 的請求都能被明確標記為來自特定的應用程式或使用者,有助於 API 提供者進行速率限制、流量監控和除錯。該外掛源自 GitHub 上的 `tenorduckpate119/opencode-anthropic-user-agent-plugin` 專案,並在 awesomeskills.dev 的每日代理技能搜尋中被發現。支援的平台包括任何依賴 OpenCode 與 Anthropic API 互動的開發環境。

相容平台✓Claude Code~Codex CLI~Cursor✓OpenCode
npx skills add tenorduckpate119/opencode-anthropic-user-agent-plugin

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

相關技能