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-keysProvider 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
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.
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
- Replays a multi-agent run on one clock: use Agent timeline instead.
- One model at a glance: use Model card instead.
- A small automation on a single rail: use AI workflow instead.
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.
oxyn add provider-keysUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
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
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
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
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Empty
No keys yet.
Provider keys
Bring your own keys. They are encrypted and only used for your workspace.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
ProviderKeys
| Prop | Type | Default | Description |
|---|---|---|---|
nowrequired | ClockMs | — | Host clock. |
empty | bool | Default::default() | Start with no keys (empty state). |
usage | bool | true | Show spend and rate-limit use per key (Oxyn extra). |
adding | bool | Default::default() | Open the add form on mount. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Add key, then each row's Reveal, Copy, Rotate, Remove |
| Enter | Save the form |
| Escape | Close 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.
| Transition | Duration | Easing |
|---|---|---|
| Reveal | 5000 ms (REVEAL_MS) | linear ring |
| Undo window | 6000 ms (UNDO_MS) | — |
| Key test | 900 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
ProviderKeysfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
AiKitViewinoxyn_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.