소스 정보
- 저장소
- Aradotso/codex-skills
- 최근 소스 활동
- 2026년 5월 17일 00:53
- 감지된 SKILL.md 언어
- 영어
- 스타
- 0
- 포크
- 1
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Aradotso/codex-skills --skill codex-auth-account-manager명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | codex-auth-account-manager |
| description | CLI tool to switch and manage multiple Codex accounts seamlessly |
| triggers | ["how do I switch between Codex accounts","manage multiple Codex logins","codex-auth account switching","list my Codex accounts and usage","import Codex auth tokens","switch active Codex account","export Codex account credentials","remove old Codex accounts"] |
Skill by ara.so — Codex Skills collection.
codex-auth is a command-line tool for switching between multiple Codex accounts. It works with Codex CLI, VS Code extension, and Codex App. This skill covers installation, account management, import/export workflows, and API vs local-only modes.
Important: After switching accounts with Codex CLI or Codex App, you must restart the client for changes to take effect. For seamless switching without restarts, use the forked codext CLI.
Install globally via npm:
npm install -g @loongphy/codex-auth
Or run without installing:
npx @loongphy/codex-auth list
Supported platforms: Linux (x64, arm64), macOS (x64, arm64), Windows (x64, arm64).
npm uninstall -g @loongphy/codex-auth
View all stored accounts with usage information:
# List accounts with API-backed usage refresh (default)
codex-auth list
# List with live TUI auto-refresh
codex-auth list --live
# Show only the active account
codex-auth list --active
# Skip API calls, use local rollout files only
codex-auth list --skip-api
Usage Data Modes:
--skip-api): Reads ~/.codex/sessions/**/rollout-*.jsonl files; may show stale data (hours old) due to rate_limits: null in recent Codex buildsLogin and add a new account:
# Interactive browser login
codex-auth login
# Device-code authentication
codex-auth login --device-auth
This runs codex login internally, then stores the account in codex-auth's registry.
Interactive account picker:
# Interactive selection with API-backed usage
codex-auth switch
# Interactive with live TUI refresh
codex-auth switch --live
# Interactive, skip API calls
codex-auth switch --skip-api
Direct selection by row number or query:
# Switch to account at row 02
codex-auth switch 02
# Switch by email/alias substring
codex-auth switch work
codex-auth switch personal@example.com
Interactive removal:
# Interactive multi-select with API-backed data
codex-auth remove
# Interactive with local-only data
codex-auth remove --skip-api
Direct removal by query:
# Remove specific accounts by selector
codex-auth remove work personal@example.com 03
# Remove all stored accounts
codex-auth remove --all
Import a single auth file:
# Import with auto-generated alias
codex-auth import /path/to/auth.json
# Import with custom alias
codex-auth import /path/to/auth.json --alias work-account
Batch import from a folder:
# Import all auth.json files in a directory
codex-auth import /path/to/auth-folder
Import CLIProxyAPI token JSON:
# Import from default ./token.json
codex-auth import --cpa
# Import from custom path
codex-auth import --cpa /path/to/token.json
Rebuild registry from existing auth files:
# Purge and rebuild registry.json from managed auth files
codex-auth import --purge
# Rebuild from custom auth directory
codex-auth import --purge /custom/auth/dir
Export all managed auth files:
# Export to current directory
codex-auth export
# Export to specific directory
codex-auth export /backup/codex-auth
# Export as CLIProxyAPI token.json format
codex-auth export --cpa
codex-auth export --cpa /backup/tokens
Remove managed backup and stale account files:
codex-auth clean
This deletes:
Configure auto-refresh interval for --live mode:
# Set refresh interval to 10 seconds
codex-auth config live --interval 10
# Set refresh interval to 30 seconds
codex-auth config live --interval 30
# Morning: check all accounts and switch to work
codex-auth list
codex-auth switch work
# Evening: switch back to personal
codex-auth switch personal
# Restart Codex CLI or App for changes to take effect
# Import multiple auth files from a backup folder
codex-auth import ~/codex-backups/auth-files
# Verify imports
codex-auth list
# Switch to preferred account
codex-auth switch 01
# Quick active account check
codex-auth list --active
# Monitor all accounts with live refresh
codex-auth list --live
# Check usage without API calls (faster but possibly stale)
codex-auth list --skip-api
# Export all accounts before cleanup
codex-auth export ~/codex-backup-$(date +%Y%m%d)
# Remove unused accounts
codex-auth remove old-work abandoned-test
# Clean stale files
codex-auth clean
Symptom: Usage data appears hours out of date.
Cause: When using --skip-api, local rollout-*.jsonl files may contain rate_limits: null (Codex issue #14880).
Solution: Use API-backed refresh (default):
# Use API for accurate data
codex-auth list
# Verify with actual usage
codex exec "say hello"
Symptom: After switching accounts, Codex still uses old account.
Solution: Restart Codex CLI or Codex App after switching. Or use codext for seamless switching:
npm install -g @loongphy/codext
codext # Enhanced CLI with auto account switching
Symptom: codex-auth import doesn't find auth files.
Solution: Ensure you're importing valid auth.json files from ~/.codex/ or exported backups:
# Verify file exists and is valid JSON
cat /path/to/auth.json | jq .
# Try absolute path
codex-auth import /absolute/path/to/auth.json
Concern: Don't want to send tokens to OpenAI endpoints.
Solution: Use --skip-api for all commands:
codex-auth list --skip-api
codex-auth switch --skip-api
codex-auth remove --skip-api
Note: Team names won't refresh and usage data may be stale, but no API calls are made.
chatgpt.com/backend-api/wham/usage and chatgpt.com/backend-api/accounts/check/v4-2023-04-27. May violate OpenAI ToS.~/.codex-auth/ (platform-specific). Keep this directory secure.Auth files are stored in:
~/.codex-auth/%USERPROFILE%\.codex-auth\Original Codex auth:
~/.codex/auth.jsonSession rollout files:
~/.codex/sessions/**/rollout-*.jsonlSOC 직업 분류 기준