Skip to content

Open an Existing Project

Open a local folder in BhaiCode Desktop or import a GitHub or GitLab repository into Cloud Studio.

Use BhaiCode with a project you already have instead of starting from a blank workspace. Open a folder in Desktop to work with the copy on your machine, or import a remote repository into Cloud Studio to work in your browser. For a Studio import, connect the account that has access to the repository first.

Open a local folder in Desktop

Select your project folder

Start BhaiCode Desktop and click Open Folder on the welcome screen. You can also press Ctrl + O (Cmd + O on macOS). Select the local folder that contains your project. If you want BhaiCode to see the whole project, start at its root rather than a subfolder.

Check that you opened the right project

BhaiCode reads the project tree, .gitignore, and package dependencies. If the folder is a Git repository, it also reads its history. Check the file tree and current branch before you ask the agent to make changes.

Opening a repository doesn’t change its branches, remotes, or commit history. BhaiCode doesn’t modify your .git directory without your explicit permission.

Import a remote repository into Cloud Studio

Connect your repository host

Connect GitHub or GitLab. If a repository doesn’t appear when you import, check that the connected account can access it.

Choose the repository and branch

On the Studio dashboard, go to New Project → Import Repository. Pick the repository, then choose the branch you want to work on, such as main. Use the branch that contains the code you expect to see in the preview.

Set variables and open Studio

Add any environment variables the project needs, such as API keys or connection secrets, to the import form. Click Import & Open Studio. Studio clones the repository tree, detects its framework configuration, launches the live preview, and gives Bhai context from the codebase.

Before requesting changes, check that the preview opens the app you expect. If the app depends on environment variables, check those first when a feature that worked before import can’t connect to its service.

If you maintain both a local copy and a Studio import, check the branch in the workspace you’re using before you ask Bhai to edit. The local folder and the Studio clone are separate copies.

Next

Was this page helpful?