Codex Account Manager¶
The Professional's Choice for Secure Multi-Account Management.
Stop juggling API keys in plaintext files. Switch identities instantly, securely, and confidently.

๐ The Problem: Quota Chaos & Key Fatigue¶
Modern AI Development creates a new set of challenges:
* Quota Limits: You have 3 different OpenAI/Codex accounts to manage 5h and Weekly limits. Hitting a limit mid-stream breaks your flow.
* Context Risks: Accidentally running a heavy "Thinking Model" task on your personal limited account instead of the corporate unlimited plan.
* Security Nightmares: Storing sensitive sk- keys in .env files scattered across projects is a leak waiting to happen.

โ The Solution¶
Codex Account Manager is your unified command center for AI credentials. It treats your identities as Profiles, not just text strings.
Why Codex Account Manager?¶
๐ง Intelligent Quota Management
Never hit a rate limit blindly again. The system tracks your 5-Hour and Weekly usage for every account in real-time. Know exactly which account has capacity before you switch.
โก Instant Context Switching
Switch from "Personal (Limited)" to "Work (Pro)" in one keystroke. The CLI instantly injects the correct credentials into your environment, ensuring zero downtime when one account hits its cap.
๐ฅ๏ธ Native macOS Experience
Always there, never in the way. Our native System Tray application sits quietly in your menu bar.
* Glanceable Status: See your active account and usage usage bars directly in the menu.
* One-Click Switch: Change identities without touching the terminal.
* Global Hotkey: Bring up the dashboard instantly.
๐ก๏ธ Military-Grade Security
Your credentials are never stored in plaintext. We use AES-256 encryption strictly permission-locked (chmod 600), ensuring only you have access.
๐ Features¶
- Universal Proxy: Inject credentials into any command (
codex-account run -- python script.py) without polluting your global environment. - Audit Logging: Every access is logged locally. Know exactly when and which key was used.
- Legacy Migration: Effortlessly import accounts from older project structures.
- Terminal UI: Forget the names? Browse your vault with a beautiful interactive TUI.
- Git Sync: Keep your encrypted vault synchronized across all your devices using any private Git repo.

๐ Documentation¶
- ๐ Full User Guide
- ๐ API Reference
- ๐ Development Guide
๐ฆ Installation¶
# Clone the repository
git clone https://github.com/salacoste/codex-account-switch-backups.git
cd codex-account-manager
# Install with Poetry
poetry install
poetry shell
๐ ๏ธ Quick Start¶
1. Initialize your vault
2. Add your first account
3. Switch Context
4. Check Status & Usage
๐งช Development¶
Running Tests¶
๐ค Community & Support¶
- Bug Reports: Open an Issue
- Feature Requests: Request a Feature
- Security: See Security Policy.
๐ Security Note¶
This tool manages sensitive API keys.
* Storage is rooted at ~/.codex-accounts/.
* Files are readable only by the user (0600).
* Avoid running as root.
๐ License¶
This project is licensed under the MIT License.