Pi provider extension for Cohere models.
pi install npm:@aliou/pi-cohere
Set the API key before use:
export COHERE_API_KEY=...
cohere provider in Pi.GET https://api.cohere.com/v1/models when COHERE_API_KEY is available./model or pi update --models.https://api.cohere.ai/compatibility/v1 with Pi’s native openai-completions provider path.pnpm install
pnpm typecheck
pnpm lint
extensions/provider/: Pi extension entry point.src/cohere/: Cohere model mapping and API helpers.Cohere returns usage in response bodies and a num_tokens header for non-streaming chat. I did not see quota, remaining-credit, or rate-limit headers while probing.