- 01
Create the replacement at OpenAI
In the OpenAI platform, create a new key in the same project, with only the permissions that app needs. Leave the old key in place until the new one has served a real request.
- 02
Replace the key stored in Fuse
Under Providers & models, save the new OpenAI key over the old one. Fuse encrypts it and shows the last four characters. Apps keep using their Fuse key and the same base URL. Nothing is redeployed.
- 03
Prove it, then revoke the old key
Send one cheap completion and confirm the request log shows a successful forward. Then revoke the old key in the OpenAI dashboard. Until you revoke it, anyone who still has the old string can spend on the account, Fuse or no Fuse.
- 04
Expire the Fuse key on a schedule
On the Fuse key the app uses, set an expiry that matches how often you are willing to rotate. Unused keys are flagged after 30 days. When the date hits, create the next Fuse key, update that one secret, and let the old one die. A leaked Fuse key is revoked in one click and can spend at most what its cap and the project ceiling have left.
Rotate an OpenAI API key without redeploying every app
Updated November 2026
Rotating an OpenAI key is two changes that people fold into one: the secret at OpenAI, and every place that secret was copied. If apps hold the OpenAI key, rotation is a scavenger hunt. If apps hold a Fuse key, rotation is a paste in one project. The provider key lives only there, encrypted, and the apps do not change.
Fuse keys expire on their own. Set 1, 7, 30, or 90 days when you create one. An expired key gets 401 fuse_key_expired and stops calling the provider. That is the scheduled half of rotation: the credential in the app dies on a date, and you issue the next one before then.
Questions
Do I rotate the Fuse key and the OpenAI key together?
Rotate the OpenAI key when it may have leaked or on your provider schedule. Rotate the Fuse key when the app credential should die. They are independent. Replacing the OpenAI key inside Fuse does not invalidate Fuse keys.
What does an expired Fuse key return?
401 with error fuse_key_expired. Create a new Fuse key and update the app. The stored OpenAI key is untouched.