pi-crofai

CrofAI provider for Pi — self-contained, auto-discovers models, supports env var or /login paste

Package details

extension

Install pi-crofai from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-crofai
Package
pi-crofai
Version
1.0.3
Published
May 5, 2026
Downloads
286/mo · 176/wk
Author
slimewell
License
MIT
Types
extension
Size
3.8 KB
Dependencies
0 dependencies · 0 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-crofai

CrofAI provider for Pi — self-contained, auto-discovers models, supports env var or /login paste.

Install

pi install npm:pi-crofai

Usage

Option 1: Environment variable

Set CROFAI_API_KEY in your shell:

export CROFAI_API_KEY=your-key-here
pi

Option 2: Paste via /login

No env var needed. Just run inside Pi:

/login → "Use an API key" → select "crofai" → paste your key

Pi stores it in ~/.pi/agent/auth.json — one-time setup, persists forever.

What it does

  • Fetches all available CrofAI models from https://crof.ai/v1/models
  • Registers them with correct context windows, pricing, and capability flags
  • Supports reasoning models with proper reasoningEffort mapping
  • ✅ Vision models (Kimi K2.6, Kimi K2.5, Gemma 4, Qwen 3.5, etc.) advertise image input — the built-in read tool sends images as base64 attachments so models can see them