Files
dev/hanzo-dev/core
zeekay c79c2f0689 feat: add CLI login flow with API key rotation across providers
- Add provider_id and usage_count fields to StoredAccount
- Add upsert_api_key_account_for_provider() for provider-specific keys
- Add get_next_rotated_account() for round-robin rotation
- Add list_accounts_for_provider() and count_accounts_by_provider()
- Extend /provider command with subcommands:
  - /provider add <name> <key> - add API key for provider
  - /provider rotate <name> - show rotation status
- Show account counts per provider in /provider list
- Allow switching providers with stored accounts (bypass env key check)
2026-01-23 09:29:07 -08:00
..

codex-core

This crate implements the business logic for Codex. It is designed to be used by the various Codex UIs written in Rust.

See also: Slash Commands for a complete list of interactive commands available in the TUI.

Dependencies

Note that codex-core makes some assumptions about certain helper utilities being available in the environment. Currently, this

macOS

Expects /usr/bin/sandbox-exec to be present.

Linux

Expects the binary containing codex-core to run the equivalent of codex debug landlock when arg0 is dev-linux-sandbox. See the codex-arg0 crate for details.

All Platforms

Expects the binary containing codex-core to simulate the virtual apply_patch CLI when arg1 is --codex-run-as-apply-patch. See the codex-arg0 crate for details.