Skip to content

salacoste/codex-account-switch-backups

Codex Account Manager

License: MIT Python 3.10+ Code style: black Security: AES-256

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

Codex Account Manager Vault


πŸ›‘ 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.

Chaos vs Order - The Problem vs The Solution

βœ… 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.

Codex Account Manager Terminal UI


πŸ“– Documentation

Visit our full documentation site for detailed guides: πŸ‘‰ User Guide & Documentation


πŸ“¦ 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

codex-account init

2. Add your first account

codex-account add work-prod --email me@corp.com --api-key sk-secure-123

3. Switch Context

codex-account switch work-prod
# You are now authenticated as 'work-prod'

4. Check Status & Usage

codex-account list
# Shows: Active | Name | Type | Usage (5h/W) | Tags

πŸ§ͺ Development

Running Tests

poetry run pytest

🀝 Community & Support

πŸ”’ 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.

About

A secure CLI tool for managing multiple Codex accounts with safe context switching, encrypted storage, and audit logging.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors