@d3ara1n/pi-provider-agnes

extensionmaintained

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

by — · v1.2.0 · published 4w ago

$ pi install npm:@d3ara1n/pi-provider-agnes
downloads/mo
282
stars
17
last push
2d ago
open issues
4

Signals

license: MITtestspi manifest: missinginstall size: —deps: 0peer deps: 0

Download trend

789 downloads · last 12 weeks (weekly)

README

@d3ara1n/pi-provider-agnes

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 cost values are 0 (no cost shown). Update when Agnes publishes pricing — use the non-discounted regular-period price (see PROVIDER.md).

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 models:

ModelReasoningInputContextMax Output
agnes-2.0-flashYestext, image256K64K
agnes-1.5-flashNotext, image256K64K

Installation

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. See plans/pi-provider-agnes.md for the integration plan.