← Catalog

@d3ara1n/pi-provider-agnes

Agnes AI provider for pi — registers agnes (token billing) and agnes-plan (subscription) providers with text and image input models

Extension

Install

Install with PiG

pig install npm:@d3ara1n/pi-provider-agnes

Install with Pi

pi install npm:@d3ara1n/pi-provider-agnes
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": [
    "./src/index.ts"
  ]
}

README

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

@d3ara1n/pi-provider-agnes

npm version npm downloads license

Agnes AI provider for pi — registers two providers sharing the same text + image models but differing in billing model.

Providers

Provider IDNameBillingAPI Key Env
agnesAgnes AIToken billing$AGNES_API_KEY
agnes-planAgnes AI (Token Plan)Subscription plan$AGNES_PLAN_API_KEY

agnes

Token-based billing provider. Agnes has not published official token pricing, so pi shows no cost estimates for these models.

agnes-plan

Subscription plan provider. Cost set to zero — the subscription fee is a fixed monthly charge, not per-token.

Models

Both providers export the same chat model list, refreshed from the live API (GET /v1/models) when the cached snapshot is stale — at most once every 4 hours, matching pi's built-in catalog cadence. pi update --models forces an immediate refresh; the last-seen catalog is restored on offline startups. The endpoint returns ids only, so context windows, modalities and thinking behavior fall back to the shipped specs per model id; models new to the catalog get family defaults (text+image input, Qwen-style thinking toggle). Image-generation (agnes-image-*) and video-generation (agnes-video-*) models are excluded automatically.

Shipped chat specs (verified against the live catalog 2026-10-10):

ModelReasoningInputContextMax Output
agnes-2.5-flashYestext, image512K65.5K
agnes-2.0-flashYestext, image256K64K
agnes-2.5-pro / -beta / -alphaYestext, image256K*64K*
agnes-3.0-flash / -flash-maxYestext, image256K*64K*

* endpoint publishes no metadata — family defaults, pending a live check. agnes-1.5-flash is no longer listed by the live catalog and was removed (2026-10); it re-registers automatically if it returns.

pi install npm:@d3ara1n/pi-provider-agnes

Or add to ~/.pi/agent/settings.json:

{
  "extensions": [
    "/absolute/path/to/pi-extensions/packages/pi-provider-agnes"
  ]
}

Set your API key(s) via environment variable:

export AGNES_API_KEY="sk-..."       # for agnes provider
export AGNES_PLAN_API_KEY="sk-..."  # for agnes-plan provider

Or configure via /login or auth.json.

Dependencies

None — this is a standalone provider with no pi-extension dependencies. It uses pi's built-in openai-completions streaming.

Usage Quota Reporting

Not yet implemented — Agnes AI does not currently expose a public quota or balance API. When one becomes available, quota reporting will be added via @d3ara1n/pi-usage-block-core.