LinuxCommandLibrary

opencode-auth

Manage OpenCode credentials

TLDR

Log in to an AI provider

$ opencode auth login
copy
Show current authentication status
$ opencode auth status
copy

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.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard