← Catalog

@zzjcool/pi-custom-endpoint

Pi provider for any compatible endpoint: log in with a base URL, API key, and protocol, and refresh its models automatically

Provider

Install

Install with PiG

pig install npm:@zzjcool/pi-custom-endpoint

Install with Pi

pi install npm:@zzjcool/pi-custom-endpoint
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./extensions/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.0 (README.md). PiG does not review it.

@zzjcool/pi-custom-endpoint

A Pi package that connects to any compatible endpoint. Log in once with a base URL, an API key, and a protocol. Pi refreshes the model list when it starts and whenever you open /model, and keeps the last list for offline use.

Install

pi install npm:@zzjcool/pi-custom-endpoint

Use

Run /login and choose Custom endpoint (URL + key):

  1. Base URL, for example https://example.com/v1
  2. API key
  3. Protocol:
ProtocolTypical endpoints
OpenAI Completionsone-api, new-api, vLLM, Ollama, LM Studio, LiteLLM
OpenAI ResponsesOpenAI Responses API and compatible gateways
Anthropic MessagesClaude API and Anthropic-compatible proxies
Google Generative AIGemini API

Models then appear under the custom-endpoint provider in /model.

Logging in again replaces the endpoint. Only one endpoint is active at a time.

Model metadata

The list comes from GET {baseUrl}/models. Fields are used when the endpoint provides them and fall back otherwise:

FieldFallback
Context window128000
Max output tokens8192
Reasoningdisabled
Image inputtext only
Display namemodel id

Costs are reported as zero. Models whose id contains embedding are skipped.

Authentication follows the protocol: Authorization: Bearer for both OpenAI formats, x-api-key for Anthropic, and ?key= for Google.