[PR #1370] [MERGED] feat: add OPENCODE_CONFIG env var for specifying a custom config file #9909

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1370
Author: @jahands
Created: 7/28/2025
Status: Merged
Merged: 7/29/2025
Merged by: @thdxr

Base: devHead: custom-config2


📝 Commits (1)

  • ef92618 feat: add OPENCODE_CONFIG env var for specifying a custom config file

📊 Changes

3 files changed (+19 additions, -0 deletions)

View changed files

📝 packages/opencode/src/config/config.ts (+7 -0)
📝 packages/opencode/src/flag/flag.ts (+1 -0)
📝 packages/web/src/content/docs/docs/config.mdx (+11 -0)

📄 Description

This would be useful for opencode wrappers needing to pass in a custom config file for custom modes, etc.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1370 **Author:** [@jahands](https://github.com/jahands) **Created:** 7/28/2025 **Status:** ✅ Merged **Merged:** 7/29/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `custom-config2` --- ### 📝 Commits (1) - [`ef92618`](https://github.com/anomalyco/opencode/commit/ef9261844350f8131bb90fbe51f60b202dff8bf6) feat: add OPENCODE_CONFIG env var for specifying a custom config file ### 📊 Changes **3 files changed** (+19 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/config/config.ts` (+7 -0) 📝 `packages/opencode/src/flag/flag.ts` (+1 -0) 📝 `packages/web/src/content/docs/docs/config.mdx` (+11 -0) </details> ### 📄 Description This would be useful for opencode wrappers needing to pass in a custom config file for custom modes, etc. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:22 -05:00
yindo closed this issue 2026-02-16 18:14:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9909