pi-models-dev-providers

A pi-coding-agent extension to use model.dev providers

Packages

Package details

extension

Install pi-models-dev-providers from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-models-dev-providers
Package
pi-models-dev-providers
Version
1.2.2
Published
Aug 25, 2026
Downloads
381/mo · 8/wk
Author
lucacesari
License
MIT
Types
extension
Size
18.2 KB
Dependencies
1 dependency · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-models-dev-providers

A pi-coding-agent extension to use model.dev providers.

Installation

From npm

pi install npm:pi-models-dev-providers

From git repository

pi install git:codeberg.org/lucacesari/pi-models-dev-providers.git

From a local checkout

pi install /path/to/pi-models-dev-providers

Configuration

  1. Start pi, run the command /modelsdev-select and choose the required providers.

  2. Add your API keys for each provider in ~/.pi/agent/auth.json

    {
      "cortecs": {
        "type": "api_key",
        "key": "your-api-key-here"
      }
    }
    

    or set the matching *_API_KEY environment variable.

Usage

Open pi and type /models to select a model from your configured providers.

Use /modelsdev-refresh to manually refresh the models list when:

  • you change the configuration;
  • new models become available on models.dev.

Tested Providers

This extension has been tested with the following providers:

  • cortecs
  • scaleway

If you have access to other models.dev providers, feel free to test and submit pull requests.

Note: Only OpenAI-compatible providers are supported at the moment.

Credits

Inspired by the generate-model.ts script in pi-coding-agent.