Run a translator and a meeting-notes tool under the same agent identity. Both can request the same named provider key, so a rotation changes what each receives on its next run.
Give the projects the same environment contract
Check how each program starts and which variable it reads. Here, each expects OPENAI_API_KEY in its environment. Each project can document the name in its README. Neither program needs an aSecret client library to read an ordinary environment variable.
Have your user run asecret save OPENAI_API_KEY in a private terminal under the same agent identity. If the key is already saved, check its name and version with asecret list. Keeping secrets
Launch each project from its own directory
For this example, the projects are siblings named translator and meeting-notes. Their existing scripts are translate.py and summarize.py. Launch these commands from the directory that contains both projects.
(cd translator && asecret run --secret OPENAI_API_KEY -- python3 translate.py)
(cd meeting-notes && asecret run --secret OPENAI_API_KEY -- python3 summarize.py)The parentheses give each command its own working directory. The programs can still find their own templates, fixtures and configuration. Each launch fetches the current saved value, decrypts it locally, and supplies it to that project’s process. The translator can print “Bienvenue.” Meeting Notes can print “Send the mockup Friday.” Neither result needs to contain the key.
Find out which agent is running
Changing directories usually leaves the aSecret agent unchanged. A service account, a container, or a project launcher that sets ASECRET_CONFIG_DIR can change which credentials the CLI loads. If the translator succeeds and Meeting Notes reports an unknown secret, run asecret me and asecret list in each launch context. Compare the agent identities and saved names before entering the key again. Agent configuration
Reuse also means both projects exercise the same provider permissions and draw on the same account limits. A staging job and a production release may need distinct credentials or separate revocation. Give those credentials distinct names and configure each launcher accordingly. For two projects meant to share a credential, the next replacement takes one save. Rotate a shared API key