← Catalog

pi-opencode-free

Zero-daemon, pure-passthrough native Pi extension connecting directly to OpenCode Zen API

Package

Install

Install with PiG

pig install npm:pi-opencode-free

Install with Pi

pi install npm:pi-opencode-free
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": [
    "./dist/index.js"
  ]
}

README

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

Pi-opencode-free

Free OpenCode models in Pi, no API key.

Why

The Pi CLI already ships an opencode provider, but through it the models only run on paid plans. This extension hits the same endpoint and removes the need for a paid plan: it discovers the models advertised as free and sends the OpenCode client headers (x-opencode-client, x-opencode-project, User-Agent) on every request, which authorizes free, keyless usage.

Everything else is Pi's native openai-completions engine: streaming, reasoning, tools. Nothing is intercepted or rewritten.

Install

pi install npm:pi-opencode-free

Usage

Pick any (Free) model in Pi's model selector. The free-model catalog is managed natively by Pi: it loads instantly from a persisted snapshot and refreshes itself in the background on interactive startup or when opening the model selector.

Issues & contributions

Found a problem? Open an issue. Contributions are welcome.

Development

Uses Bun

bun install
bun test src/            # unit tests
bun scripts/smoke-real.ts  # live request against Zen
FilePurpose
src/discovery.tsFree-model discovery (Zen + models.dev enrichment)
src/index.tsNative provider registration and snapshot persistence

License

GPL-3.0-or-later — © 2026 pi-opencode-free contributors