← Catalog

pi-crusoe

Crusoe Managed Inference provider for pi: GLM-5.2, Kimi K2.6, gpt-oss-120b, Nemotron 3 and more via CRUSOE_API_KEY

Provider

Install

Install with PiG

pig install npm:pi-crusoe

Install with Pi

pi install npm:pi-crusoe
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./extensions/crusoe.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.0 (README.md). PiG does not review it.

pi-crusoe

Crusoe Managed Inference as a provider for pi. Adds crusoe/* models to /model and pi --list-models, authenticated with CRUSOE_API_KEY.

Install

pi install npm:pi-crusoe

Then set your key and pick a model:

export CRUSOE_API_KEY=...
pi --model crusoe/zai/GLM-5.2

Or store the key with /login crusoe inside pi instead of using the environment variable.

To try it without installing:

pi -e npm:pi-crusoe --list-models crusoe

Models

The catalog comes from models.dev, the same registry pi's built-in providers are generated from. Pricing is USD per million tokens.

ModelContextMax outputInputOutputReasoning
zai/GLM-5.21,000,000131,0721.404.40yes
zai/GLM-5.1200,000131,0721.204.40yes
moonshotai/Kimi-K2.6262,144262,1440.703.50yes, image input
openai/gpt-oss-120b131,07232,7680.050.20yes, effort low/medium/high
google/gemma-4-31b-it262,14432,7680.140.40yes, image input
nvidia/NVIDIA-Nemotron-3-Super-120B-A12B262,144262,1440.302.40yes
nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B262,144262,1440.050.20yes
nvidia/Nemotron-3-Nano-Omni-Reasoning-30B-A3B256,00065,5360.301.83yes, image input
Qwen/Qwen3-235B-A22B-Instruct-2507262,14416,3840.220.80no
deepseek-ai/DeepSeek-V3-0324163,840163,8400.501.50no
meta-llama/Llama-3.3-70B-Instruct128,0004,0960.250.75no

gpt-oss-120b exposes pi's thinking levels (/thinking low|medium|high) through reasoning_effort. The other reasoning models think by default and do not take an effort setting on Crusoe's endpoint.

How the catalog is refreshed

On startup the extension fetches the live Crusoe entry from https://models.dev/api.json with a 1.5 second timeout. If that fails, or if PI_OFFLINE is set, it uses the snapshot bundled in data/crusoe.models.dev.json. New models added to models.dev show up without a package update; the snapshot is refreshed on each release with npm run update-snapshot.

Per-model overrides in ~/.pi/agent/models.json are applied on top, as with any pi provider.

Development

npm install
npm test          # vitest: catalog mapping, provider wiring, request payload, offline fallback
npm run check     # tsc --noEmit

To run against a local pi checkout:

pi -e ./path/to/pi-crusoe --list-models crusoe

Notes

  • The provider uses pi's built-in openai-completions streaming; there is no custom network code in this package.
  • Context-overflow errors from Crusoe's vLLM-backed endpoint match pi's existing overflow patterns, so auto-compaction and retry work unchanged.
  • Issues and pull requests: https://github.com/acheamponge/pi-crusoe

License

MIT