Version: 1.0.1
Tested with: codex-cli 0.139.0
License: MIT
This repository publishes the codex-local-timezone skill for Codex. Its primary purpose is to set a default local timezone for the Codex CLI by patching the installed launcher. It can also restore that setting after a codex update or reinstall removes the patch, or change the timezone later.
The skill works by patching the installed codex.js launcher so the native Codex process starts with a default TZ value such as Asia/Kolkata, America/New_York, or any other valid IANA timezone.
Linux: supportedmacOS: supportedWindows: not currently supported or verified
Why Windows is different:
- This skill sets
TZusing IANA timezone names such asAsia/Kolkata. - That pattern is standard on Unix-like systems.
- Windows documents different
TZsemantics in its C runtime, and the native Windows Codex build has not been verified with this approach. - Treat
v1.0.1as Linux/macOS-focused.
codex-local-timezone/SKILL.mdThe skill instructions Codex reads.codex-local-timezone/agents/openai.yamlUI metadata for the skill.codex-local-timezone/scripts/patch_codex_launcher_timezone.pyThe helper script that detects and patches the installed Codex launcher.VERSIONRepository release version.
Clone the repository and copy the skill into your Codex skills directory:
git clone https://github.com/VectorSigmaOmega/codex-local-timezone-skill.git
mkdir -p ~/.codex/skills
cp -R codex-local-timezone-skill/codex-local-timezone ~/.codex/skills/After that, Codex can use the skill by name.
Ask Codex to use the skill:
Use $codex-local-timezone to set Codex to Asia/Kolkata.
Or run the script directly:
python3 ~/.codex/skills/codex-local-timezone/scripts/patch_codex_launcher_timezone.py --timezone Asia/KolkataUse another timezone when needed:
python3 ~/.codex/skills/codex-local-timezone/scripts/patch_codex_launcher_timezone.py --timezone America/New_York
python3 ~/.codex/skills/codex-local-timezone/scripts/patch_codex_launcher_timezone.py --timezone Europe/BerlinIf an update removes the patch, rerun the same command to restore it.
The script patches the installed launcher so it contains a line like:
TZ: process.env.TZ || "Asia/Kolkata",Then reopen Codex and check /status, or run a light smoke check such as:
codex --version
codex --help- The script creates timestamped backups under
~/.codex/skill-state/codex-local-timezone/backups/by default. - The patch is idempotent. Running it again updates the managed timezone line instead of stacking duplicate changes.
- A future Codex update may overwrite the launcher file. If that happens, rerun the skill or the script.
- This is a launcher patch, not a documented
~/.codex/config.tomlsetting.