omp packages

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.

GitHub Actions Published 1 day ago MIT ~0 downloads/mo

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.

Did it work for you?

Result

One report per person. A new report replaces your old one.

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/M input, $0.009/M cached input ($0.036/M above 256K context), $1.32/M output. 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/models with 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's openai-completions implementation.

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:

  • /model and select nodecode / Cyber v1
  • /thinking to 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.