若您已安裝並使用 Codex，請先登出目前的 OpenAI 帳號。請注意，登出原先使用的 ChatGPT 帳號後，對話紀錄將會清除。

If you have already installed and used Codex, please sign out of your current OpenAI account first. Please note that after signing out of the ChatGPT account you were previously using, your conversation history will be cleared.



[Chinese]
step 1	安裝好 OpenAI Codex App。
step 2	將設定檔 set-codex-config-macos.sh 放到個人資料夾。
step 3	開啟終端機 Terminal.app。
step 4	在終端機輸入以下2個指令。
step 5	讓設定檔可以被執行。
step 6	移除 macOS 對下載檔案的安全隔離標記。
step 7	執行設定檔。
step 8	貼上你的 CGU API Key。系統出現 Enter OPENAI_API_KEY: 時，輸入或貼上 API Key。
step 9	終端機不會顯示你輸入的文字，這是正常現象。
step 10	設定完成後，打開 Codex 即可使用。

[English]
step 1	Install the OpenAI Codex App.
step 2	Place the setup file set-codex-config-macos.sh in your home folder.
step 3	Open Terminal.app.
step 4	Enter the following 2 commands in Terminal.
step 5	Make the setup file executable.
step 6	Remove the macOS quarantine attribute from the downloaded file.
step 7	Run the setup script.
step 8	Paste your CGU API Key. When Enter OPENAI_API_KEY: appears, enter or paste your API Key.
step 9	The terminal will not display the characters you type. This is normal.
step 10	After setup is complete, open Codex and start using it.

---------------------------------------------------------------------------------
[Instructions 指令]

chmod +x set-codex-config-macos.sh;

./set-codex-config-macos.sh;
