feat(console): connect named go subscribers

This commit is contained in:
vprdev 2026-08-03 11:56:34 -04:00
commit 86e4631993
28 changed files with 367 additions and 4194 deletions

View file

@ -57,6 +57,21 @@ When several credential sources exist, OpenCode uses the stored credential first
<Callout type="warning">Do not commit API keys or authorization headers to your repository.</Callout>
## OpenCode Console
OpenCode Console uses browser device authorization for a named user account:
```bash
opencode console login
```
After authorization, OpenCode loads the Console-managed model configuration into the `opencode` provider. An explicit
Console server URL may be passed for a custom deployment; the default is `https://opencode.ai/console`.
[OpenCode Go](/go) subscriptions use this named-user flow and the `opencode` provider. Do not copy an API key. API-key
and service-account connections remain available for ordinary managed inference, but they are not eligible for Go
subscription access.
## Configure
The `providers` object is keyed by provider ID. Each provider accepts these fields:

View file

@ -0,0 +1,36 @@
---
title: "OpenCode Go"
description: "Connect a named OpenCode Go subscription to OpenCode."
---
OpenCode Go is a low-cost subscription for popular open coding models. Go access belongs to the named person who
subscribes and is available through OpenCode's `opencode` provider.
<Callout type="note">
OpenCode Go does not use a copied API key. Service accounts and other coding agents are not eligible.
</Callout>
## Subscribe
Subscribe in [OpenCode Console](https://opencode.ai/console/go). The subscription is attached to your Console account.
## Connect OpenCode
Run the Console device login:
```bash
opencode console login
```
OpenCode opens a browser authorization page. Approve the device for your Console account. The CLI then loads the
`opencode` provider configuration for your organization.
For the initial launch, an account with exactly one organization connects automatically. If your account has no
organization or belongs to multiple organizations, login stops with instructions instead of choosing one implicitly.
## Use Go models
Choose a model from the `opencode` provider in OpenCode. No separate Go provider or endpoint configuration is required.
API keys and service-account credentials can still connect ordinary OpenCode managed inference. They do not grant
OpenCode Go subscription access.

View file

@ -104,10 +104,10 @@ Run `/connect` in the TUI and select your provider.
```
If you'd like easy access to all the best coding models you can try out
[OpenCode Console](https://console.opencode.ai).
[OpenCode Console](https://opencode.ai/console).
You can also try [OpenCode Go](https://opencode.ai/go) a $10/month subscription
plan that grants you access to the best open source models.
You can also try [OpenCode Go](/go), a subscription for a named OpenCode user that grants access to popular open coding
models through the `opencode` provider.
Use `/models` to browse the providers and models available to your project. See [Providers](/providers) for connection and
configuration details.