[Feature]: add Opper provider (opper.ai)
Pre-submission Checklist
- [x] I have searched existing issues and discussions
- [x] I have read the documentation
- [x] This is a feature request, not a bug report
Problem Statement
CLIO has gateway providers for OpenRouter, OrcaRouter, KiloCode, Vercel AI Gateway and Charm Hyper. Opper is an OpenAI-compatible gateway that is not on the list, so using it today means setting it up as a custom endpoint by hand.
Opper is an EU-hosted AI gateway: one OpenAI-compatible API and one key for 700+ models from 30+ providers, including Claude, GPT, Gemini, DeepSeek and Kimi.
Proposed Solution
Add opper as an OpenAI-compatible provider, the same way #33 added hyper in 907636c. The values:
- Registry key and name:
opper,Opper api_base:https://api.opper.ai/v3/compat/chat/completions- Auth:
Authorization: Bearer <key>(requires_auth => 'apikey'). Keys are created at https://platform.opper.ai. Other tools read the key fromOPPER_API_KEY. supports_streaming => 1,supports_tools => 1. The Chat Completions endpoint supports streaming, tools, and structured output viaresponse_format.route_timeout => 1like the other gateways, andurl_detection_patterns => [ qr{api\.opper\.ai}i ]if you want URL detection as fororca.- Model list:
GET https://api.opper.ai/v3/compat/models, authenticated, OpenAI shape (data[].id)._fetch_openai_compatible_capabilitiesstrips/chat/completionsfromapi_baseand appends/models, so it lands on this URL as is. A public catalogue that needs no key is atGET https://api.opper.ai/v3/models. model_id_format:"model", as forhyper. Ids are bare names such asclaude-sonnet-4-6. Each one is a pool that Opper routes across the providers serving that model.provider/model(for exampleanthropic/claude-sonnet-4-6) pins one route and also works.- Default model:
claude-sonnet-4-6. Other ids checked as pooled in the public catalogue on 2026-10-02:claude-opus-5,gpt-5.5,gpt-5.4-mini,gemini-3.8-flash,deepseek-v4-pro,kimi-k3. provider-mapping.json: the live list has 700+ models, so I would either list only the ids above or leavemodelsempty as fororcaandverceland let/api modelsfetch it.
Notes for the capability fetcher, from the OpenAPI spec (https://api.opper.ai/v3/openapi.yaml):
context_lengthis top level on each/v3/compat/modelsentry, so the existing lookup reads it.- Capabilities and the output limit sit in an
opperobject on each entry:opper.capabilitiesis an array of strings (for exampletools,vision,structured_output) andopper.max_output_tokensis an integer. The fetcher readscapabilitiesonly as a hash andmax_output_tokensonly at the top level, so vision and max output would need a few lines there, or fall back to heuristics. Tools is already covered by the provider-levelsupports_toolsfallback from 907636c.
Which area would this affect?
API / Provider Integration
Alternatives Considered
Configuring Opper by hand as a custom OpenAI-compatible endpoint with the base URL above. That is possible, but the user has to know and type the endpoint, and there is no default model or provider entry to pick.
Examples / References
- Precedent: #33 and 907636c (Charm Hyper)
- API reference: https://api.opper.ai/v3/openapi.yaml
- Docs: https://docs.opper.ai
- Models: https://opper.ai/models
- Opper is also listed on models.dev as provider
opper.
Would you be willing to contribute?
Yes, I'd like to implement this
Additional Context
I am happy to send a PR touching the same files as 907636c, or to leave it to you if you prefer to add providers yourself.
Disclosure: I work at Opper.
@Felixkw12 if you want to send the PR, I'll be happy to merge it. Thanks for offering to bring support for Opper to CLIO. :)