hyperframes icon indicating copy to clipboard operation
hyperframes copied to clipboard

[Feature Request] Support custom AI providers via configurable API endpoint and API key

Open Drjacky opened this issue 1 month ago • 4 comments

Problem

Description

It would be great if HyperFrames allowed users to configure their own AI providers by specifying a custom API endpoint and API key, instead of being limited to predefined providers.

Benefits

  • Flexibility: Use any OpenAI-compatible provider.
  • Self-hosting: Connect to locally hosted or private models.
  • Cost control: Choose providers based on pricing and performance.
  • No vendor lock-in: Avoid depending on a fixed list of supported providers.

Expected Behavior

Users should be able to provide a custom base URL, API key, and model name, and have HyperFrames use that provider without requiring changes to the source code.

Proposed solution

Allow users to define a custom provider through configuration or the app.

For example:

{
  "provider": "custom",
  "baseUrl": "https://api.example.com/v1",
  "apiKey": "${CUSTOM_API_KEY}",
  "model": "my-custom-model"
}

Ideally, this would support OpenAI-compatible APIs, making it possible to use self-hosted models, private inference endpoints, and third-party AI providers.

Alternatives considered

No response

Additional context

No response

Drjacky avatar Oct 11 '26 16:10 Drjacky

Thanks. Which feature do you want to point at a custom provider: image captioning in hyperframes capture, snapshot --describe, or something else? Those are the only places we call a model today, and capture already takes any OpenRouter model.

jrusso1020 avatar Oct 13 '26 20:10 jrusso1020

3. Thanks. Which feature do you want to point at a custom provider: image captioning in hyperframes capture, snapshot --describe, or something else? Those are the only places we call a model today, and capture already takes any OpenRouter model.

Not limited to a specific feature; it's just user might have a provider not listed in the app, including custom providers on bedrock, or through a third-party proxy.

Drjacky avatar Oct 14 '26 08:10 Drjacky

For our use case the important surface is hyperframes capture image captioning (not snapshot--describe). Ideal API would be: set baseURL + API key + vision model id, then POST OpenAI-style /chat/completions the same way the OpenRouter branch already does.

That would also cover mainland-reachable OpenAI-compatible vision endpoints and self-hosted ones, without depending on OpenRouter/Vertex/Gemini. We work on PowerTokens and are happy to smoke-test a PR against a Chat Completions vision endpoint if useful.

PowerTokens avatar Oct 20 '26 06:10 PowerTokens

Closing as a duplicate of #4846: the discussion here narrowed to capture descriptions through an OpenAI-compatible endpoint, which #4846 tracks and #4849 implements.

jrusso1020 avatar Oct 24 '26 00:10 jrusso1020