> ## Documentation Index
> Fetch the complete documentation index at: https://a5eb32f-docs-2.manicule.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://a5eb32f-docs-2.manicule.dev/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://a5eb32f-docs-2.manicule.dev/api/mcp.
> Every agent surface: https://a5eb32f-docs-2.manicule.dev/.well-known/llms-manifest.json

# Open an Existing Project (/getting-started/import-projects)

<!-- agent-signals: reading_time_min: 2 · est_tokens: 697 · updated: 2026-11-25 -->
Related: [Install BhaiCode Desktop](/getting-started/installation.md), [Configure a Model](/getting-started/models.md), [Build and Deploy Your First App](/getting-started/quickstart.md), [Choose a Cloud Studio Starter](/getting-started/templates.md), [BhaiCode Documentation](/index.md)

> 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](https://app.bhaico.de) 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

<Steps>
<Step title="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.</Step>

<Step title="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.</Step>
</Steps>

<Note>Opening a repository doesn't change its branches, remotes, or commit history. BhaiCode doesn't modify your `.git` directory without your explicit permission.</Note>

## Import a remote repository into Cloud Studio

<Steps>
<Step title="Connect your repository host">Connect [GitHub](/connectors/github) or [GitLab](/connectors/gitlab). If a repository doesn't appear when you import, check that the connected account can access it.</Step>

<Step title="Choose the repository and branch">On the [Studio dashboard](https://app.bhaico.de), 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.</Step>

<Step title="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.</Step>
</Steps>

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

* [Edit a local project in Desktop](/desktop/code-editor)
* [Test your imported project in the live preview](/studio/live-preview)
* [Work with branches and remotes in Studio](/studio/version-control)
