You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Opencode hardcodes ~/.claude as the path for reading Claude Code configuration (CLAUDE.md and skills), but Claude Code v1.0.30+ changed its default config directory to ~/.config/claude and added support for the CLAUDE_CONFIG_DIR environment variable to override this.
This causes issues for users who:
Use CLAUDE_CONFIG_DIR to specify a custom config location
Have a file (not directory) at ~/.claude, causing ENOTDIR errors when opencode tries to glob inside it
Expected Behavior
Opencode should check for Claude config in this order:
CLAUDE_CONFIG_DIR environment variable (if set and is a valid directory)
Also hitting this via Anthropic Subscription (OAuth). When using Opus or Sonnet directly, OpenCode falls back to the hardcoded legacy config path instead of respecting the .opencode/ directory structure. Combined with #10567 (string replacement of "opencode" in paths), this creates a situation where config, agents and rules are read from and written to the wrong location entirely — making it impossible to rely on a consistent setup when switching models.
Activity
ramarivera commentedon Dec 31, 2025
Fix submitted in #6550
github-actions commentedon Dec 31, 2025
This issue might be a duplicate of existing issues. Please check:
.claude/skills? #6266: Does opencode actually support finding skills at.claude/skills? - Discusses configuration directory discoveryFeel free to ignore if none of these address your specific case.
attkri commentedon Mar 5, 2026
Also hitting this via Anthropic Subscription (OAuth). When using Opus or Sonnet directly, OpenCode falls back to the hardcoded legacy config path instead of respecting the
.opencode/directory structure. Combined with #10567 (string replacement of "opencode" in paths), this creates a situation where config, agents and rules are read from and written to the wrong location entirely — making it impossible to rely on a consistent setup when switching models.github-actions commentedon May 5, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.