Skip to content

Hosted API preset for TrustedRouter (OpenAI-compatible, chat only) #581

Open

Description

@jperla

Is your feature request related to a problem? Please describe.
To use TrustedRouter in twinny today you hand-configure an "OpenAI-compatible server" with a remote hostname, https, /v1, an API key, and then type a model id. A hosted preset fills that in.

Describe the solution you'd like
A hosted chat preset for TrustedRouter, wired the same way as the DemonRoute preset (#545):

  • src/common/constants/providers.ts: TrustedRouter: "trustedrouter" in OPEN_AI_COMPATIBLE_PROVIDERS, display name "TrustedRouter".
  • src/common/provider-validation.ts: chat endpoint defaults api.trustedrouter.com, https, /v1.
  • src/webview/providers/presets.tsx: hosted preset with the existing codicon("plug") glyph, default model deepseek/deepseek-v4-flash; any model on the key can be picked instead.
  • preset-trustedrouter blurb in all 14 locale files.

Scope: chat only, like #545. No FIM or embeddings.

About the service
TrustedRouter is a hosted OpenAI-compatible gateway (https://api.trustedrouter.com/v1, chat at /v1/chat/completions) that routes to many providers with one API key. Model ids are vendor-prefixed (e.g. anthropic/claude-sonnet-4.5, deepseek/deepseek-v4-flash), and trustedrouter/auto picks a model per request. GET https://api.trustedrouter.com/v1/models lists the catalog without a key. Docs: https://trustedrouter.com/docs. Keys: https://trustedrouter.com/console/api-keys.

Describe alternatives you've considered
Keep using the generic OpenAI-compatible server form.

I'll open a PR against main like #545 and link it here.

Disclosure: I work on TrustedRouter.

Activity

  1. jperla commented on Nov 20, 2026

    @jperla
    Author

    PR: #582

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions