You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 31232cc
Browse filesBrowse the repository at this point in the historyBrowse files
feat(setup): per-org API key variables; stop one org's key reaching another
An exported VAPI_PRIVATE_API_KEY applies to every org and beats each
.env.<org> file, so once a shell held one org's key every other org's
commands silently used it. Setup made it worse: it wrote that key into a
second org's .env file and downloaded the first org into the second
org's folder, and the wizard's download inherited the exported key even
after a different key was pasted.
- Every command resolves VAPI_PRIVATE_API_KEY_<ORG> first (acme-dev ->
VAPI_PRIVATE_API_KEY_ACME_DEV), then the generic variable, then
.env.<org>. One per-org export per org is safe in a shell profile.
- When the generic variable overrides a different key in .env.<org>,
commands warn on stderr (naming sources, never values) and setup
refuses. Setup also refuses a key another org's .env file holds.
- Commands say which variable supplied the key instead of only
"Loaded env file".
- The wizard and promote/check child runs pin the chosen key.
- .env.example placeholders count as no key everywhere.
- README, AGENTS.md, the configuration guide and setup --help describe
the per-org variables.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments