@coreinfra/pi-plugin

Pi package that adds [CoreInfra AI Hub](https://hub.coreinfra.ai/) as a model provider.

Packages

Package details

extension

Install @coreinfra/pi-plugin from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@coreinfra/pi-plugin
Package
@coreinfra/pi-plugin
Version
0.3.1
Published
Jul 16, 2026
Downloads
204/mo · 158/wk
Author
pgregory
License
MPL-2.0
Types
extension
Size
23.3 KB
Dependencies
0 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

CoreInfra Pi Plugin

Pi package that adds CoreInfra AI Hub as a model provider.

Usage

pi install npm:@coreinfra/pi-plugin@latest

Authenticate with either an environment variable:

export COREINFRA_API_KEY=...
pi

or from inside pi choose Use an API key and select CoreInfra AI Hub provider:

/login

CoreInfra models are available under the coreinfra/ provider, for example:

pi --model coreinfra/gpt-5.4-nano
pi --model coreinfra/claude-sonnet-4-20250514
pi --model coreinfra/deepseek-v4-pro
pi --model coreinfra/glm-4.7

Configuration

Variable Default Description
COREINFRA_API_KEY CoreInfra API token
COREINFRA_HUB_BASE_URL https://hub.coreinfra.ai CoreInfra Hub base URL

Model availability and prices are loaded from CoreInfra Hub on startup. Model behavior metadata is copied from pi's built-in OpenAI, Anthropic, DeepSeek, and GLM/Zai model definitions.