pi-crof
v1.2.1
Published
CrofAI provider extension for pi
Downloads
1,269
Maintainers
Readme
pi-crof

A minimal pi extension that adds the CrofAI model provider via an OpenAI-compatible API.
Files
index.ts— registers thecrofprovider and model list.test.ts— integration checks (/models, chat completions, streaming, reasoning,/usage_api/)..gitleaks.toml— secret scanning rules.
Install
pi install npm pi-crofAPI key
Supported sources (in priority order):
CROF_API_KEYenvironment variable~/.pi/agent/auth.json→crof.key
Example auth.json fragment:
{
"crof": {
"type": "api_key",
"key": "nahcrof_..."
}
}Usage
In pi:
/model crof/deepseek-v4-flashRun tests
git clone [email protected]:ZoRDoK/pi-crof.git
cd pi-crof
npx tsx test.tsSecret scan (gitleaks)
cd pi-crof
gitleaks dir . --config .gitleaks.tomlNotes
- Do not commit real API keys to the repository.
- Keep local secrets in env vars or
~/.pi/agent/auth.json.
