Install
Install with PiG
pig install npm:pi-crusoeInstall with Pi
pi install npm:pi-crusoePackages 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.
| Model | Context | Max output | Input | Output | Reasoning |
|---|---|---|---|---|---|
zai/GLM-5.2 | 1,000,000 | 131,072 | 1.40 | 4.40 | yes |
zai/GLM-5.1 | 200,000 | 131,072 | 1.20 | 4.40 | yes |
moonshotai/Kimi-K2.6 | 262,144 | 262,144 | 0.70 | 3.50 | yes, image input |
openai/gpt-oss-120b | 131,072 | 32,768 | 0.05 | 0.20 | yes, effort low/medium/high |
google/gemma-4-31b-it | 262,144 | 32,768 | 0.14 | 0.40 | yes, image input |
nvidia/NVIDIA-Nemotron-3-Super-120B-A12B | 262,144 | 262,144 | 0.30 | 2.40 | yes |
nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B | 262,144 | 262,144 | 0.05 | 0.20 | yes |
nvidia/Nemotron-3-Nano-Omni-Reasoning-30B-A3B | 256,000 | 65,536 | 0.30 | 1.83 | yes, image input |
Qwen/Qwen3-235B-A22B-Instruct-2507 | 262,144 | 16,384 | 0.22 | 0.80 | no |
deepseek-ai/DeepSeek-V3-0324 | 163,840 | 163,840 | 0.50 | 1.50 | no |
meta-llama/Llama-3.3-70B-Instruct | 128,000 | 4,096 | 0.25 | 0.75 | no |
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-completionsstreaming; 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