Manage separate API Keys for each tool
Give tools their own API Keys to make revocation and troubleshooting easier.
· GetToken
Give Codex, your editor, and test scripts separate API Keys. When one tool needs to be disconnected, you can handle its Key individually.
Name Keys by purpose
Create a Key on the console API Keys page. Choose a recognizable name such as “Personal Codex” or “Editor testing.” Names help you manage Keys; keep emails, passwords, and project secrets out of them.
Create only the Keys you currently need. There is no need to prepare credentials for tools you have not started using. See API Key management for the full workflow.
Configure the intended tool
After copying a Key, follow the tool's instructions to set its service address, API Key, and model. For Codex, begin with the quick-start guide.
A Key is a credential for making requests. Keep it out of public repositories, browser-side code, screenshots, and public conversations. Replace it with a placeholder when sharing configuration, and check screenshot edges, logs, and terminal history.
Check with a small request
- Save the configuration in the intended tool
- Send a short request and confirm that the tool receives a result
- Open usage records and check the corresponding time
- If it fails, record the error and time, then check the address, model, and Key status
Copying a Key does not prove the tool is configured correctly. Usage records may also need time to refresh, so consider the tool's result alongside them.
Replace a Key after suspected exposure
Delete the affected Key in the console to prevent further use. Create a replacement for that tool, update its configuration, and send a small request to confirm recovery.
If several tools share the same Key, you must update each one. Separate Keys reduce that work. Removing a Key from a public file does not revoke a credential that has already been exposed.
Review usage around the time of the incident. If you need help, send the time, model, and a redacted error to support, keeping the Key itself private.