[PR #6643] feat: add OPENCODE_AUTH_PATH env var for custom auth.json location #12018

Closed
opened 2026-02-16 18:16:57 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6643

State: closed
Merged: No


A small addition to the way the authentication file path is determined in the Auth namespace. Now, the the default auth.json file path can be overridden using the OPENCODE_AUTH_PATH environment variable, providing more flexibility.

  • Allows custom wrappers to manage profiles and accounts easily without needing to have separate data folders.
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6643 **State:** closed **Merged:** No --- A small addition to the way the authentication file path is determined in the `Auth` namespace. Now, the the default `auth.json` file path can be overridden using the `OPENCODE_AUTH_PATH` environment variable, providing more flexibility. - Allows custom wrappers to manage profiles and accounts easily without needing to have separate data folders.
yindo added the pull-request label 2026-02-16 18:16:57 -05:00
yindo closed this issue 2026-02-16 18:16:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12018