aip-cli-0.1.2 is not a library.
aip
AI Profile Manager for Claude Code and Codex CLI.
What It Does
- Manage multiple profiles for Claude Code and Codex CLI.
- Save current credentials into a named profile.
- Switch profiles interactively (
aip) or non-interactively (aip switch). - Show profile lists and current active profile.
- Run login flows and store credentials into a selected profile.
- Fetch and display usage windows for both tools.
Requirements
- macOS (Claude profile handling uses Keychain via the
securitycommand). - Rust toolchain that supports edition 2024.
claudeCLI inPATHforaip login(Claude).codexCLI inPATHforaip login(Codex).
Installation
For local development:
Commands
tool values: claude or codex
Profile Storage
Claude Code
- Base directory:
~/.claude - Profiles:
~/.claude/profiles/<profile>/credentials.json - Current profile marker:
~/.claude/profiles/_current - Active credentials source: macOS Keychain service
Claude Code-credentials
Codex CLI
- Base directory:
~/.codex - Active credentials file:
~/.codex/auth.json - Profiles:
~/.codex/profiles/<profile>/auth.json - Current profile marker:
~/.codex/profiles/_current
Notes
aip(without subcommands) starts interactive profile switching with usage preview.- Switching profiles performs a safety sync check to avoid overwriting mismatched credentials.
- Usage display semantics differ by tool.
- Claude shows percentage as used.
- Codex shows percentage as left.
Development