Skip to content

Instantly share code, notes, and snippets.

@megahall
Created June 17, 2026 19:23
Show Gist options
  • Select an option

  • Save megahall/89c8051d69cde8640da07aa103b5272b to your computer and use it in GitHub Desktop.

Select an option

Save megahall/89c8051d69cde8640da07aa103b5272b to your computer and use it in GitHub Desktop.
simple script to update Codex in CWD
#!/bin/bash
script_directory="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
cd "${script_directory}"
version="${1:-0.140.0}"
wget -O "codex-npm-linux-x64-${version}.tgz" "https://github.com/openai/codex/releases/download/rust-v${version}/codex-package-x86_64-unknown-linux-musl.tar.gz"
tar xzf "codex-npm-linux-x64-${version}.tgz" bin/codex
mv bin/codex codex
rm "codex-npm-linux-x64-${version}.tgz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment