feat: add multi-key support with automatic rate-limit rotation #11

Merged
opencode merged 1 commit from renekv/ocgo:feat/multi-key-rotation into main 2026-05-26 10:58:06 +00:00

1 commit

Author SHA1 Message Date
rene
643efdabb6 feat: add multi-key support with automatic rate-limit rotation
Support multiple API keys via `api_keys` array in config or `OCGO_API_KEYS`
env var. On HTTP 429, automatically rotate to the next key and retry.
Key index persisted to `~/.config/ocgo/key-index` for restart safety.
Backward compatible with existing single-key `api_key` configs.

Fixes #115

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 17:39:33 +08:00