Skip to content

[FEATURE]: Easily import settings/agents/MCP servers from other tools #6207

Closed as not planned

Description

@sebytremblay

Feature hasn't been suggested before.

  • 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

  1. 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.
  2. Other tools such as Claude Code already provide export formats; supporting import ensures OpenCode remains interoperable with the broader ecosystem of AI coding tools.
  3. Reducing manual setup will improve productivity and encourage experimentation with different agent setups without losing previous work.

Proposed behavior

  1. 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.
  2. 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.
  3. Map external fields into OpenCode fields
  4. 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.
  5. 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.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Dec 26, 2025
  2. github-actions commented on Dec 26, 2025

    @github-actions
    Contributor

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

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

  3. changed the title [-][FEATURE]:[/-] [+][FEATURE]: Easily import settings/agents/MCP servers from other tools[/+] on Dec 27, 2025
  4. Slach commented on Jan 18, 2026

    @Slach

    it would be nice to have something like
    opencode mcp add --type=local --name=ncp --command=ncp --env=NAME=value,NAME2=value --scope=user

  5. toroleapinc commented on Mar 3, 2026

    @toroleapinc

    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.

  6. github-actions commented on May 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions