pi-nodecode-provider0.1.1
Nodecode Cyber v1 provider extension for the Pi coding agent - 1M context, architectural Zero Data Retention, $0.009/M cached input, and live model discovery.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-nodecode-provider
Provider extension for the Pi coding agent that connects Pi to Nodecode Cyber v1 (nodecode-cyber-v1), operated by Foresight Labs (based in the EU, Netherlands) with architectural Zero Data Retention.
Why Cyber v1 in Pi
- 1M context, 128K output: Run long agent loops over full repositories without premature truncation.
- Architectural Zero Data Retention: Prompts and responses stay in volatile memory only - zero prompt logging, zero training.
- Cache-optimized pricing:
$0.33/Minput,$0.009/Mcached input ($0.036/Mabove 256K context),$1.32/Moutput. See Pricing for current weekday and weekend rates. - Zero startup blocking: Registers verified defaults immediately for offline startup and refreshes model metadata lazily from
GET https://api.nodecode.ai/v1/modelswith Pi's persisted model store. - Reasoning + tool calls: Maps Cyber v1's reasoning stream (
delta.reasoning),max_tokens, and thinking effort levels (low,high,max) directly onto Pi'sopenai-completionsimplementation.
Install
pi install npm:pi-nodecode-provider
Or try it for a single session without modifying settings:
pi -e npm:pi-nodecode-provider
Authenticate
Create a sk-nc-... API key at nodecode.ai/account/keys (or provision one programmatically via crypto/x402 with the agent onboarding guide), then export it:
export NODECODE_API_KEY="sk-nc-..."
You can also store the key under "nodecode" in ~/.pi/agent/auth.json.
Usage
pi --model nodecode/nodecode-cyber-v1
Or switch interactively inside Pi:
/modeland selectnodecode / Cyber v1/thinkingto toggle reasoning or pick an effort level (low,high,max)
Full endpoint and wire documentation: nodecode.ai/docs/cyber.
Configuration
| Environment variable | Default | Description |
|---|---|---|
NODECODE_API_KEY |
- | Your Nodecode API key (sk-nc-...) |
NODECODE_BASE_URL |
https://api.nodecode.ai/v1 |
Optional OpenAI-compatible base URL override |
Standard ~/.pi/agent/models.json modelOverrides and baseUrl settings compose cleanly over this provider.
Development
npm install
npm run typecheck
npm test
License
MIT - Copyright (c) 2026 Foresight Labs.