Providers & Credentials

A Provider (/providers) represents one upstream API or subscription connection managed by a built-in profile (Stravia Base Providers) or an installed Wasm vendor plugin.

Add provider drawer with OpenAI selected in Stravia WebUI

Prerequisites

  • Vendor plugin ready: Built-in providers (OpenAI, Anthropic, DeepSeek, Alibaba Bailian, Volcengine Ark, BytePlus, MiniMax, and more) are available immediately. Dedicated subscription vendors (such as OpenAI Codex, Claude Code, Kiro CLI, Antigravity, xAI Grok, Devin, Command Code, OpenCode Free) require installing the corresponding vendor plugin first (unless running a Nix build with bundled vendors).
  • Credentials or OAuth access: An API key, custom base URL if required, or access to complete an OAuth / Refresh Token flow.

Steps

  1. Create a provider connection

    Open Setup → Providers → Add provider, pick a vendor and channel, enter your connection name and credentials, and choose how outbound traffic routes under Proxy (proxy_mode):

    • Use system proxy (system, default for new connections): Uses the OS proxy on Desktop or process proxy environment variables (HTTP_PROXY / HTTPS_PROXY / ALL_PROXY / NO_PROXY) on Server, falling back to a direct connection when none is configured.
    • No proxy (none): Forces a direct connection.
    • Saved proxies (<proxy_id>): Routes traffic through a named proxy configured under Settings → Network → Proxy.
    OAuth sign-in, sign-in links, and Refresh Tokens

    For OAuth-capable plugins, you can open the login URL directly or click Copy sign-in link to complete authorization in another browser. Supported connections (OpenAI Codex, Claude Code, Antigravity, xAI Grok, Devin) also expose a Refresh token tab with Verify & authorize—Stravia exchanges and verifies the token upstream rather than saving a raw token blindly.

  2. Manage provider tabs (/providers/[id])

    Click any provider row to open its four management tabs (persisted in the URL via ?view=connection|models|routes|cost):

    • Connection settings: Edit name, base URL, proxy selection (proxy_mode), enabled state, or re-test credentials.
    • Upstream models: Inspect discovered models, set per-model upstream RPM limits, toggle Automatic sync, or run a manual sync.
    • Linked models: View every logical Model ID route currently targeting this provider.
    • Cost: Configure how Stravia calculates attempt costs for this provider.
  3. Track catalog updates with Change history

    Stravia syncs discovered models at startup and hourly when automatic sync is enabled (retaining 90 days of history across renames or deletions). Open Change history from the Providers page to filter additions, removals, deprecations, and specification diffs by source (Automatic sync, Manual sync, or Manual change).

  4. Set a Cost plan (Not tracked / Usage-based / Subscription-based)

    On the provider's Cost tab, choose one of three cost bases:

    • Not tracked (none): Omits provider cost tracking without generating "unknown cost" warnings (client route billing remains independent).
    • Usage-based (usage, default): Calculates per-attempt costs from token pricing tables.
    • Subscription-based (subscription): Records a monthly or yearly subscription price and computes a subscription value multiple (equivalent usage value / subscription cost) over 24h, 7d, and 30d windows.

    When a vendor plugin reports official billing metadata in its allowance snapshot, Stravia shows a suggestion banner you can accept or dismiss (never written automatically).

Verify

  • On /providers, confirm the connection shows healthy credential status and a synced upstream model count.
  • Open Upstream models and verify expected models appear as available before binding them to routes.

Troubleshooting

  • Provider shows invalid credentials after transient OAuth glitch: Re-open Connection settings or re-authorize via OAuth sign-in; transient OAuth network errors are distinguished from revoked credentials, and an invalid status pauses automatic model sync.
  • Expected subscription vendor is missing from Add provider: Open System → Vendor plugins to install the vendor plugin from the marketplace or import its .wasm.zst file.

Next