You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow users to specify a shell command that generates API keys
dynamically, for environments where keys are ephemeral, one-use, or
rotated periodically.
- Add `ApiKeyProvider` enum (`StaticKey` / `HelperCommand`) to model
both static and command-based API key sources
- Helper commands are configured via env var (`{API_KEY_VAR}_HELPER`
convention), `api_key_helper_var` in provider config, or interactively
through the provider login UI
- Commands are executed asynchronously with configurable timeout
(`FORGE_API_KEY_HELPER_TIMEOUT`, default 30s) and `kill_on_drop`
- Output format supports optional TTL: `<key>\n---\nTTL: <seconds>` or
`Expires: <unix_timestamp>`
- Only the command is persisted to credentials file; the key is always
obtained fresh by executing the command on load
- Backward-compatible serde: old `"sk-123"` format still deserializes
correctly via `#[serde(untagged)]`
Co-Authored-By: Claude Code <noreply@anthropic.com>
0 commit comments