Install Python 3.11+, Git, and a compatible Codex CLI first. Use the official Codex quickstart for the client. Run this kit from its checkout or an extracted release archive.
Download a matching archive and SHA256SUMS from the release page. From the download directory, compare the checksum for the archive you selected:
shasum -a 256 codex-setup-v1.1.0.tar.gz # macOS
sha256sum codex-setup-v1.1.0.tar.gz # LinuxIt must equal that file's line in SHA256SUMS. Extract the archive, enter its
codex-setup-v1.1.0 directory, and preview installation:
python3 scripts/install.py
python3 scripts/install.py --applyPreview output lists paths only. Existing config values/tables and unrelated files are preserved. Global AGENTS.md receives a replaceable marked block. A nonempty AGENTS.override.md causes an explicit conflict because it would shadow the new instructions. Customized agent/profile/skill files also cause a conflict before any write. Review and merge them deliberately; there is no force-overwrite flag.
The optional --hooks flag adds the advisory hook. Restart Codex and use /hooks
to review/trust the exact definition. Project settings similarly need project
trust. The installer never grants either form of trust.
CODEX_HOME is honored; otherwise configuration goes to ~/.codex. Skills go to
~/.agents/skills. --home and --codex-home allow explicit test destinations.
When testing, specify both so an existing CODEX_HOME cannot select your real home:
python3 scripts/install.py --home /tmp/test-user --codex-home /tmp/test-user/.codexDo not point CODEX_HOME at a project's .codex/ layer: it represents the full user
home, including runtime/authentication state. Symlink destinations are refused.
When upgrading from v1.0.1 to v1.1.0, the installer creates
agents/repo-explorer.toml under Codex home and updates the managed global guidance
block. Existing v1.0.1 skills and specialist agents are unchanged. Preview before
applying; an existing custom file at the new destination triggers conflict
protection. Start a fresh Codex session to load the new agent and routing guidance.
Read the target release notes, check out/download that version, and preview again. An unchanged install reports zero files. Existing custom assets require a deliberate merge; the installer never guesses how to reconcile edited skills or agents. It does not delete files removed in a later release. If moving between versions, restore the preceding install first when practical, then install the new version.
This release changes global/AGENTS.md and skills/codex-new-repo/SKILL.md.
The installer merges its global guidance block, but refuses an existing skill
whose bytes differ, including an unchanged v1.0.0 copy. An ordinary upgrade preview
therefore reports an asset conflict and writes nothing.
If your installed files still match their backup manifests, restore the previous
installation(s), newest first, using the commands below. Then preview and apply
v1.0.1, including --hooks if you want the optional hook installed. Restart Codex
after installation; review hook trust with /hooks if prompted.
If restoration refuses later edits, preserve them. For a manual upgrade, back up the installed onboarding skill and compare it with both release versions. Only replace an unchanged v1.0.0 skill with the v1.0.1 skill after reviewing that diff; then preview/apply the installer to update global guidance. If the skill is customized, merge the skill and managed global guidance deliberately, retaining your changes. The installer will continue to reject customized asset differences; manual merging does not require a forced installer run.
An installation that already has the exact v1.0.1 skill and global guidance needs no further global changes; its preview reports zero files.
Each nonempty application prints a private manifest under
CODEX_HOME/setup-backups/install-*/manifest.json. Backup files preserve exact
original bytes and modes; newly created files are recorded separately. Writes are
atomic per file, with best-effort rollback of completed writes on ordinary I/O
failure. This is not a filesystem-wide power-failure transaction.
python3 scripts/install.py --restore /absolute/path/to/manifest.json
python3 scripts/install.py --restore /absolute/path/to/manifest.json --applyThe first command previews; the second restores originals and removes files created by that installation. Restore validates all current hashes before writing and refuses post-install edits. Restore multiple installs newest first. Empty directories and backups remain. Keep backups private and use only trusted manifests.