Keep the name your projects use, replace its saved value, and run each project again to check the replacement. Revoke the old credential with the provider after verification.
Replace the value under its existing name
First run asecret list from the account that launches the projects. Check the exact spelling and the current version. Create the replacement at the provider with the permissions those projects require. If the provider supports overlapping credentials, the old one can stay active while you test the new one during a planned rotation.
Have the credential owner enter the replacement at the hidden prompt under the existing name. Then confirm the new version.
asecret save OPENAI_API_KEY
asecret listEnter the replacement at the hidden prompt. A name previously at version 1 should now show version 2. Saving it as OPENAI_API_KEY_V2 would create a separate entry and leave existing commands pointed at the old value. How aSecret keeps earlier versions
Test fresh processes in both projects
Launch a small, representative job from each project’s own directory. A translator might translate a single heading. A notes tool might extract one action from a short meeting. Use their usual launch commands, including asecret run --secret OPENAI_API_KEY. A successful response from each service tests the credential and its permissions more thoroughly than listing the saved version.
A process that was already running keeps the environment it received at startup. Relaunch long-running workers through their normal aSecret command and let them complete a fresh job. If a scheduled job runs under a different account, inspect its launch environment separately. How two projects share a saved name
Retire the old credential at the provider
Once the new runs succeed, revoke the old provider credential. The previous saved version remains in aSecret for 30 days after replacement. That retention can help you investigate a mistaken update, but the provider controls whether the old credential can authenticate. If a key has leaked, revoke the exposed credential promptly and restore affected jobs with its replacement.
Record the saved name, the new version and which jobs passed. Those details are enough for a handoff to the next person on call. The separate command asecret token --rotate changes the agent’s token for talking to aSecret. Use the provider’s own controls for the API key your projects consume. Agent tokens and provider secrets