Report security vulnerabilities privately through GitHub Security Advisories for this repository. Do not open a public issue for a vulnerability, credential leak, token-handling flaw, or exploit proof of concept.
Include:
- the affected package version and OpenCode version;
- the operating system and Node.js version;
- a minimal reproduction or affected configuration;
- whether credentials, request bodies, or local files were exposed.
Do not include real access tokens, refresh tokens, account email addresses, or unredacted prompt/response bodies in a report.
Security fixes ship on the latest published release line. Update before validating or reporting a bug:
npx -y oc-codex-multi-auth@latest update- Account pools live under
~/.opencodewith restrictive local file permissions. - Credential writes use temporary files, flush, atomic rename, and parent-directory synchronization.
CODEX_KEYCHAIN=1stores the account pool in the operating-system keychain. JSON rollback artifacts may remain until explicitly removed.- Logs and diagnostics redact credentials and email-like values, but human-facing tool and CLI text can show full account emails unless
maskEmailis enabled. EnablemaskEmail(CODEX_TUI_MASK_EMAIL=1) before sharing text output or screenshots, and enablemaskEmailInQuotaDetails(CODEX_TUI_MASK_EMAIL_DETAILS=1) when quota details may be visible. Do not pass--include-sensitiveor enable body logging in shared environments. CODEX_PLUGIN_LOG_BODIES=1can expose prompts, responses, and credential-bearing headers. Use it only for local debugging and delete the logs afterward.- OAuth uses the registered loopback callback on port
1455. Keep that port limited to local traffic.
Runtime dependencies are audited in CI with development-only exceptions tracked by scripts/audit-dev-allowlist.js. Some upstream OpenCode and npm dependency-chain advisories may remain outside this repository's direct control; the package keeps current compatible upstream versions and records the residual state in CI.
- Keep Node.js at the version required by
package.jsonor newer. - Do not share
~/.opencodeacross machines or untrusted users. - Use per-project pools only when the project boundary is intentional.
- Review exported account backups before storing or transmitting them; they can contain credentials.
- Treat custom rotation JavaScript as trusted code and validate it offline before enabling it.