CLIO icon indicating copy to clipboard operation
CLIO copied to clipboard

[Feature]: add Opper provider (opper.ai)

Open Felixkw12 opened this issue 2 months ago • 1 comments

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 from OPPER_API_KEY.
  • supports_streaming => 1, supports_tools => 1. The Chat Completions endpoint supports streaming, tools, and structured output via response_format.
  • route_timeout => 1 like the other gateways, and url_detection_patterns => [ qr{api\.opper\.ai}i ] if you want URL detection as for orca.
  • Model list: GET https://api.opper.ai/v3/compat/models, authenticated, OpenAI shape (data[].id). _fetch_openai_compatible_capabilities strips /chat/completions from api_base and appends /models, so it lands on this URL as is. A public catalogue that needs no key is at GET https://api.opper.ai/v3/models.
  • model_id_format: "model", as for hyper. Ids are bare names such as claude-sonnet-4-6. Each one is a pool that Opper routes across the providers serving that model. provider/model (for example anthropic/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 leave models empty as for orca and vercel and let /api models fetch it.

Notes for the capability fetcher, from the OpenAPI spec (https://api.opper.ai/v3/openapi.yaml):

  • context_length is top level on each /v3/compat/models entry, so the existing lookup reads it.
  • Capabilities and the output limit sit in an opper object on each entry: opper.capabilities is an array of strings (for example tools, vision, structured_output) and opper.max_output_tokens is an integer. The fetcher reads capabilities only as a hash and max_output_tokens only 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-level supports_tools fallback 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 avatar Oct 02 '26 16:10 Felixkw12

@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. :)

fewtarius avatar Oct 03 '26 00:10 fewtarius