Observed since 20 Oct, 21:46 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
kubectx-like CLI for switching Codex auth profiles
agentctx is a kubectx-like CLI for saving and switching local Codex auth profiles.
It manages copies of ~/.codex/auth.json under ~/.agentctx and atomically swaps the active auth file when you switch profiles. When saving the current auth via =., the profile name is derived from the user's email claim in the JWT. Token contents are never printed.
pipx install agentctx
For local development:
poetry install
poetry run agentctx --help
agentctx # list profiles or open fzf selector when interactive
agentctx work # switch to profile
agentctx login # run Codex browser login and save auth as JWT email profile
agentctx - # switch to previous profile
agentctx -c # show current profile
agentctx =. # save/rename current Codex auth as JWT email profile
agentctx user@example.com=. # same, but validate name matches JWT email
agentctx prod=work # rename profile
agentctx -d old-profile # delete profile
agentctx -u # unset current marker
agentctx -V # show version
Long aliases:
agentctx --current
agentctx --unset
agentctx --version
CRUD-style subcommands are intentionally not part of the public CLI.
~/.agentctx/
profiles/
<email-or-name>/
auth.json
metadata.json
backups/
auth-<timestamp>.json
current
previous
lock
Active Codex auth remains:
~/.codex/auth.json
0600 permissions for active, profile, and backup auth files where supported;poetry check
poetry run pytest
poetry build
make publish
make publish bumps the minor version, syncs agentctx.__version__, runs checks/tests, builds a clean dist/, and publishes with poetry publish.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.6.0 | 25 Jun 2026 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:46 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:13703a661dee06830801cb8f4504438d9969487f9b2a51a2eb65c83307fba07c