Initialization
Workspace
Structure
The workspace directory initially has following structure:
. ├── data/ │ ├── alternative/ │ ├── cfd/ │ ├── crypto/ │ ├── equity/ │ ├── forex/ │ ├── future/ │ ├── futureoption/ │ ├── index/ │ ├── indexoption/ │ ├── market-hours/ │ ├── option/ │ ├── symbol-properties/ │ └── readme.md └── lean.json
These files contain the following content:
File/Directory | Description |
---|---|
data / | This directory contains the local data that is used when running the LEAN engine locally. This directory is filled with sample data from the QuantConnect/Lean repository. |
lean.json | This file contains the Lean configuration that is used when running the LEAN engine locally. The configuration is stored as JSON with support for both single-line and multiline comments. The Lean configuration file is based on the Launcher/config.json file from the Lean repository. When you create a new workspace, the latest version of this file is downloaded and stored on your local drive. |
As you add projects, the project files are added to your workspace directory. If you create and use shared libraries in your projects, the library files are added to a Library directory in your workspace.
Pull Cloud Workspaces
Follow these steps to pull one of your cloud workspaces and set it as your local workspace:
- Log in to the local platform.
- In the left navigation menu, click the
QuantConnect icon.
- In the Select Workspace panel, click .
- In the Pull QuantConnect Organization Workspace window, click the cloud workspace (organization) that you want to pull.
- In the Pull QuantConnect Organization Workspace window, create a directory to serve as the workspace and then click .



It takes a few minutes to create a new workspace directory and populate it with the the initial file structure. After the workspace directory is populated with the initial file structure, it pulls your cloud project files.
If you are running Docker on Windows using the legacy Hyper-V backend instead of the new WSL 2 backend, you need to enable file sharing for your temporary directories and for your workspace. To do so, open your Docker settings, go to C: / Users / <username> / AppData / Local / Temp and your workspace path to the list. Click after making the required changes.
and addUse Local Workspaces
If you have pulled a cloud workspace before or have set up a CLI workspace, you can set it as your current workspace.
Follow these steps to connect to workspace that's already on your local machine:
- Log in to the local platform.
- In the left navigation menu, click the
QuantConnect icon.
- In the Select Workspace panel, click .
- In the Update Organization Workspace window, navigate to the workspace directory and then click .


Change Workspaces
Follow these steps to change the workspace directory:
- Log in to the local platform.
- In the left navigation menu, click the
QuantConnect icon.
- If a project is already open, close it.
- In the Open Project panel, click .
- Pull a cloud workspace or use a local workspace.
