FAQ
Questions people ask about Hats for Codex, with short answers.
What does Hats for Codex do?
Hats gives each of your Codex accounts its own app, with its own sign-in, its own notifications and its own Dock icon wearing a hat. Click the hat in the menu bar and a popover lists your accounts. Click one, or press Control-Option-Command-1 to 9 from anywhere. Hats for Codex is an alpha: expect rough edges, and things may change or break between versions.
Is Hats for Codex made by OpenAI?
No. Hats for Codex is an independent, unofficial tool. It is not affiliated with, endorsed by or supported by OpenAI. If Codex changes how it works, Hats may need an update before it works again.
What does it change on my Mac?
Your ChatGPT.app is never changed. Each account's app goes in
~/Applications/Hats for Codex/, and its Codex home folder, with its config, sessions and sign-in, lives in ~/.hats-codex/, and its app data live in
~/Library/Application Support/Hats for Codex/. On the same disk as ChatGPT.app, the apps are
APFS clones: they share its storage instead of duplicating it, so they take almost no space.
Is it safe?
Before every build, Hats checks that ChatGPT.app is signed by OpenAI. If not, it stops. Each account's app is signed with the hardened runtime, so code cannot be injected into it through environment variables. Its only network use is for updates: every 2 hours it asks hats-app.vercel.app whether a new version is out, and it downloads one only when you choose Update, or after you turn on automatic updates. Nothing about you or your accounts is sent. Before installing a download, Hats checks that it matches the release, is signed by the Hats developer and is accepted by macOS.
Why does macOS keep asking about the keychain?
Codex protects its local data with a keychain item called “Codex Storage Key”, and macOS asks before a new app reads it. The first time an account opens, type your login password and click Always Allow. Pressing Return picks Allow, which lets it in only once, so macOS asks again.
It asks once more after every rebuild: a Codex update, a Hats update, a new hat or colour. Hats signs each rebuilt app again itself, and macOS treats the new build as a new app. Hats shows a reminder just before.
Why might something not work in an account's app?
Some things need OpenAI's signature, and an account's app cannot carry it: Hats changes the copy, so it has to sign it again itself. Your own ChatGPT.app is not affected.
Do accounts share Codex history?
No. Each account has its own Codex home folder, with its own config, sessions and sign-in.
Which account opens a codex:// link?
The account you used last.
To open one account from Raycast, Shortcuts or a script, use a link with its name, such as
hats-codex://open/work.
How do I change an account's hat or colour?
Open Settings from the menu bar, choose the account, then a colour or a hat. The choice is saved at once. The Dock icon follows when you press Rebuild App. Quit the account first if it is open.
What happens when Codex updates?
Nothing you need to do. While Hats is running, it rebuilds each account's app from the updated ChatGPT.app by itself. An account that is open is rebuilt after you quit it. A copy cannot install Codex's own updates, so Hats rebuilds it instead.
How do I update Hats for Codex?
Hats checks for a new version every 2 hours while it runs. When one is out, it posts a notification and the popover shows Update to Hats for Codex and the version number: click it, and Hats installs the new version and restarts. To skip the click, turn on Update Hats for Codex Automatically in Settings, General. It is off by default, and it waits until the popover and Settings are closed. The changelog says what changed.
Your accounts stay as they are, and open ones stay open. Hats rebuilds their apps for the new version by itself; an open one is rebuilt after you quit it.
Updating needs Hats in a folder you can write to, such as Applications for an admin user.
How many accounts can I have?
Hats sets no limit. The first nine get a shortcut, Control-Option-Command-1 to 9, in the order they are listed. There are twenty hats and eight colours. A new account gets a hat and a colour nobody else is wearing, and they repeat once all are in use.
What do I need?
A Mac with Apple silicon, macOS 13 or later, and OpenAI's Codex desktop app, which is now named ChatGPT.app, at /Applications/ChatGPT.app. Intel Macs are not supported yet. Nothing else: no Xcode, no Homebrew.
How do I uninstall Hats for Codex?
Quit your accounts, then remove each one in Settings: its app is deleted, and its sessions and sign-in are kept. If Open Hats for Codex at Login is on, turn it off in Settings, General. Choose Quit Hats for Codex in the popover, then drag Hats for Codex from Applications to the Trash.
To delete what each account kept on this Mac too, delete the folder
~/Library/Application Support/Hats for Codex. Each account's Codex home folder, with its config, sessions and sign-in, is in ~/.hats-codex; delete that folder too.