Skip to main content
Redhat Developers  Logo
  • Products

    Featured

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat OpenShift AI
      Red Hat OpenShift AI
    • Red Hat Enterprise Linux AI
      Linux icon inside of a brain
    • Image mode for Red Hat Enterprise Linux
      RHEL image mode
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • Red Hat Developer Hub
      Developer Hub
    • View All Red Hat Products
    • Linux

      • Red Hat Enterprise Linux
      • Image mode for Red Hat Enterprise Linux
      • Red Hat Universal Base Images (UBI)
    • Java runtimes & frameworks

      • JBoss Enterprise Application Platform
      • Red Hat build of OpenJDK
    • Kubernetes

      • Red Hat OpenShift
      • Microsoft Azure Red Hat OpenShift
      • Red Hat OpenShift Virtualization
      • Red Hat OpenShift Lightspeed
    • Integration & App Connectivity

      • Red Hat Build of Apache Camel
      • Red Hat Service Interconnect
      • Red Hat Connectivity Link
    • AI/ML

      • Red Hat OpenShift AI
      • Red Hat Enterprise Linux AI
    • Automation

      • Red Hat Ansible Automation Platform
      • Red Hat Ansible Lightspeed
    • Developer tools

      • Red Hat Trusted Software Supply Chain
      • Podman Desktop
      • Red Hat OpenShift Dev Spaces
    • Developer Sandbox

      Developer Sandbox
      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Secure Development & Architectures

      • Security
      • Secure coding
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
      • View All Technologies
    • Start exploring in the Developer Sandbox for free

      sandbox graphic
      Try Red Hat's products and technologies without setup or configuration.
    • Try at no cost
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • Java
      Java icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • API Catalog
    • Product Documentation
    • Legacy Documentation
    • Red Hat Learning

      Learning image
      Boost your technical skills to expert-level with the help of interactive lessons offered by various Red Hat Learning programs.
    • Explore Red Hat Learning
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

New: Local development with JetBrains IDEs in OpenShift Dev Spaces

Now in Technology Preview

March 31, 2025
Artem Zatsarynnyi
Related topics:
Developer ProductivityDeveloper ToolsIDEs
Related products:
Developer SandboxDeveloper ToolsRed Hat OpenShift Dev Spaces

