Skip to main content
Manage authentication for the OpenCode agent provider. Connect with an OpenRouter API key, or upload the auth.json that your local opencode auth login wrote, so the OpenCode agent can run in Aether workspaces. See connect agent providers.
For connect, log in with opencode auth login first. The command reads ${XDG_DATA_HOME:-~/.local/share}/opencode/auth.json and uploads its contents verbatim.

Usage

Subcommands

aether opencode connect

Reads your local OpenCode auth.json and uploads its bytes.

aether opencode api-key

Save an OpenRouter key without installing OpenCode locally. The command prompts securely when --api-key is omitted. Saving a key preserves any other providers already imported into the OpenCode connection.

aether opencode status

Show whether OpenCode auth is configured.
When nothing is configured, the command prints OpenCode: not configured and points you to connect.

aether opencode disconnect

Remove the stored OpenCode auth.

See also