Skip to content
Back

Provider keysPro

Settings for your own API keys: a row per provider with its logo, a masked key, health and last use; peek at a key briefly, copy it, rotate it, or delete it with Undo, and new keys are verified before saving.

oxyn add provider-keys

Provider keys

Bring your own keys. They are encrypted and only used for your workspace.

  • OpenAIActive
    sk-proj-••••••••b1e4Used 2 min ago · $41.80 this month · 120/500 rpm · All projects
  • AnthropicNear limit
    sk-ant-••••••••4f9aUsed just now · $128 this month · 46/50 rpm · Support bot
  • Google AIInvalid
    AIza••••••••c3d7Used 12 days ago · $0.00 this month · 0/60 rpm · All projects
$170 this month across 3 keys
The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • Bring your own API keys: one row per provider with its mark, the masked key, status and last use.

When not to use

Installation

Provider keys is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add provider-keys

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Keys

Three keys: active, near the limit and invalid.

Provider keys

Bring your own keys. They are encrypted and only used for your workspace.

  • OpenAIActive
    sk-proj-••••••••b1e4Used 2 min ago · $41.80 this month · 120/500 rpm · All projects
  • AnthropicNear limit
    sk-ant-••••••••4f9aUsed just now · $128 this month · 46/50 rpm · Support bot
  • Google AIInvalid
    AIza••••••••c3d7Used 12 days ago · $0.00 this month · 0/60 rpm · All projects
$170 this month across 3 keys
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Add

Adding a key, tested before save (Oxyn extra spend readout off).

Provider keys

Bring your own keys. They are encrypted and only used for your workspace.

  • OpenAIActive
    sk-proj-••••••••b1e4Used 2 min ago
  • AnthropicNear limit
    sk-ant-••••••••4f9aUsed just now
  • Google AIInvalid
    AIza••••••••c3d7Used 12 days ago
Keys start with ms-
$170 this month across 3 keys
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Empty

No keys yet.

Provider keys

Bring your own keys. They are encrypted and only used for your workspace.

No keys yetAdd a key from OpenAI, Anthropic, Google and others to use your own quota.
    $-0.00 this month across 0 keys
    Code Pro
    The code is part of Oxyn Pro

    The preview is free. Pro opens the code of every Pro component, screen and template.

    Get Pro

    API reference

    ProviderKeys

    PropTypeDefaultDescription
    nowrequiredClockMs—Host clock.
    emptyboolDefault::default()Start with no keys (empty state).
    usagebooltrueShow spend and rate-limit use per key (Oxyn extra).
    addingboolDefault::default()Open the add form on mount.

    Read from the Rust signature and doc comments.

    Keyboard interactions

    KeyAction
    TabAdd key, then each row's Reveal, Copy, Rotate, Remove
    EnterSave the form
    EscapeClose the form

    Accessibility

    • Each key reads its provider and whether it is shown or hidden; Reveal is a toggle button with a countdown.
    • Status is a word with an icon or dot, never colour alone.
    • Removing announces Undo; the test result is announced.
    • The key input is a password field with aria-invalid after a failed test.
    From the spec

    Reveal, Copy, Rotate, Remove are labelled per provider; test results go to the live region; Undo is reachable before it expires. Every action returns the line the polite live region announces. The focus outline shows only for keyboard focus.

    Motion & interaction

    Reveal shows the key with a countdown ring; Copy flashes Copied; Remove collapses the row and offers Undo.

    Timing

    Everything on screen is derived from the host clock now (no timers in the component), so playback, tests and the GPUI view agree.

    TransitionDurationEasing
    Reveal5000 ms (REVEAL_MS)linear ring
    Undo window6000 ms (UNDO_MS)—
    Key test900 ms (TEST_MS)—

    Reduced motion: streamed text and moves appear at their end state; progress still advances, without travel animation.

    Responsive behaviour

    • Under 480 px the actions move under the key.
    • Long keys and usage lines ellipse instead of wrapping.
    Edge cases (spec)

    Keys are always masked except while revealed; long provider names truncate. Every key is fictional sample data. Checked at 1440, 768 and 390 px in light and dark with no text overlap. Chrome is monochrome grey; colour is semantic only (success, warning, danger, info) plus the providers' coloured brand marks.

    Notes for AI

    • Import ProviderKeys from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
    • A GPUI version exists: AiKitView in oxyn_gpui.
    • Props to set first: now.
    • It reads a clock (now) for live timers; pass one clock for the whole page rather than one per component.
    • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

    Guides

    Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI