omp packages

pi-beavernet0.1.0

BeaverNet provider extension for the Pi coding agent — a dynamic, self-refreshing catalog of models from https://net.beaverai.org/

synth-mania2811 Published 5 days ago GPL-3.0-or-later ~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-beavernet

A Pi provider extension that registers BeaverNet — a community pool of LLM compute served through one OpenAI-compatible API — as a native model provider.

Models are not pinned in a static list. They are discovered from GET /v1/models on every refresh (startup, /reload, the model selector), so models that appear, are retired, or get renamed show up in Pi — or drop out — without touching this extension. Each refreshed catalog is persisted locally (same mechanism as the built-in refreshed catalogs), so the provider also works offline and in print mode.

Install

pi install git:github.com/synth-mania/pi-beavernet@v0.1.0

(pi install needs the Pi CLI on your PATH; see the Pi docs for package installation.)

Authenticate

The extension ships without any API key — you provide your own:

/login

Pick beavernet, paste your BeaverNet API key (get one here), and it is stored in ~/.pi/agent/auth.json. Your key is never committed to this repo or written anywhere on disk outside that file. Re-run /login to rotate it.

Use

/model

Pick any beavernet/<model-id> — e.g. beavernet/blue/DeepSeek-V4.1-Flash — or pass it in print mode:

pi -p --provider beavernet --model blue/DeepSeek-V4.1-Flash "hello"

How it works

  • Dynamic catalog. Pi refreshes this provider through the extension's refreshModels: the extension fetches the live catalog and returns the models. The composer replaces the extension-provided list with the returned one, so the catalog never goes stale.
  • Alias filtering. The catalog lists alias entries ("is_alias": true) — alternate names for an already-listed canonical model (alias_of points at the canonical id). These are filtered out: they are not separate compute, so they would just add duplicate entries to the model picker.
  • Metadata. contextWindow/maxTokens come from the server's limits (fall back to 128k / 16k when absent). Models with capabilities.vision === "verified" accept images (input: ["text", "image"]).
  • No reasoning flag is set: BeaverNet does not advertise reasoning capability, so Pi treats every model as non-thinking.
  • Persistence. Every successful network refresh is written to ~/.pi/agent/models-store.json (like the built-in llama/openrouter catalogs). Offline and print mode restore the persisted snapshot; in that case no network or key is needed.

Known limitations

  • pi auth check --provider beavernet (and similar extension-less tooling) reports not_ready: those commands build a model runtime without extensions, so any extension-registered provider appears unconfigured — use /login and the normal interactive/print paths instead.
  • There is no ETag/Last-Modified handling: BeaverNet answers conditional requests with 200, so every refresh is a full fetch.
  • Models are reported with zero cost (the API does not advertise per-token pricing).

Uninstall

pi remove git:github.com/synth-mania/pi-beavernet

License

GPLv3 (see LICENSE); the extension header carries the SPDX identifier GPL-3.0-or-later.