- Store the key in
cortex.env(gitignored) or the user environment. - Never paste
sk-into issues, PRs, Discord screenshots, ordocs/. - Hub bug reports mask the key (
sk-xxxxx…yyyy).
- Revoke/rotate at https://cortexai.io
- Update
cortex.envand user envCORTEX_API_KEY - Restart OpenCode / Claude Code / Hub
Hub binds 127.0.0.1:3848 only. Do not expose it to the LAN without auth. MCP is stdio — it inherits the process environment.
Open a private GitHub security advisory on this repo, or rotate first and then file an issue without the key.