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.1.0
Published
Jun 15, 2026
Downloads
73/mo · 16/wk
Author
lucacesari
License
MIT
Types
extension
Size
11.7 KB
Dependencies
2 dependencies · 2 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. Create a configuration file at ~/pi/agent/modelsdev-config.json:

    {
      "providers": [
        "cortecs",
        "scaleway"
      ]
    }
    
  2. Add your API keys for each provider in ~/.pi/agent/auth.json:

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

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.