Skip to main content

aicx

Switch between Codex and Claude Code accounts without losing local conversation history.

PyPI version Python versions GitHub stars License

aicx keeps credentials and settings separate for every account. Saved conversations are shared by default, so you can start with one account and continue with another.

Install

You need Linux, Python 3.11 or newer, and the official Codex or Claude Code CLI.

pip install aicx
aicx doctor

Set up two accounts

Log in with the official CLI, then let aicx adopt that account under a name.

Codex example

# First account
codex login
aicx adopt codex personal
codex logout

# Second account
codex login
aicx adopt codex work

adopt copies the current login, settings, and saved conversations. It does not change or remove the original Codex directory.

Claude Code example

# First account
claude auth login
aicx adopt claude personal
claude auth logout

# Second account
claude auth login
aicx adopt claude work

Profile names are yours to choose. personal, work, and client are only examples.

Use an account

Launch the provider with @account-name:

aicx codex @personal
aicx codex @work
aicx claude @personal

The last selection is remembered:

aicx codex
aicx claude

Provider arguments pass through normally:

aicx codex @work resume --last
aicx claude @personal --resume SESSION_ID

Accounts and usage

aicx accounts
aicx balance
aicx balance codex --profile work

Keep the balance view open and refresh it every 60 seconds:

aicx balance --watch

Choose another interval when needed:

aicx balance --watch --interval 15

The balance table shows usage, remaining percentage, reset time, and the time left until reset.

Conversation history

aicx synchronizes saved history before a provider starts and after it exits. This lets you exit a conversation and resume it with another account.

Do not open the same conversation from two accounts at the same time. History sharing supports sequential handoff, not concurrent editing.

# Manual synchronization
aicx sync codex
aicx sync claude

# Optional: disable sharing
export AICX_CODEX_HISTORY=isolated
export AICX_CLAUDE_HISTORY=isolated

Credentials remain private to each account profile. They are never shared with the conversation store.

TODO

  • Test the complete workflow with multiple real Claude Code accounts. Multiple Codex accounts are tested.
  • Add and test VS Code account integration.
  • Add macOS support.

More documentation

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aicx-0.3.0.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aicx-0.3.0-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file aicx-0.3.0.tar.gz.

File metadata

  • Download URL: aicx-0.3.0.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.5

File hashes

Hashes for aicx-0.3.0.tar.gz
Algorithm Hash digest
SHA256 77c1278f2fc9869b96598575dd2f8595fa8614fe631d907865feac9b9eddeae9
MD5 393d7e7e3944f4238472d93bf8f2381b
BLAKE2b-256 44fa2802933c6337f9dade2b0385f7afc2f398e5da742dd43c3dfa425e55a4d2

See more details on using hashes here.

File details

Details for the file aicx-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: aicx-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 25.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.5

File hashes

Hashes for aicx-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4abb64f0f39af03acde9b85aad746d49bdff13df35c2752f536bb8d36ac7b69d
MD5 2c0b5dab7cb8a8538b414d16c4b9ecf7
BLAKE2b-256 7f5983932ab1df3f4c4b933920bc6d6a2a9e3ebfa53fe47ee09fbb94cb3288ac

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.0

2 files

0.3.3

2 files

0.3.2

2 files

This release

0.3.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page