mirror of
https://github.com/anomalyco/opencode.git
synced 2026-02-01 22:48:16 +00:00
docs: replace deprecated opencode auth login command with /connect across all documentation
Users no longer need to exit the TUI to add providers - they can now use the /connect command directly in the terminal interface. Updated all provider setup instructions to use simplified format with /connect command instead of the deprecated opencode auth login CLI command. Added /connect to TUI commands reference and streamlined provider documentation to show clearer, more concise setup steps.
This commit is contained in:
@@ -362,7 +362,7 @@ You can disable providers that are loaded automatically through the `disabled_pr
|
||||
The `disabled_providers` option accepts an array of provider IDs. When a provider is disabled:
|
||||
|
||||
- It won't be loaded even if environment variables are set.
|
||||
- It won't be loaded even if API keys are configured through `opencode auth login`.
|
||||
- It won't be loaded even if API keys are configured through the `/connect` command.
|
||||
- The provider's models won't appear in the model selection list.
|
||||
|
||||
---
|
||||
|
||||
@@ -132,23 +132,21 @@ If you are new to using LLM providers, we recommend using [OpenCode Zen](/docs/z
|
||||
It's a curated list of models that have been tested and verified by the OpenCode
|
||||
team.
|
||||
|
||||
1. Run `opencode auth login`, select opencode, and head to [opencode.ai/auth](https://opencode.ai/auth).
|
||||
1. Run the `/connect` command in the TUI, select opencode, and head to [opencode.ai/auth](https://opencode.ai/auth).
|
||||
|
||||
```txt
|
||||
/connect
|
||||
```
|
||||
|
||||
2. Sign in, add your billing details, and copy your API key.
|
||||
|
||||
3. Paste your API key.
|
||||
|
||||
```bash
|
||||
$ opencode auth login
|
||||
|
||||
┌ Add credential
|
||||
```txt
|
||||
┌ API key
|
||||
│
|
||||
◇ Select provider
|
||||
│ opencode
|
||||
│
|
||||
● Create an api key at https://opencode.ai/auth
|
||||
│
|
||||
◆ Enter your API key
|
||||
│ _
|
||||
└
|
||||
└ enter
|
||||
```
|
||||
|
||||
Alternatively, you can select one of the other providers. [Learn more](/docs/providers#directory).
|
||||
|
||||
@@ -9,7 +9,7 @@ OpenCode uses the [AI SDK](https://ai-sdk.dev/) and [Models.dev](https://models.
|
||||
|
||||
## Providers
|
||||
|
||||
Most popular providers are preloaded by default. If you've added the credentials for a provider through `opencode auth login`, they'll be available when you start OpenCode.
|
||||
Most popular providers are preloaded by default. If you've added the credentials for a provider through the `/connect` command, they'll be available when you start OpenCode.
|
||||
|
||||
Learn more about [providers](/docs/providers).
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -64,7 +64,7 @@ Here are some common issues and how to resolve them.
|
||||
|
||||
---
|
||||
|
||||
### opencode won't start
|
||||
### OpenCode won't start
|
||||
|
||||
1. Check the logs for error messages
|
||||
2. Try running with `--print-logs` to see output in the terminal
|
||||
@@ -74,7 +74,7 @@ Here are some common issues and how to resolve them.
|
||||
|
||||
### Authentication issues
|
||||
|
||||
1. Try re-authenticating with `opencode auth login <provider>`
|
||||
1. Try re-authenticating with the `/connect` command in the TUI
|
||||
2. Check that your API keys are valid
|
||||
3. Ensure your network allows connections to the provider's API
|
||||
|
||||
@@ -113,10 +113,7 @@ To resolve this:
|
||||
rm -rf ~/.local/share/opencode
|
||||
```
|
||||
|
||||
3. Re-authenticate with your provider:
|
||||
```bash
|
||||
opencode auth login <provider>
|
||||
```
|
||||
3. Re-authenticate with your provider using the `/connect` command in the TUI.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -69,6 +69,16 @@ Here are all available slash commands:
|
||||
|
||||
---
|
||||
|
||||
### connect
|
||||
|
||||
Add a provider to OpenCode. Allows you to select from available providers and add their API keys.
|
||||
|
||||
```bash frame="none"
|
||||
/connect
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### compact
|
||||
|
||||
Compact the current session. _Alias_: `/summarize`
|
||||
|
||||
@@ -51,7 +51,7 @@ OpenCode Zen works like any other provider in OpenCode.
|
||||
|
||||
1. You sign in to **<a href={console}>OpenCode Zen</a>**, add your billing
|
||||
details, and copy your API key.
|
||||
2. You run `opencode auth login`, select opencode, and paste your API key.
|
||||
2. You run the `/connect` command in the TUI, select OpenCode Zen, and paste your API key.
|
||||
3. Run `/models` in the TUI to see the list of models we recommend.
|
||||
|
||||
You are charged per request and you can add credits to your account.
|
||||
|
||||
Reference in New Issue
Block a user