CrofAI provider plugin for OpenCode - auth, model discovery
- API Key Authentication - Login with your CrofAI API key
- Auto Model Discovery - Models fetched dynamically from CrofAI API
Run the setup script to install everything automatically:
bunx opencode-crof-authThis will:
- Install the plugin via
opencode plugin - Add the crofai provider to your opencode.json
You can also provide your API key directly:
bunx opencode-crof-auth nahcrof_your-api-keyOr specify a custom config path (any order):
bunx opencode-crof-auth /path/to/config.json nahcrof_your-api-keyIf you prefer to do it step by step:
# 1. Install the plugin
opencode plugin opencode-crof-auth -g
# 2. Add the provider config to your opencode.json:
{
"provider": {
"crofai": {}
}
}- Run
opencode auth loginand search for "crofai" in the interactive prompt - Enter your API key (starts with
nahcrof_) - Select a CrofAI model using
/modelsor setmodel: crofai/xxxin your config
Note: Direct command
opencode auth login crofaimay not work on some OpenCode versions. Use the interactive search instead.
MIT