Coder Toolbox plugin
Connects your JetBrains IDE to Coder workspaces
Getting Started
Coder server and CLI v2.29.0 or newer are required. The plugin checks these versions during sign-in and asks you to
upgrade unsupported installations. It normally downloads a CLI matching your server.
To install this plugin using JetBrains Toolbox, follow the steps below.
- Install JetBrains Toolbox 3.9 or newer. Earlier versions are not
supported.
- Launch the Toolbox app and sign in with your JetBrains account (if needed).
Install Coder plugin via URI
You can quickly install the plugin using this JetBrains hyperlink:
👉 jetbrains://gateway/com.coder.toolbox
This will open JetBrains Toolbox and prompt you to install the Coder Toolbox plugin automatically.
Alternatively, you can paste jetbrains://gateway/com.coder.toolbox into a browser.
Manual install
There are two ways Coder Toolbox plugin can be installed. The first option is to manually download the plugin artifact
from JetBrains Marketplace
or from Coder's Github Release page.
The next step is to copy the zip content to one of the following locations, depending on your OS:
- Windows:
%LocalAppData%/JetBrains/Toolbox/cache/plugins/com.coder.toolbox
- macOS:
~/Library/Caches/JetBrains/Toolbox/plugins/com.coder.toolbox
- Linux:
~/.local/share/JetBrains/Toolbox/plugins/com.coder.toolbox
Alternatively, you can install it using the Gradle tasks included in the project:
./gradlew cleanAll build installPlugin
Make sure Toolbox is closed before running the command.
Connect to a Coder Workspace via JetBrains Toolbox URI
You can use specially crafted JetBrains Gateway URIs to automatically:
Open Toolbox
Install the Coder Toolbox plugin (if not already installed)
Connect to a specific Coder deployment using a URL and a token.
Select a running workspace
Install a specified JetBrains IDE on that Workspace
Open a project folder directly in the remote IDE
Example URIs
jetbrains://gateway/com.coder.toolbox?url=https%3A%2F%2Fdev.coder.com&token=zeoX4SbSpP-j2qGpajkdwxR9jBdcekXS2&workspace=bobiverse-bob&agent_name=dev&ide_product_code=GO&ide_build_number=241.23774.119&folder=%2Fhome%2Fcoder%2Fworkspace%2Fhello-world-rs
jetbrains://gateway/coder?url=https%3A%2F%2Fj5gj2r1so5nbi.pit-1.try.coder.app%2F&token=gqEirOoI1U-FfCQ6uj8iOLtybBIk99rr8&workspace=bobiverse-riker&agent_name=dev&ide_product_code=RR&ide_build_number=243.26053.17&folder=%2Fhome%2Fcoder%2Fworkspace%2Fhello-world-rs
URI Breakdown
jetbrains://gateway/com.coder.toolbox
?url=http(s)://<your-coder-deployment>
&token=<auth-token>
&workspace=<workspace-name>
&owner=<workspace-owner>
&agent_name=<agent-name>
&ide_product_code=<IDE-code>
&ide_build_number=<IDE-build>
&folder=<absolute-path-to-a-project-folder>
Starting from Toolbox 2.7, you can use coder as a shortcut in place of the full plugin ID. The URI can be simplified
as:
jetbrains://gateway/coder?url=http(s)://<your-coder-deployment>
| Query param |
Description |
Mandatory |
| url |
Your Coder deployment URL (encoded) |
Yes |
| token |
Coder authentication token |
Yes |
| workspace |
Name of the Coder workspace to connect to. |
Yes |
| owner |
Owner username, UUID, or me used to disambiguate the workspace lookup. |
No |
| agent_name |
The name of the agent with the workspace |
No |
| ide_product_code |
JetBrains IDE product code (e.g., GO for GoLand, RR for Rider) |
No |
| ide_build_number |
Specific build number or placeholder (see below) of the JetBrains IDE to install on the workspace |
No |
| folder |
Absolute path to the project folder to open in the remote IDE (URL-encoded) |
No |
When owner is present, the URI handler sends owner:<owner> as the workspace lookup query and then exact-matches the
workspace value in the returned list. This lookup is independent of the workspace list filtering controls in the
header. When owner is omitted, the URI handler sends no workspace lookup query.
[!NOTE]
If only a single agent is available, specifying an agent name is optional. However, if multiple agents exist, you must
provide the
agent name. Note that this version of the Coder Toolbox plugin does not automatically start agents if they
are offline, so please ensure the selected agent is running before proceeding.
If ide_product_code and ide_build_number is missing, Toolbox will only open and highlight the workspace environment
page. Coder Toolbox will attempt to start the workspace if it’s not already running; however, for the most reliable
experience, it’s recommended to ensure the workspace is running prior to initiating the connection.
Resolving IDE and Build Number
When handling URIs, the Coder Toolbox plugin can resolve the IDE and its build number in several ways. This allows for
flexible and automated IDE management.
The ide_build_number parameter supports the following values:
latest_eap: Finds the latest available Early Access Program (EAP) version of the specified ide_product_code.
- Fallback: If no EAP version is found, it falls back to the latest available build (release or EAP). If no
builds are available at all, an error is shown.
latest_release: Finds the latest available stable release version of the specified ide_product_code.
- Fallback: If no release version is found, it falls back to the latest available build (release or EAP). If no
builds are available at all, an error is shown.
latest_installed: Uses the latest installed version of the IDE on the Coder workspace.
- Fallback: If no IDE is installed, it falls back to the latest available version for installation. If no builds
are available for installation, an error is shown.
- A specific build number (e.g.,
241.14494.240): The plugin will look for and use this exact build number.
- Fallback: If the specific build number is not found among installed or available IDEs, an error is shown.
The plugin first checks for installed IDEs on the remote workspace, then queries for all available (but not yet
installed) IDEs. Based on the ide_build_number hint, it will either pick an already installed IDE or install a new
one.
Offline Mode
The Coder Toolbox plugin supports an offline mode, which allows it to function without an internet connection. This is
particularly useful in environments with restricted network access.
To enable offline mode, the JetBrains Toolbox must be launched with the --offline-mode flag. In this mode, the plugin
relies on local JSON files (release.json and eap.json) that you must provide in the plugin's data directory. The
plugin does not cache these files automatically.
While online, the plugin fetches the latest IDE feeds from JetBrains' data services. In offline mode, it bypasses these
network requests and uses the local files instead.
Offline Mode File Schema and Location
The feed files must be placed in the plugin's data directory, which varies by operating system:
- macOS:
~/Library/Application Support/coder-toolbox/
- Linux:
~/.local/share/coder-toolbox/
- Windows:
%LOCALAPPDATA%/coder-toolbox/
Two files are used for the feeds:
release.json: Contains the stable release versions of JetBrains IDEs.
eap.json: Contains the Early Access Program (EAP) versions.
You can obtain these files by downloading them from the following URLs:
The schema for these JSON files is a list of IdeProduct objects. Each IdeProduct contains a list of IdeRelease
objects.
Example release.json entry:
[
{
"code": "RR",
"intellijProductCode": "RR",
"name": "RustRover",
"releases": [
{
"build": "241.14494.240",
"version": "2024.1",
"type": "release",
"date": "2024-04-03"
}
]
}
]
Example eap.json entry:
[
{
"code": "RR",
"intellijProductCode": "RR",
"name": "RustRover",
"releases": [
{
"build": "241.14494.120",
"version": "2024.1 EAP 5",
"type": "eap",
"date": "2024-03-15"
}
]
}
]
By providing these files, the plugin can resolve and launch the correct IDE version even when it cannot access the
internet.
GPG Signature Verification
The Coder Toolbox plugin starting with version 0.5.0 implements a comprehensive GPG signature verification system to
ensure the authenticity and integrity of downloaded Coder CLI binaries. This security feature helps protect users from
running potentially malicious or tampered binaries.
How It Works
Binary Download: When connecting to a Coder deployment, the plugin downloads the appropriate Coder CLI binary for
the user's operating system and architecture from the deployment's /bin/ endpoint.
Signature Download: After downloading the binary, the plugin attempts to download the corresponding .v2.asc
signature file from the same location. The signature file is named according to the binary (e.g.,
coder-linux-amd64.v2.asc for coder-linux-amd64).
Bundled Signatures: Deployments released before Coder's current release signing key have no .v2.asc signature.
If the signature is not available from the deployment, the plugin uses the signature that ships with the plugin for
the release of the deployment's version. Coder made these signatures with the current key for the releases from
2.29.0 to 2.39.4. They are the signatures that releases.coder.com serves for those releases.
Fallback Signature Sources: If the plugin has no signature for the release, it can optionally fall back to
downloading signatures from releases.coder.com. This is controlled by the fallbackOnCoderForSignatures
setting.
GPG Verification: The plugin uses the BouncyCastle library to verify the detached GPG signature against the
downloaded binary using Coder's trusted public key.
User Interaction: If signature verification fails or signatures are unavailable, the plugin presents security
warnings to users, allowing them to accept the risk and continue or abort the operation.
Verification Process
The verification process involves several components:
GPGVerifier: Handles the core GPG signature verification logic using BouncyCastle
VerificationResult: Represents the outcome of verification (Valid, Invalid, Failed, SignatureNotFound)
CoderDownloadService: Manages downloading both binaries and their signatures
CoderCLIManager: Orchestrates the download and verification workflow
Configuration Options
Users can control signature verification behavior through plugin settings:
disableSignatureVerification: When enabled, skips all signature verification. This is useful for clients running
custom CLI builds, or customers with old deployment versions that don't have a signature published on
releases.coder.com.
fallbackOnCoderForSignatures: When enabled, allows downloading signatures from releases.coder.com if not
available from the deployment.
Security Considerations
- The plugin embeds Coder's trusted public key in the plugin resources
- The plugin embeds the signatures that Coder made with that key for the releases published before it
- Verification uses detached signatures, which are more secure than attached signatures
- Users are warned about security risks when verification fails
- The system gracefully handles cases where signatures are unavailable
- All verification failures are logged for debugging purposes
Error Handling
The system handles various failure scenarios:
- Missing signatures: Prompts user to accept risk or abort
- Invalid signatures: Warns user about potential tampering and prompts user to accept risk or abort
- Verification failures: Prompts user to accept risk or abort
This signature verification system ensures that users can trust the Coder CLI binaries they download through the plugin,
protecting against supply chain attacks and ensuring binary integrity.
Configuring and Testing workspace polling with HTTP & SOCKS5 Proxy
This section explains how to set up a local proxy and verify that the plugin’s REST client works correctly when routed
through it.
We’ll use mitmproxy for this — it can act as both an HTTP and SOCKS5 proxy with SSL
interception.
Install mitmproxy
- Follow the mitmproxy Install Guide steps for your OS.
- Start the proxy:
mitmweb --ssl-insecure --set stream_large_bodies="10m"
Configure Mitmproxy