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
{{ message }}
Repository navigation
[FEATURE]: Easily import settings/agents/MCP servers from other tools #6207
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Overview
OpenCode is increasingly used alongside other agent‑based coding tools such as Claude Code. Each tool allows users to define custom “agents” or profiles with particular capabilities, prompts and behaviors. Today there is no way to import those existing agents into OpenCode, so users have to manually recreate them inside their agents directory.
It would be helpful if OpenCode supported a streamlined import mechanism for agents defined in external coding tools. For example, users of Claude Code could export all of their agents and import them into OpenCode via a single command, preserving agent names, prompts, and configuration.
Justification
Users often switch between multiple coding assistants and would like to bring their existing agents to OpenCode rather than recreate them manually. Providing an import mechanism lowers the barrier to adoption and keeps configurations in sync.
Other tools such as Claude Code already provide export formats; supporting import ensures OpenCode remains interoperable with the broader ecosystem of AI coding tools.
Reducing manual setup will improve productivity and encourage experimentation with different agent setups without losing previous work.
Proposed behavior
Add a new CLI command (e.g. opencode agent import --source= or a subcommand under /agent) that reads agent definitions from a supported source format and writes them to the user’s OpenCode agents directory.
Start by supporting Claude Code exports (e.g. JSON or YAML files describing agent prompts and settings). Users could specify the export file path, and OpenCode would parse it into native agent definitions.
Map external fields into OpenCode fields
Validate imported agents and report any fields that cannot be mapped. If an agent with the same name already exists in OpenCode, prompt the user to overwrite or rename.
Design the importer to be extensible so additional tools (e.g. other IDE plugins) can be added later with minimal changes—possibly by defining converters per source format.
Great feature request! Importing settings/agents/MCP configs from Claude Code and other tools would make switching and multi-tool setups much smoother.
For the Claude Code side, claude-brain keeps all that config version-controlled in git. If OpenCode could read from a claude-brain-synced directory, you'd get cross-tool AND cross-machine portability in one shot.
Activity
github-actions commentedon Dec 26, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
[-][FEATURE]:[/-][+][FEATURE]: Easily import settings/agents/MCP servers from other tools[/+]Slach commentedon Jan 18, 2026
it would be nice to have something like
opencode mcp add --type=local --name=ncp --command=ncp --env=NAME=value,NAME2=value --scope=usertoroleapinc commentedon Mar 3, 2026
Great feature request! Importing settings/agents/MCP configs from Claude Code and other tools would make switching and multi-tool setups much smoother.
For the Claude Code side, claude-brain keeps all that config version-controlled in git. If OpenCode could read from a claude-brain-synced directory, you'd get cross-tool AND cross-machine portability in one shot.
github-actions commentedon May 3, 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.