Install JFrog Agent Plugin for OpenCode

Install and configure the JFrog Agent Plugin for OpenCode, including Agent Skills and the JFrog Platform MCP server.

The JFrog Agent Plugin for OpenCode bundles JFrog Skills and registers the JFrog Platform remote MCP server when your environment is configured. JFrog publishes the plugin to npm as @jfrog/opencode-jfrog-plugin. OpenCode has no plugin marketplace, so you install it by referencing the package in your OpenCode config.

Prerequisites

  • OpenCode 1.17.7 or later. Older versions don't support the plugin.
  • A JFrog Platform you can sign in to.
  • Node.js 18 or later with npx on your PATH, JFrog CLI 2.100.0 or later, jq, and curl.

Quick Install

To install the JFrog Agent Plugin for OpenCode:

  1. Add the plugin to your OpenCode config file, opencode.json:

    {
      "plugin": ["@jfrog/opencode-jfrog-plugin"]
    }
  2. Set JFROG_PLATFORM_URL to your JFrog Platform host in the environment that launches OpenCode. Use the host only, without https://. For example, mycompany.jfrog.io.

  3. Quit and restart OpenCode. A new session or a window reload doesn't reload the plugin.

  4. Sign in to the JFrog Platform MCP server and complete the browser sign-in:

    opencode mcp auth jfrog
  5. Configure the JFrog CLI so the bundled skills can reach your JFrog Platform. Run jf login, or ask the agent to run the jfrog-init skill to walk you through the setup.

Verify the Installation

  1. In a session, run /skills and confirm that jfrog and the other bundled skills are listed.
  2. Run opencode mcp list and confirm that jfrog is connected.
  3. Run jf rt ping and confirm that it succeeds against your JFrog Platform.

Alternative Installation Methods

plusLet the Readiness Check Configure the MCP Server

If you don't set JFROG_PLATFORM_URL, ask the agent to run the jfrog-init skill. It reads your host from the JFrog CLI configuration and writes a jfrog entry to the mcp section of your OpenCode config. If the config is an opencode.jsonc file with comments, the check doesn't write to it and tells you what to add manually. Then run opencode mcp auth jfrog.

plusPin a Plugin Version

Add a version suffix to the plugin reference. Without a version, OpenCode uses the latest npm release.

{
  "plugin": ["@jfrog/opencode-jfrog-plugin@<version>"]
}
plusRoll Out to an Organization

Set the plugin in OpenCode remote configuration so every developer receives it automatically.

plusFind the OpenCode Config File

The config file is in the following location.

PlatformPath
macOS and Linux~/.config/opencode/opencode.json
Windows%APPDATA%\opencode\opencode.json

OpenCode Desktop and the CLI share this config.

plusSkip the MCP Server

The JFrog MCP server adds roughly 56 tool schemas to every request. To register only the skills, set JFROG_MCP_DISABLE=true before you start OpenCode.

Troubleshooting

For installation and configuration issues, see Troubleshoot the JFrog Agent Plugin.

Related Topics


Did this page help you?