You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -362,15 +342,16 @@ export async function DigitalOceanAuthPlugin(input: PluginInput): Promise<Hooks>
362
342
awaitstartOAuthServer()
363
343
conststate=generateState()
364
344
constcallbackPromise=waitForOAuthCallback(state)
345
+
consturl=buildAuthorizeUrl(state)
346
+
awaitopen(url).catch(()=>undefined)
365
347
return{
366
-
url: buildAuthorizeUrl(state),
348
+
url,
367
349
instructions:
368
-
"Sign in to DigitalOcean in your browser. OpenCode will create a Model Access Key named opencode-oauth-* and load your Inference Routers. Re-run /connect to refresh routers later.",
350
+
"Sign in to DigitalOcean in your browser. OpenCode will use your DigitalOcean API token directly for inference and load your Inference Routers. Re-run /connect to refresh routers later.",
-**OAuth (Recommended)** — Sign in to your DigitalOcean account; OpenCode auto-creates a Model Access Key and discovers your available Models & Inference Routers.
730
+
-**OAuth (Recommended)** — Sign in to your DigitalOcean account; OpenCode uses your DigitalOcean API token directly for inference and discovers your Inference Routers.
731
731
-**Model Access Key** — Paste an existing key from the DigitalOcean console.
732
732
733
733
#### OAuth (Recommended)
@@ -751,7 +751,11 @@ OpenCode supports two authentication methods:
751
751
3. Your browser opens to authorize OpenCode. Sign in and approve.
752
752
753
753
:::note
754
-
OpenCode creates a Model Access Key named `opencode-oauth-<timestamp>` in your DigitalOcean account. You can rotate or revoke it from the **Model Access Keys** page in the "Manage" section of the DigitalOcean console under Inference.
754
+
OpenCode requests `genai:read` and `inference:query` OAuth scopes. Your DigitalOcean API token is used directly for inference — no separate Model Access Key is created.
755
+
:::
756
+
757
+
:::note
758
+
Inference Routers only appear in the model picker after OAuth. Pasting a Model Access Key manually does not discover routers.
755
759
:::
756
760
757
761
4. Run the `/models` command. Your Inference Routers appear as the format `router:` in the model selection.
0 commit comments