opencode-auth

Manage OpenCode credentials

TLDR

Log in to an AI provider
$ opencode auth login
Show current authentication status
$ opencode auth status

SYNOPSIS

opencode auth subcommand [options]

DESCRIPTION

opencode auth manages credentials and login sessions for AI providers used by OpenCode. Credentials are stored in ~/.local/share/opencode/auth.json. Supports authentication with providers including OpenAI, Anthropic, Google, AWS Bedrock, and GitHub Copilot.

INSTALL

sudo pacman -S opencode
brew install opencode
nix profile install nixpkgs#opencode

SEE ALSO

opencode(1), opencode-models(1)