Skip to main content
在 Manus 中运行任何 Skill
一键导入

opencode-auth-plugin

星标0
分支0
更新时间2026年6月2日 00:55

Build (write/code) an opencode plugin that adds an OAuth login for a custom or self-hosted model provider — primarily the OAuth 2.0 device-code grant (RFC 8628) for headless setups (SSH, VPS, Docker, CI) — with Microsoft Entra ID (Azure AD) as the worked example. Use this when the user wants to create their own login in `opencode auth login` / the `/connect` picker by implementing the plugin `auth` hook (methods + authorize + a loader): running a device-code or browser OAuth flow, injecting a bearer token, refreshing the access token (e.g. via client.auth.set), or wiring opencode up to Azure OpenAI, Entra ID, Okta, Keycloak, Auth0, Google, Ping, or any OIDC/OAuth provider or internal model gateway. Trigger this even when phrased loosely, e.g. "add Entra ID login to opencode", "opencode custom provider OAuth", "authenticate opencode with our SSO", "opencode device-code auth plugin", or "let opencode log in to our internal model gateway". Do NOT use this for: signing into opencode's own built-in providers (Open

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

文件资源管理器
8 个文件
SKILL.md
readonly