Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

How to create a workspace via Try in Dev Spaces extension

June 22, 2023
David Kwon
Related topics:
Developer toolsGitOps
Related products:
Developer SandboxDeveloper ToolsetRed Hat OpenShift Dev Spaces

    In early June, we released a new web extension for Red Hat OpenShift Dev Spaces called Try in Dev Spaces. Version 1.0 of the extension is available for Chromium-based browsers (Google Chrome, Microsoft Edge, Brave, Opera, etc.), Safari, and Firefox.

    You can download the web extension from these marketplaces:

    • Chrome Web Store
    • Mac App Store
    • Firefox Browser Add-ons

    How to use the Try in Dev Spaces web extension

    Are you new to OpenShift Dev Spaces? Try it for free in the Developer Sandbox for Red Hat OpenShift.

    This extension provides a Dev Spaces button in the GitHub project page that creates and opens a new workspace with the GitHub project on an OpenShift Dev Spaces installation (Figure 1). OpenShift Dev Spaces is a platform for creating reproducible, container-based cloud development environments (or workspaces) for your Git projects on Red Hat OpenShift. In a workspace, you can code, build, test, and deploy your application within an OpenShift cluster.

    The 'Dev Spaces' button within the GitHub UI and the button's dropdown items displaying different Dev Spaces instances/
    Figure 1. Screenshots of the extension's Dev Spaces button within the GitHub UI.

    By default the web extension opens the GitHub project on the free OpenShift Dev Spaces instance accessible on the Developer Sandbox for Red Hat OpenShift. However, additional Dev Spaces instances (or upstream Eclipse Che instances) for creating workspaces can also be configured. Configuring different Dev Spaces instances is done in the extension’s options page. The Dev Spaces button provides a dropdown menu, allowing you to select which OpenShift Dev Spaces installation you want to create the workspace.

    Figure 2 shows a quick demo of the extension in action. In the demo, we add a new Dev Spaces instance in the extension’s options, and start a new workspace on the newly added instance with the new Dev Spaces button on GitHub.

    A demo of how to use the Dev Spaces button, adding new Dev Spaces endpoint and creating a workspace.
    Figure 2. A demo of how to use the Dev Spaces button. 

    How does the Dev Spaces button work?

    If you have worked with OpenShift Dev Spaces (or the upstream project Eclipse Che®) before, you may already know that you can create workspaces by constructing and accessing a custom URL.

    The custom URL consists of at least two main parts. There can be more parts if you want to customize the workspace further with URL parameters.

    Figure 3 displays a simple example of creating a new workspace with the https://github.com/<user>/<repo> repository on the imaginary https://devspaces.example.com Dev Spaces instance.

    For a concrete example, try accessing https://workspaces.openshift.com/#https://github.com/che-incubator/quarkus-api-example to create a new workspace on the Developer Sandbox for Red Hat OpenShift using the https://github.com/che-incubator/quarkus-api-example GitHub project.

    Example of a URL to create a new Dev Spaces workspace.
    Figure 3. The URL used to create a new workspace in OpenShift Dev Spaces.

    Clicking the Dev Spaces button is essentially just accessing a custom-made URL. As the customization options for the URL grows, creating the custom URL by hand can be more time-consuming. The button is there for convenience, constructing URLs so you don’t have to.

    Installing the web extension on an air-gapped environment

    You can download the web extension’s source code from the GitHub repository, build and sideload it into your browser.

    To build the extension, run the following on a non-air-gapped machine:

    $ git clone https://github.com/redhat-developer/try-in-dev-spaces-browser-extension/tree/v1.0.0
    
    $ cd try-in-dev-spaces-browser-extension/
    
    $ yarn
    
    $ yarn build:prod # build the extension for Chromium based browsers
    
    $ yarn build:prod-sf # build the extension for Safari and Firefox

    You can find the built extension for Chromium-based browsers in dist/chromium and the extension built for Safari and Firefox in dist/safari-firefox. Copy the built extension to the air-gapped machine and sideload the extension to the web browser by following the browser-specific steps from this document.

    Upcoming plans for Try in Dev Spaces

    We plan to expand the extension's functionality by adding support for Azure DevOps Services, GitLab, and BitBucket in a future release. Additionally, we will make it easier to configure the created workspace using URL parameters (e.g., automatically setting up Git remotes when starting a workspace from a forked repository). If you have a question, please create an issue in the GitHub repository. We welcome your feedback.

    Last updated: August 12, 2024

    Related Posts

    • How to run VS Code with OpenShift Dev Spaces

    • Test pull requests with the Try in Web IDE GitHub action

    • How to access the Developer Sandbox for Red Hat OpenShift

    Recent Posts

    • What GPU kernels mean for your distributed inference

    • Debugging image mode with Red Hat OpenShift 4.20: A practical guide

    • EvalHub: Because "looks good to me" isn't a benchmark

    • SQL Server HA on RHEL: Meet Pacemaker HA Agent v2 (tech preview)

    • Deploy with confidence: Continuous integration and continuous delivery for agentic AI

    What’s up next?

    In this activity, you'll deploy and update a distributed application on the fly using OpenShift Dev Spaces and Eclipse JKube. 

    Start learning
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    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
    © 2026 Red Hat

    Red Hat legal and privacy links

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

    Chat Support

    Please log in with your Red Hat account to access chat support.