Add one-click installers (install.sh / install.ps1) with README docs - #2
Open
Techdoll00 wants to merge 1 commit into
Open
Add one-click installers (install.sh / install.ps1) with README docs#2Techdoll00 wants to merge 1 commit into
Techdoll00 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds universal one-click installers —
install.sh(macOS / Linux) andinstall.ps1(Windows) — filling the gap the README calls out ("This repository doesn't provide a universal one-click installer"), plus a Quick Install section in both READMEs.What the installer automates (mirrors AGENT_INSTALL.md)
config.tomlviaCODEX_HOME/~/.codex/%USERPROFILE%\.codex, creates timestamped backups ofconfig.tomland the model catalog.codex-vision-proxy.py/vision_client.pyto a stable dir, writesVISION_API_KEY / VISION_BASE_URL / VISION_MODEL / LANGto a0600env file (prompts interactively, or--non-interactive+ env vars).base_urlviatomlliband refuses to run if Codex already points at the proxy port.base_urltohttp://127.0.0.1:19100; nothing else inconfig.tomlis touched (auth, wire_api, provider name all preserved)."image"toinput_modalitiesonly when it is exactly["text"]..cmd; falls back tonohupwhen no init system is detected.py_compile+ port check; leaves clear "restart Codex and try view_image" instructions.Preserves existing DeepSeek auth (the proxy forwards the original
Authorization); never writesDEEPSEEK_API_KEY.Tested
install.shrun end-to-end against a sandbox Codex home on Ubuntu 22.04 (Python 3.12): backups created,base_urlpatched correctly, catalog modality patched, env written with600perms, guard against re-running on an already-patched config works.install.ps1shares the same embedded Python logic for TOML/JSON editing (Windows-specific bits follow the AGENT_INSTALL.md Windows section).Notes for maintainers
.gitattributesforces LF for*.sh(protects the heredocs from CRLF corruption on Windows checkouts).glance/groundtools are intentionally not installed by default (matching AGENT_INSTALL.md's guidance).