Skip to main content

Module auth

Module auth 

Source
Expand description

auth: Read-only access to OpenCode’s auth.json for API key status display.

OpenCode stores credentials in ~/.local/share/opencode/auth.json with the format: { “provider_id”: { “type”: “api”, “key”: “sk-…” } }

Re-exports§

pub use error::AuthError;
pub use error::Result;
pub use status::ProviderAuthStatus;
pub use status::provider_env_var;

Modules§

error
parser
Parser for OpenCode’s auth.json file.
status
API key status detection for providers.