Skip to content

cleanup(env): drop dead SIPHER_OPENROUTER_API_KEY#306

Merged
rz1989s merged 1 commit into
mainfrom
fix/issue-295-drop-dead-sipher-openrouter-api-key
Jun 2, 2026
Merged

cleanup(env): drop dead SIPHER_OPENROUTER_API_KEY#306
rz1989s merged 1 commit into
mainfrom
fix/issue-295-drop-dead-sipher-openrouter-api-key

Conversation

@rz1989s
Copy link
Copy Markdown
Member

@rz1989s rz1989s commented Jun 2, 2026

Summary

Closes #295. pi-ai reads only the canonical OPENROUTER_API_KEY (see @mariozechner/pi-ai/dist/env-api-keys.js:93). SIPHER_OPENROUTER_API_KEY was unused but lingered in .env.example and docs/deployment.md, creating ambiguity. In frontier_sip_17 this caused a silent prod chat outage when the valid key was stored under the sipher-prefixed name and the invalid one under OPENROUTER_API_KEY — pi-ai used the invalid key and emitted empty content with no error log.

Changes

Test plan

  • grep -rn SIPHER_OPENROUTER_API_KEY across the repo: only the new "DO NOT reintroduce" comment in .env.example remains.
  • pnpm typecheck clean across root + sdk + app + agent.
  • No runtime impact; nothing to smoke.

Follow-ups

The VPS ~/sipher/.env still has the prefixed variable. RECTOR can remove it during the next deploy. The VPS docker-compose.yml drift is addressed separately by #294.

pi-ai reads only the canonical OPENROUTER_API_KEY
(see @mariozechner/pi-ai/dist/env-api-keys.js:93). The
SIPHER_OPENROUTER_API_KEY variable was unused by code, but its presence
in .env.example and docs/deployment.md created ambiguity. In
frontier_sip_17 this caused a silent prod chat outage: the valid key was
saved under the sipher-prefixed name, the invalid (old) key under
OPENROUTER_API_KEY, and pi-ai used the invalid one — emitting empty
content with no error log.

Removes the dead reference from .env.example and docs/deployment.md.
Adds an inline comment in .env.example to discourage reintroducing the
prefixed form. docker-compose.yml in the repo never declared it, so no
change there (the VPS-side compose still has it and is addressed
separately in #294).

Closes #295.
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sipher Ready Ready Preview, Comment Jun 2, 2026 1:35am

@rz1989s rz1989s merged commit 725ffe2 into main Jun 2, 2026
6 checks passed
@rz1989s rz1989s deleted the fix/issue-295-drop-dead-sipher-openrouter-api-key branch June 2, 2026 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cleanup(env): drop dead SIPHER_OPENROUTER_API_KEY — pi-ai only reads OPENROUTER_API_KEY

1 participant