opencode-crof-authCrofAI authentication provider plugin for OpenCode
0
101
2 in 7 days
25.6
Multi-signal model
4 months ago
2026-04-14
Install and configure
opencode.jsonWrites to this project's opencode.json — applies to this repository only.
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-crof-auth@0.3.2"]
}Writes to ~/.config/opencode/opencode.json — applies to every project.
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-crof-auth@0.3.2"]
}If you want to modify the plugin locally, install it into the project and reference the local path.
shell
pnpm add -D opencode-crof-authopencode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.
CrofAI provider plugin for OpenCode - auth, model discovery
Features
- API Key Authentication - Login with your CrofAI API key
- Auto Model Discovery - Models fetched dynamically from CrofAI API
Quick Setup
Run the setup script to install everything automatically:
bunx opencode-crof-auth
This will:
- Install the plugin via
opencode plugin - Add the crofai provider to your opencode.json
Direct Login
You can also provide your API key directly:
bunx opencode-crof-auth nahcrof_your-api-key
Or specify a custom config path (any order):
bunx opencode-crof-auth /path/to/config.json nahcrof_your-api-key
Manual Installation
If 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": {}
}
}
Usage
- 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.
Credits
License
MIT