summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2026-01-09 18:45:03 -0600
committerAiden Cline <[email protected]>2026-01-09 18:45:03 -0600
commit8b8a358de1005970c3316c0a9ff0088ad1474232 (patch)
tree2bf82e14a86174d18d05b85d460d4c272cba3ba1
parent075fa2c0e81eb6497b78c91e008f0ac1396f369b (diff)
downloadopencode-8b8a358de1005970c3316c0a9ff0088ad1474232.tar.gz
opencode-8b8a358de1005970c3316c0a9ff0088ad1474232.zip
update docs and auth methods for openai
-rw-r--r--packages/console/app/src/routes/index.tsx6
-rw-r--r--packages/console/app/src/routes/temp.tsx3
-rw-r--r--packages/opencode/src/cli/cmd/auth.ts1
-rw-r--r--packages/opencode/src/cli/cmd/tui/component/dialog-provider.tsx1
-rw-r--r--packages/opencode/src/plugin/codex.ts4
-rw-r--r--packages/web/src/components/Lander.astro1
-rw-r--r--packages/web/src/content/docs/providers.mdx20
7 files changed, 29 insertions, 7 deletions
diff --git a/packages/console/app/src/routes/index.tsx b/packages/console/app/src/routes/index.tsx
index a59a8f8db..830bd9c95 100644
--- a/packages/console/app/src/routes/index.tsx
+++ b/packages/console/app/src/routes/index.tsx
@@ -198,6 +198,12 @@ export default function Home() {
<li>
<span>[*]</span>
<div>
+ <strong>ChatGPT Plus/Pro</strong> Log in with OpenAI to use your ChatGPT Plus or Pro account
+ </div>
+ </li>
+ <li>
+ <span>[*]</span>
+ <div>
<strong>Any model</strong> 75+ LLM providers through Models.dev, including local models
</div>
</li>
diff --git a/packages/console/app/src/routes/temp.tsx b/packages/console/app/src/routes/temp.tsx
index 28883fca7..68bda67da 100644
--- a/packages/console/app/src/routes/temp.tsx
+++ b/packages/console/app/src/routes/temp.tsx
@@ -92,6 +92,9 @@ export default function Home() {
<strong>Claude Pro</strong> Log in with Anthropic to use your Claude Pro or Max account
</li>
<li>
+ <strong>ChatGPT Plus/Pro</strong> Log in with OpenAI to use your ChatGPT Plus or Pro account
+ </li>
+ <li>
<strong>Use any model</strong> Supports 75+ LLM providers through{" "}
<a href="https://models.dev">Models.dev</a>, including local models
</li>
diff --git a/packages/opencode/src/cli/cmd/auth.ts b/packages/opencode/src/cli/cmd/auth.ts
index 232cdd576..3dd7bcc35 100644
--- a/packages/opencode/src/cli/cmd/auth.ts
+++ b/packages/opencode/src/cli/cmd/auth.ts
@@ -294,6 +294,7 @@ export const AuthLoginCommand = cmd({
hint: {
opencode: "recommended",
anthropic: "Claude Max or API key",
+ openai: "ChatGPT Plus/Pro or API key",
}[x.id],
})),
),
diff --git a/packages/opencode/src/cli/cmd/tui/component/dialog-provider.tsx b/packages/opencode/src/cli/cmd/tui/component/dialog-provider.tsx
index 72b12d99b..8c4d9e446 100644
--- a/packages/opencode/src/cli/cmd/tui/component/dialog-provider.tsx
+++ b/packages/opencode/src/cli/cmd/tui/component/dialog-provider.tsx
@@ -36,6 +36,7 @@ export function createDialogProviderOptions() {
description: {
opencode: "(Recommended)",
anthropic: "(Claude Max or API key)",
+ openai: "ChatGPT Plus/Pro or API key",
}[provider.id],
category: provider.id in PROVIDER_PRIORITY ? "Popular" : "Other",
async onSelect() {
diff --git a/packages/opencode/src/plugin/codex.ts b/packages/opencode/src/plugin/codex.ts
index f098a3967..c83f27861 100644
--- a/packages/opencode/src/plugin/codex.ts
+++ b/packages/opencode/src/plugin/codex.ts
@@ -411,6 +411,10 @@ export async function CodexAuthPlugin(input: PluginInput): Promise<Hooks> {
}
},
},
+ {
+ label: "Manually enter API Key",
+ type: "api",
+ },
],
},
}
diff --git a/packages/web/src/components/Lander.astro b/packages/web/src/components/Lander.astro
index 605cea638..0e522158d 100644
--- a/packages/web/src/components/Lander.astro
+++ b/packages/web/src/components/Lander.astro
@@ -78,6 +78,7 @@ if (image) {
<li><b>Multi-session</b>: Start multiple agents in parallel on the same project.</li>
<li><b>Shareable links</b>: Share a link to any sessions for reference or to debug.</li>
<li><b>Claude Pro</b>: Log in with Anthropic to use your Claude Pro or Max account.</li>
+ <li><b>ChatGPT Plus/Pro</b>: Log in with OpenAI to use your ChatGPT Plus or Pro account.</li>
<li><b>Use any model</b>: Supports 75+ LLM providers through <a href="https://models.dev">Models.dev</a>, including local models.</li>
</ul>
</section>
diff --git a/packages/web/src/content/docs/providers.mdx b/packages/web/src/content/docs/providers.mdx
index 58aa47ede..882500b96 100644
--- a/packages/web/src/content/docs/providers.mdx
+++ b/packages/web/src/content/docs/providers.mdx
@@ -1071,29 +1071,35 @@ To use Ollama Cloud with OpenCode:
### OpenAI
-1. Head over to the [OpenAI Platform console](https://platform.openai.com/api-keys), click **Create new secret key**, and copy the key.
+We recommend signing up for [ChatGPT Plus or Pro](https://chatgpt.com/pricing).
-2. Run the `/connect` command and search for OpenAI.
+1. Once you've signed up, run the `/connect` command and select OpenAI.
```txt
/connect
```
-3. Enter the API key for the provider.
+2. Here you can select the **ChatGPT Plus/Pro** option and it'll open your browser
+ and ask you to authenticate.
```txt
- ┌ API key
- │
+ ┌ Select auth method
- └ enter
+ │ ChatGPT Plus/Pro
+ │ Manually enter API Key
+ └
```
-4. Run the `/models` command to select the one you want.
+3. Now all the OpenAI models should be available when you use the `/models` command.
```txt
/models
```
+##### Using API keys
+
+If you already have an API key, you can select **Manually enter API Key** and paste it in your terminal.
+
---
### OpenCode Zen