Share:

    While businesses emphasize centralized, secure development environments, developers often struggle with the high-end hardware requirements of traditional desktop IDEs. The Red Hat OpenShift Dev Spaces 3.19 release brings the best of both worlds to developers by introducing a local development experience for the following JetBrains IDEs:

    • IntelliJ IDEA Ultimate
    • WebStorm
    • PyCharm
    • RubyMine
    • CLion

    Now users can seamlessly integrate their cloud-native development environments with the local JetBrains IDE experience (Figure 1).

    "Dev Spaces Dashboard page", showing the "IDEA Ultimate" editor selected
    Figure 1: Dev Spaces Dashboard page
    Figure 1: The OpenShift Dev Spaces dashboard.

    The following video demonstrates how to use your local JetBrains IntelliJ IDE with a hosted cloud development environment provided by OpenShift DevSpaces as outlined in this article. 

    Technology preview

    Currently, this feature is available as a Technology Preview, allowing users to explore and provide feedback for further refinements. 

    In upcoming releases, we will expand support to include additional JetBrains IDEs:

    • GoLand
    • PhpStorm
    • Rider

    This ongoing expansion will provide a broader range of options for developers working on different tech stacks.

    How it works: The role of JetBrains Gateway

    The integration is made possible through JetBrains Gateway (see Figure 2), a lightweight desktop application designed to bridge cloud development environments (CDEs) with local JetBrains IDEs.

    "JetBrains Gateway application window", showing the "DevSpaces" plugin
    Figure 2: JetBrains Gateway application window
    Figure 2: JetBrains Gateway application window.

    The local development experience differs significantly from the traditional in-browser IDE model used in OpenShift Dev Spaces (e.g., with VS Code). Instead of running entirely within a browser, the JetBrains Gateway approach introduces additional components:

    • Remote JetBrains IDE Server: A headless IDE running within the user's containerized tools environment in OpenShift.
    • JetBrains Thin Client: The UI-rich, local IDE component that connects to the cloud-hosted environment, appearing like a normal local IDE to the user.
    • JetBrains Gateway: Manages the connection between the thin client and the remote IDE Server. It can be used as a standalone application or through a bundled JetBrains IDE plugin.
    • OpenShift Dev Spaces Connector plug-in: Extends Gateway's functionality to allow connections to OpenShift, managing CDEs and user authentication.

    Comparing in-browser versus Gateway-based development

    In-browser IDEs (e.g., VS Code in OpenShift Dev Spaces):

    • Splits the IDE into a back end (running in OpenShift) and a front end (the in-browser client).
    • Developers interact entirely through the browser.
    • Easy to access but lacks full local IDE capabilities.

    JetBrains Gateway approach:

    • The IDE Server runs in OpenShift, handling all backend tasks (language processing, indexing, etc.).
    • The Thin Client runs on the developer's local machine, providing a native IDE experience.
    • Brings the power of local JetBrains IDEs with the flexibility of cloud environments.

    Try the JetBrains local development integration

    You can experience the JetBrains local development integration without needing to install OpenShift Dev Spaces on your machine. Follow these steps to get started.

    Prerequisites

    Before spinning up a cloud development environment (CDE), ensure you have:

    • A Red Hat Developer Sandbox account: Sign up for free.
    • OpenShift CLI: Follow the installation guide.
    • Authenticated OpenShift login: Use the OpenShift CLI (oc login).
    • JetBrains Gateway: Download and install JetBrains Gateway with the OpenShift Dev Spaces connector plug-in.
    • Active JetBrains IDE license: This feature requires a paid JetBrains subscription.

    Once the prerequisites are met (which you only need to do once), connecting to a remote CDE is simple:

    1. Start a CDE. Open the OpenShift Dev Spaces Dashboard (in OpenShift), select a JetBrains IDE from the available list, and enter the source repository URL, as shown in Figure 3.
    "Dev Spaces Dashboard page", showing the "IDEA Ultimate" editor selected and "Git repo URL" field
    Figure 3: Dev Spaces Dashboard page, importing a project from Git
    Figure 3: OpenShift Dev Spaces dashboard page, importing a project from Git.

    2. Initialize the CDE. During startup, OpenShift Dev Spaces:

    • Downloads the selected JetBrains IDE binaries from JetBrains servers.
    • Configures the IDE for a containerized environment.
    • Launches the IDE inside the OpenShift cluster.

    3. Authenticate and open Gateway: Once the CDE is running, your browser will prompt you to open JetBrains Gateway.

    • Click Open Gateway button, shown in Figure 4, to launch the local Gateway application.
    Browser prompt, showing the "Open Gateway" button
    Figure 4: "Open Gateway" browser prompt
    • This connects your JetBrains IDE Thin Client (Figure 5) to the remote CDE. All tasks and IDE processes, such as language processing, run on the remote server, while the user interface remains on the local machine. This setup provides a seamless development experience similar to a traditional local IDE, allowing users to download dependencies, index projects, and access full IDE features like syntax highlighting and code completion.
    "JetBrains Client window"
    Figure 5: "JetBrains Client" window
    Figure 5: JetBrains Client window.

    Note

    If your OpenShift authentication token expires, you might need to login to your cluster again.

    Let's try another example. This time, use the JetBrains WebStorm (Figure 6) and Node.js Runtime sample (Figure 7).

    "Dev Spaces Dashboard page", showing the "JetBrains WebStorm" editor selected
    Figure 6: "JetBrains WebStorm" editor
    Figure 6: JetBrains WebStorm editor.
    "Node.js Runtime" sample
    Figure 7: "Node.js Runtime" sample
    Figure 7: Node.js Runtime sample.
    • Open the project in your local IDE: Click Open Gateway in the browser prompt.
    • Install dependencies: Click Run 'npm install' in WebStorm (Figure 8).
    JetBrains Thin Client window, showing "Install dependencies" notification
    Figure 8: JetBrains Thin Client window
    Figure 8: JetBrains Thin Client window.
    • Run your application: Click the Run button (Figure 9).
    "Run 'server.js'" button
    Figure 9: "Run 'server.js'" button
    Figure 9: The Run 'server.js' button.

    Your application will now start running inside the OpenShift cluster within your tools container.

    Access the running application

    Once the application starts, you will see a confirmation message that the application is running, as shown in Figure 10.

    "App started" message in terminal window
    Figure 10: "App started" message
    Figure 10: The "App started" message.
    1. Open the Backend Status Details window. See Figure 11.
    "Backend Status Details" window
    Figure 11: "Backend Status Details" window
    Fgure 11: The Backend Status Details window.
    1. Add a Port Forwarding Rule to map the running application to your local machine.
    2. Access the app at localhost:3000: JetBrains Gateway will forward your local request to the cloud-hosted container (Figure 12).
    Application preview page
    Figure 12: Application preview page
    Figure 12: Previewing the application.

    Verify the remote CDE connection

    To confirm that your local IDE is correctly connected to the cloud-based CDE, open the JetBrains Terminal and run environment-specific commands. Figure 13 shows an example.

    "JetBrains Client window", showing the terminal output
    Figure 13: Remote terminal
    Figure 13: The remote terminal.

    You're now developing locally with the power of cloud computing!

    Connect to JetBrains Gateway without the OpenShift Dev Spaces dashboard

    While the standard workflow works well for most cases, there is an alternative method for connecting to a remote CDE directly from your local machine without accessing the OpenShift Dev Spaces dashboard. This approach is particularly useful when a CDE with a JetBrains IDE is already running.

    Steps to connect using JetBrains Gateway:

    1. Open JetBrains Gateway and click Connect to Dev Spaces.
    2. Click Check connection and continue to verify access.
    3. Select your CDE from the available list (Figure 14).
    4. Click Connect to establish the connection.
    "JetBrains Gateway application window", showing the Workspaces list
    Figure 14: CDEs list in JetBrains Gateway window
    Figure 14: The list of CDEs in the JetBrains Gateway window.

    Once connected, JetBrains Gateway will launch the corresponding IDE and seamlessly link it to the selected CDE, providing a smooth, local-like development experience.

    What’s next? Future improvements

    At Red Hat, we are committed to enhancing the local development experience in OpenShift Dev Spaces. Some areas we are exploring include:

    • Airgapped mode support: Enabling offline usage for enterprise environments.
    • Full JetBrains IDE integration: Expanding support for all JetBrains IDEs.
    • Faster CDE start-up: Caching both thin clients and headless IDE binaries to reduce initialization time.
    • Multiple IDE connections: Allowing users to run multiple Thin Clients connected to different CDEs simultaneously.
    • Enhanced image compatibility: Supporting a wider range of base images for user containers.
    • Improved OpenShift DevSpaces integration: Adding features like devfile command execution, sidecar terminal access, and CDE management directly within JetBrains IDEs.
    • Cluster login profiles: Enabling seamless switching between multiple OpenShift clusters.
    • Better error handling and documentation: Improving troubleshooting guides and user experience.

    Conclusion

    The integration of JetBrains IDEs with OpenShift Dev Spaces represents a major step forward in cloud-native development. By combining the flexibility of cloud-hosted environments with the familiarity of local IDEs, this solution enables developers to work more efficiently while meeting enterprise security requirements.

    With the Technology Preview in OpenShift Dev Spaces 3.19, we encourage you to explore, provide feedback, and help shape the future of local development within OpenShift. Stay tuned for more updates as we continue to improve and expand support!

    Visit the OpenShift Dev Spaces product page to learn more.

    Last updated: April 1, 2025

    Related Posts

    • Efficient image builds with FUSE in Red Hat OpenShift Dev Spaces

    • Integrate a private AI coding assistant into your CDE using Ollama, Continue, and OpenShift Dev Spaces

    • Boost Ansible developer experience with OpenShift Dev Spaces

    • How to run VS Code with OpenShift Dev Spaces

    • Red Hat OpenShift Dev Spaces security best practices

    • How OpenShift Dev Spaces makes Ansible content testing easy

    Recent Posts

    • How to run AI models in cloud development environments

    • How Trilio secures OpenShift virtual machines and containers

    • How to implement observability with Node.js and Llama Stack

    • How to encrypt RHEL images for Azure confidential VMs

    • How to manage RHEL virtual machines with Podman Desktop

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue