OPENCODE_DISABLE_CLAUDE_CODE env var not working for plugins #7434

Closed
opened 2026-02-16 18:07:09 -05:00 by yindo · 5 comments
Owner

Originally created by @xLillium on GitHub (Jan 24, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Setting the env variable OPENCODE_DISABLE_CLAUDE_CODE=1 does not prevent Claude Code plugins from appearing in OpenCode.
After installing a plugin in Claude Code, it is still visible in OpenCode, which is not the expected behavior.

Plugins

No response

OpenCode version

1.1.34

Steps to reproduce

  1. Set env variable OPENCODE_DISABLE_CLAUDE_CODE to 1.
  2. Install any plugin in Claude Code.
  3. Open OpenCode and realise the plugin is here too.

Screenshot and/or share link

No response

Operating System

Ubuntu 24.04

Terminal

Ghostty

Originally created by @xLillium on GitHub (Jan 24, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Setting the env variable OPENCODE_DISABLE_CLAUDE_CODE=1 does not prevent Claude Code plugins from appearing in OpenCode. After installing a plugin in Claude Code, it is still visible in OpenCode, which is not the expected behavior. ### Plugins _No response_ ### OpenCode version 1.1.34 ### Steps to reproduce 1. Set env variable OPENCODE_DISABLE_CLAUDE_CODE to 1. 2. Install any plugin in Claude Code. 3. Open OpenCode and realise the plugin is here too. ### Screenshot and/or share link _No response_ ### Operating System Ubuntu 24.04 ### Terminal Ghostty
yindo added the bug label 2026-02-16 18:07:09 -05:00
yindo closed this issue 2026-02-16 18:07:09 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 24, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #10115: Only the last plugin loads in OpenCode 1.1.32 - Multiple plugins not supported
  • #10355: opencode.json plugins version overwritten on startup

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 24, 2026): This issue might be a duplicate of existing issues. Please check: - #10115: Only the last plugin loads in OpenCode 1.1.32 - Multiple plugins not supported - #10355: opencode.json plugins version overwritten on startup Feel free to ignore if none of these address your specific case.
Author
Owner

@xLillium commented on GitHub (Jan 24, 2026):

My bad, the issue was coming from the Oh-my-opencode plugin that ignores env variables and requires specific properties in its config file to achieve this behaviour.

@xLillium commented on GitHub (Jan 24, 2026): My bad, the issue was coming from the Oh-my-opencode plugin that ignores env variables and requires specific properties in its config file to achieve this behaviour.
Author
Owner

@Tongzhao9417 commented on GitHub (Feb 14, 2026):

My bad, the issue was coming from the Oh-my-opencode plugin that ignores env variables and requires specific properties in its config file to achieve this behaviour.

I met same issues. Could you tell me more details plz?

@Tongzhao9417 commented on GitHub (Feb 14, 2026): > My bad, the issue was coming from the Oh-my-opencode plugin that ignores env variables and requires specific properties in its config file to achieve this behaviour. I met same issues. Could you tell me more details plz?
Author
Owner

@xLillium commented on GitHub (Feb 14, 2026):

My bad, the issue was coming from the Oh-my-opencode plugin that ignores env variables and requires specific properties in its config file to achieve this behaviour.

I met same issues. Could you tell me more details plz?

Just add this to your oh-my-opencode.json config:

  "claude_code": {
    "skills": false,      // Disable skills from ~/.claude/skills and .claude/skills
    "commands": false,    // Disable commands from ~/.claude/commands and .claude/commands
    "mcp": false,         // Disable MCP from Claude Code
    "agents": false,      // Disable agents from Claude Code
    "hooks": false        // Disable hooks from Claude Code
  }
@xLillium commented on GitHub (Feb 14, 2026): > > My bad, the issue was coming from the Oh-my-opencode plugin that ignores env variables and requires specific properties in its config file to achieve this behaviour. > > I met same issues. Could you tell me more details plz? Just add this to your oh-my-opencode.json config: ``` "claude_code": { "skills": false, // Disable skills from ~/.claude/skills and .claude/skills "commands": false, // Disable commands from ~/.claude/commands and .claude/commands "mcp": false, // Disable MCP from Claude Code "agents": false, // Disable agents from Claude Code "hooks": false // Disable hooks from Claude Code } ```
Author
Owner

@Tongzhao9417 commented on GitHub (Feb 14, 2026):

My bad, the issue was coming from the Oh-my-opencode plugin that ignores env variables and requires specific properties in its config file to achieve this behaviour.

I met same issues. Could you tell me more details plz?

Just add this to your oh-my-opencode.json config:

  "claude_code": {
    "skills": false,      // Disable skills from ~/.claude/skills and .claude/skills
    "commands": false,    // Disable commands from ~/.claude/commands and .claude/commands
    "mcp": false,         // Disable MCP from Claude Code
    "agents": false,      // Disable agents from Claude Code
    "hooks": false        // Disable hooks from Claude Code
  }

thks, it's work.

@Tongzhao9417 commented on GitHub (Feb 14, 2026): > > > My bad, the issue was coming from the Oh-my-opencode plugin that ignores env variables and requires specific properties in its config file to achieve this behaviour. > > > > > > I met same issues. Could you tell me more details plz? > > Just add this to your oh-my-opencode.json config: > > ``` > "claude_code": { > "skills": false, // Disable skills from ~/.claude/skills and .claude/skills > "commands": false, // Disable commands from ~/.claude/commands and .claude/commands > "mcp": false, // Disable MCP from Claude Code > "agents": false, // Disable agents from Claude Code > "hooks": false // Disable hooks from Claude Code > } > ``` thks, it's work.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7434