omp packages

@dsnbyte/pi-cheaper-inference0.1.1

Pi extension that adds the Cheaper Inference provider with API key login and a curated model picker

dsnbyte Published 12 days ago MIT ~509 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-cheaper-inference

A Pi extension that adds the Cheaper Inference provider with API key login and a curated model picker.

Cheaper Inference is an inference API provider offering unified access to models from multiple upstream providers. pi-cheaper-inference integrates it into Pi so you can authenticate with your API key, choose the models you want with /cheaper-inference-models, and use them in Pi via /model.

Features

  • API Key Authentication: Sign in via /login or the CHEAPER_INFERENCE_API_KEY environment variable.
  • Interactive Model Picker: Search and filter available models, inspect pricing and capabilities, and toggle the ones you want.
  • Persistent Selection: Saves your chosen models across Pi sessions.
  • Live Registration: Updates Pi's /model list as soon as you close /cheaper-inference-models.

Installation

pi install npm:@dsnbyte/pi-cheaper-inference

Try Without Installing

You can test the extension in a single Pi session without modifying your settings:

pi -e npm:@dsnbyte/pi-cheaper-inference

Setup

  1. Create an account and API key in the Cheaper Inference dashboard (requires a funded wallet).
  2. Authenticate in Pi using either method:
    • Run /login, select Cheaper Inference, and paste your API key.
    • Or export the environment variable before launching Pi:
export CHEAPER_INFERENCE_API_KEY=ci_live_your_key

Usage

Open the model selector inside an active Pi session:

/cheaper-inference-models

In the interactive picker:

  • Type to filter models by ID, owner, or provider.
  • Up / Down / PgUp / PgDn / Home / End to move through the list.
  • Space to toggle whether a model is included.
  • Enter to activate the highlighted model, set it as the active model, save, and close.
  • Ctrl+R (or F5) to manually refresh the model list from the provider.
  • Esc to save your selection and update /model.

You can also run /cheaper-inference-models refresh to force an immediate catalog refresh when opening the menu.

After selecting models, switch to any of them with /model.

Configuration

Selected model snapshots are stored at ~/.pi/agent/cheaper-inference.json:

{
  "models": [
    {
      "type": "chat",
      "id": "gemini-4-neon",
      "name": "gemini-4-neon"
    }
  ]
}

For full provider documentation, see cheaperinference.com/docs.

License

MIT