> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slai.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Import Code from Github

You can integrate existing code into Slai with our Github integration.

### Connect your Github account to Slai

First, you'll need to connect your Github to Slai. You can do that on the **Integrations** page.

### Importing a repo into a sandbox

After connecting your Github account to Slai, you can import repos directly into a sandbox.

Click the **+ Add File** icon in the files section, and select **Import from Github**. You can also enter the URL of any Github repo you have read access to.

<img src="https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/integrations/github/add-github.svg?fit=max&auto=format&n=0GTBstnyDK-8Z9OV&q=85&s=13f6c65bc6d4557f3f51912da96e4e8c" alt="Add GitHub" width="1008" height="591" data-path="img/integrations/github/add-github.svg" />

You'll be prompted to select from a list of repos in your account.

<img src="https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/integrations/github/add-github-1.png?fit=max&auto=format&n=0GTBstnyDK-8Z9OV&q=85&s=09b03f5fa26e35a8ec16b9c5d7f24b2f" alt="List of repos" width="976" height="1244" data-path="img/integrations/github/add-github-1.png" />

### Using imported repos in your projects

After importing a repo, you'll see all the files in the repo added to the file tree.

<img src="https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/integrations/github/github-files.png?fit=max&auto=format&n=0GTBstnyDK-8Z9OV&q=85&s=0b67fe1b0eb93669c29d1b4055798a53" alt="GitHub files" width="446" height="1010" data-path="img/integrations/github/github-files.png" />

After importing your repo, you can reference any of the modules like any ordinary Python module.

<img src="https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/integrations/github/using-github-files.png?fit=max&auto=format&n=0GTBstnyDK-8Z9OV&q=85&s=2e4a3427050987dfd6daa86eb8b5321a" alt="Using GitHub files" width="718" height="218" data-path="img/integrations/github/using-github-files.png" />
