update docs and auth methods for openai

This commit is contained in:
Aiden Cline
2026-01-09 18:45:03 -06:00
parent 075fa2c0e8
commit 8b8a358de1
7 changed files with 29 additions and 7 deletions

View File

@@ -195,6 +195,12 @@ export default function Home() {
<strong>Claude Pro</strong> Log in with Anthropic to use your Claude Pro or Max account <strong>Claude Pro</strong> Log in with Anthropic to use your Claude Pro or Max account
</div> </div>
</li> </li>
<li>
<span>[*]</span>
<div>
<strong>ChatGPT Plus/Pro</strong> Log in with OpenAI to use your ChatGPT Plus or Pro account
</div>
</li>
<li> <li>
<span>[*]</span> <span>[*]</span>
<div> <div>

View File

@@ -91,6 +91,9 @@ export default function Home() {
<li> <li>
<strong>Claude Pro</strong> Log in with Anthropic to use your Claude Pro or Max account <strong>Claude Pro</strong> Log in with Anthropic to use your Claude Pro or Max account
</li> </li>
<li>
<strong>ChatGPT Plus/Pro</strong> Log in with OpenAI to use your ChatGPT Plus or Pro account
</li>
<li> <li>
<strong>Use any model</strong> Supports 75+ LLM providers through{" "} <strong>Use any model</strong> Supports 75+ LLM providers through{" "}
<a href="https://models.dev">Models.dev</a>, including local models <a href="https://models.dev">Models.dev</a>, including local models

View File

@@ -294,6 +294,7 @@ export const AuthLoginCommand = cmd({
hint: { hint: {
opencode: "recommended", opencode: "recommended",
anthropic: "Claude Max or API key", anthropic: "Claude Max or API key",
openai: "ChatGPT Plus/Pro or API key",
}[x.id], }[x.id],
})), })),
), ),

View File

@@ -36,6 +36,7 @@ export function createDialogProviderOptions() {
description: { description: {
opencode: "(Recommended)", opencode: "(Recommended)",
anthropic: "(Claude Max or API key)", anthropic: "(Claude Max or API key)",
openai: "ChatGPT Plus/Pro or API key",
}[provider.id], }[provider.id],
category: provider.id in PROVIDER_PRIORITY ? "Popular" : "Other", category: provider.id in PROVIDER_PRIORITY ? "Popular" : "Other",
async onSelect() { async onSelect() {

View File

@@ -411,6 +411,10 @@ export async function CodexAuthPlugin(input: PluginInput): Promise<Hooks> {
} }
}, },
}, },
{
label: "Manually enter API Key",
type: "api",
},
], ],
}, },
} }

View File

@@ -78,6 +78,7 @@ if (image) {
<li><b>Multi-session</b>: Start multiple agents in parallel on the same project.</li> <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>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>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> <li><b>Use any model</b>: Supports 75+ LLM providers through <a href="https://models.dev">Models.dev</a>, including local models.</li>
</ul> </ul>
</section> </section>

View File

@@ -1071,29 +1071,35 @@ To use Ollama Cloud with OpenCode:
### OpenAI ### 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 ```txt
/connect /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 ```txt
API key Select auth method
ChatGPT Plus/Pro
└ enter │ 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 ```txt
/models /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 ### OpenCode Zen