# Add a codespace
URL: https://docs.datarobot.com/en/docs/workbench/wb-notebook/codespaces/create-cs.html

> Learn how to create a Codespace to store notebooks and associated files.

# Add a codespace

Codespaces are an asset of a Use Case. Navigate to the Use Case in which you want the codespace included and click:

- Add > Add codespace to create a new codespace.
- Upload codespace to upload a local folder with a collection of files or use a Git URL to serve as a codespace.

After selecting, the codespace interface opens.

### Upload files to create a codespace

You can upload a local folder with a collection of files or use a Git URL to serve as a codespace.

To upload file(s) or folders from your local machine, either drag and drop them into the upload modal or use file picker. When you click Upload DataRobot creates a new codespace, starts up the codespace session, and uploads the selected file(s) to the codespace file system.

You can also create a new codespace from an existing public Git repository. In the upload modal, specify the Git repository URL for the repo that you want to clone. When you click Upload, DataRobot creates a new codespace, starts up the codespace session, and clones the Git repository to the codespace file system. If you want to clone a private repo to a codespace, you must first create a new, empty codespace, then [clone the repo using the Git CLI from the terminal](https://docs.datarobot.com/en/docs/workbench/wb-notebook/codespaces/session-cs.html#work-with-a-private-github-repository). You can integrate DataRobot with your Git provider so that DataRobot can access your repositories using the OAuth 2.0 standard. For more information, reference the [Integrate with a Git provider](https://docs.datarobot.com/en/docs/workbench/wb-notebook/codespaces/session-cs.html#integrate-with-a-git-provider) page.

---
