@alphaedge/codex-profile
v0.1.0
Published
Switch between Codex config/auth profiles
Readme
codex-profile
CLI to switch between Codex config/auth profiles.
It manages these files in your Codex home ($CODEX_HOME, ~/.config/codex, or ~/.codex):
config.tomlauth.json
Profiles are stored as sibling files with a suffix:
config.toml.<profile>auth.json.<profile>
Install
npm
npm i -g @alphaedge/codex-profileHomebrew
brew tap REPO_OWNER/codex-profile
brew install codex-profileUsage
codex-profile show
codex-profile save openai
codex-profile switch openai
codex-profile switch bkswitch creates a timestamped backup in profile_backups/<timestamp>/ by default.
Release to npm
- Update
versioninpackage.json. - Commit + tag:
git tag v0.1.0 git push origin main --tags - Publish:
npm login npm publish
Release to Homebrew
- Create tap repo named
homebrew-codex-profileunder your GitHub account. - Copy
Formula/codex-profile.rbinto that tap repo atFormula/codex-profile.rb. - Replace placeholders:
REPO_OWNERREPO_VERSIONREPO_SHA256
- Compute tarball sha256:
curl -L https://github.com/REPO_OWNER/codex-profile/archive/refs/tags/vREPO_VERSION.tar.gz | shasum -a 256 - Commit formula change in the tap repo.
Local dev
./bin/codex-profile --help
./bin/codex-profile show