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
npxon yourPATH, JFrog CLI 2.100.0 or later,jq, andcurl.
Quick Install
To install the JFrog Agent Plugin for OpenCode:
-
Add the plugin to your OpenCode config file,
opencode.json:{ "plugin": ["@jfrog/opencode-jfrog-plugin"] } -
Set
JFROG_PLATFORM_URLto your JFrog Platform host in the environment that launches OpenCode. Use the host only, withouthttps://. For example,mycompany.jfrog.io. -
Quit and restart OpenCode. A new session or a window reload doesn't reload the plugin.
-
Sign in to the JFrog Platform MCP server and complete the browser sign-in:
opencode mcp auth jfrog -
Configure the JFrog CLI so the bundled skills can reach your JFrog Platform. Run
jf login, or ask the agent to run thejfrog-initskill to walk you through the setup.
Verify the Installation
- In a session, run
/skillsand confirm thatjfrogand the other bundled skills are listed. - Run
opencode mcp listand confirm thatjfrogis connected. - Run
jf rt pingand confirm that it succeeds against your JFrog Platform.
Alternative Installation Methods
Let 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.
Pin 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>"]
}Roll Out to an Organization
Set the plugin in OpenCode remote configuration so every developer receives it automatically.
Find the OpenCode Config File
The config file is in the following location.
| Platform | Path |
|---|---|
| macOS and Linux | ~/.config/opencode/opencode.json |
| Windows | %APPDATA%\opencode\opencode.json |
OpenCode Desktop and the CLI share this config.
Skip 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
Updated 7 days ago
