Skip to main content

Set Up Your GitHub Codespace Environment

This tutorial provides step-by-step instructions for setting up a personal Codespace for developing Cortex XSOAR content.

What are GitHub Codespaces?#

GitHub Codespaces are cloud-based development environments provided by GitHub that allow you to set up remote environments with preinstalled and preconfigured tools and dependencies using a dev container.

Your Codespace environment will be hosted on GitHub's servers (attached to your GitHub account), and will allow you to access your Codespace from any computer, continuing your work from where you left off.

Cost and Limitations#

GitHub offers a free quota for Codespaces (which is higher for GitHub Pro users) that you can utilize for developing Cortex XSOAR content.

The quota is calculated based on the number of hours your Codespace is actively running. You can see the free quota plan and additional information here.


Codespaces generated from the Content repository (or a fork of it) are configured to have 4 cores by default.


You will receive an automated email notification when you have used 75%, 90%, and 100% of your freely-included quotas.

You can find information about your Codespaces quota usage in the settings under "Billing and plans".
See the following GitHub article for a step-by-step guide: Viewing your GitHub Codespaces usage.

If you want to use paid usage once you've reached your free quota, you can find information about the pricing here.


A GitHub account (can be created here).


The following instructions are for an initial setup that needs to be done only once.
After that, the generated environment will be kept in your GitHub account.

Create a New Codespace#

  1. Log in to your GitHub account (if not already logged in).
  2. Enter the XSOAR Content repository.
  3. Fork the repository to your account (see example GIF below):
    1. Click Fork at the top right.
    2. Select your account as the owner, and leave the repository name as is.
    3. Keep the Copy the master branch only option selected.
    4. Click Create fork.
  4. Wait a few seconds for the fork to be created. You will be redirected to your forked repository page.
  5. Create a new branch on your fork, and give it a meaningful name.
  6. Click Code, go to the Codespaces tab, and click Create Codespace on \<branch name> (see example GIF below).
  7. A page saying "This Codespace is requesting additional permissions" might appear.
    If it does, click Continue without authorizing.
  8. Click New Codespace (this might take a few minutes).


Creating a new fork Creating a new fork

Creating a new Codespace Creating a new Codespace

Connect to Your Codespace#

Browser-based Visual Studio Code#

By default, GitHub provides a browser-based Visual Studio Code editor that's automatically configured, authenticated, and connected to your Codespace, using your GitHub account.
This IDE should be sufficient for most use cases.

To open it, enter the main forked repository page, click Code, go to the Codespaces tab, and click the newly created Codespace (should have a random name).

It can take up to a few minutes for the Codespace to be fully initialized.
This is a one-time process that's done only the first time you open a Codespace.

Once the initialization is completed and your Codespace is ready, you will be redirected to the IDE, where you can start your development.

Connecting to the Codespace (browser) Connecting to the Codespace (browser)

Visual Studio Code (local)#

In order to connect to your Codespace from a local Visual Studio Code editor, you will need to install the official GitHub Codespaces extension.

For a complete installation and configuration tutorial, refer to the official "Using GitHub Codespaces in your local development environment" article by GitHub.
(You can skip the "Creating a Codespace in VS Code" section, as we've already created a Codespace.)

Using JetBrains IDEs (PyCharm, IntelliJ IDEA, etc.) (local)#

In order to connect to your Codespace from a JetBrains IDE, you will need to install and configure JetBrains Gateway.

For a complete installation and configuration tutorial, refer to the official "Using GitHub Codespaces in your JetBrains IDE" article by GitHub.


After your IDE is connected to your Codespace, you can start developing your content as you normally would.

The environment comes pre-installed with all the required tools and dependencies for developing Cortex XSOAR content.
Configuring SSH keys or any other credentials is also not required, as the Codespace is already authenticated using your GitHub account.

Additional Resources#

For additional documentation about GitHub Codespaces, see the official GitHub Codespaces documentation.

Last updated on