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

# Getting started with Base Code

> Connect an existing GitHub repository to Base Code, make your first change with AI on its own branch, and open a pull request for your team to review on GitHub.

[Base Code](https://base44.com/base-code) gives your team a shared cloud environment for your existing GitHub code, with no local setup, while GitHub stays the source of truth. Connect a repository, describe a change in the AI chat, and the AI gets your project running and writes the code on its own branch. After each reply, Base Code commits and pushes the changes to that branch on GitHub, and your target branch stays the same until you merge your pull request.

If you built your app in Base44, keep building it in the app editor and [connect it to GitHub](https://docs.base44.com/developers/app-code/local-development/github.md) to sync its code.

![Base Code making a change from the AI chat on a working branch, with the project files and the Preview updating](https://mintcdn.com/base44/14mHcwtsjgXgI4LR/images/base-code-hero-animated.gif?s=e70877ead77d357b9f715e8ee11adb45)

Using Base Code

> [card] [Ready to get started?](https://app.base44.com/base-code)
>
> Open Base Code and sign in to Base44, or create a free account.

***

## Step 1 | Connect your GitHub account

Base Code works directly in your GitHub repositories, so it needs access to the ones you want to work on.

> [!WARNING]
>
> **Before you connect:**
>
> * **Role:** You need an Editor role or higher in the workspace.
> * **Project:** Your project must be a web or full-stack project in a GitHub repository. In a monorepo, the project at the root of the repository must qualify, and a mobile app in a subfolder is fine.
> * **GitHub access:** You need a GitHub account with write access to the repository, or Base Code can [make your own copy](#paste-a-link) of one you can't push to.

If your GitHub account is already connected, continue to [choosing a repository](#choosing-a-repository).

**To connect your account:**

1. Go to [Base Code](https://app.base44.com/base-code) and sign in to Base44, or create a free account.
2. Click **Connect GitHub**.
3. Sign in to GitHub if prompted, then authorize **Base44 Builder**.
4. Select the GitHub account or organization, then follow the prompts to install or configure **Base44 Builder**. Choose which repositories it can reach:

   * **All repositories:** Every repository in the account, including new ones. Choose this on your own GitHub account if you plan to [fork or copy repositories](#paste-a-link), so Base44 can reach each new copy.
   * **Only select repositories:** Only the repositories you pick. Include each repository you want to work on.

   > [!NOTE]
   >
   > If you aren't an owner of the GitHub organization, GitHub sends your request to the organization's owners and you see **Waiting for approval**. After an owner approves it, click **Connect GitHub** again.

***

## Step 2 | Choose a repository

Pick the repository you want to work on. If you can't push to it, Base Code can make your own copy of it on GitHub.

> [!NOTE]
>
> Setting up your project doesn't change your repository. Base Code keeps its setup files on the Base44 side, so it doesn't commit them or create a setup branch.

### Connecting your repository

Find your repository on the Base Code start screen, or choose it from your GitHub account or paste its link.

**To open your repository:**

1. Go to [Base Code](https://app.base44.com/base-code).
2. Choose where to find your repository:
   * **It's shown on the start screen:** Select it, then click **Edit in Base**. Base Code connects it on its default branch, so you can skip to [Step 3](#making-your-first-change).
   * **It isn't shown:** Click **View other repos** to open **Connect your repository**.
   * **You've connected a repository before:** Click the repository drop-down at the top of the sidebar, then click **Add repository** to open **Connect your repository**. On mobile, it's called **Add new repository**.

> [tab] From your account
>
> **To choose a repository from your account:**
>
> 1. Select a repository in **Connect your repository**.
> 2. Click **Connect**. Base Code connects it on its default branch.

> [tab] Paste a link
>
> **To choose a repository by pasting a link:**
>
> 1. Click **Paste a link** in **Connect your repository**.
> 2. Paste the GitHub repository URL. To connect a branch other than the default, paste the link to that branch, ending in `/tree/<branch-name>`.
> 3. Continue based on your access:
>    * **You have write access:** Click **Connect**.
>    * **You don't have write access:** Under **Your copy on GitHub**, keep or change the suggested name, then choose a copy. Your pull requests target your copy, not the original repository.
>      * **Fork (public):** Linked to the original, so you can send changes back to it. Click **Fork and connect**.
>      * **Private copy:** Only you can see and edit it, and it isn't linked to the original. Click **Copy and connect**.

### Fixing repository problems

If you can't connect or edit your repository, choose what applies:

> [accordion] My repository isn't listed
>
> If your repository isn't listed in **Connect your repository**, give Base44 access to it on GitHub.
>
> **To update repository access:**
>
> 1. Give **Base44 Builder** access to the repository on GitHub.
> 2. Reopen **Connect your repository** in Base Code.

> [accordion] My repository's organization isn't approved
>
> If you see "Your workspace's GitHub policy doesn't allow this import", or Base44 says your repository isn't in an approved GitHub organization, your workspace doesn't allow repositories from that organization. Ask someone who [manages your workspace's GitHub organizations](https://docs.base44.com/base-code/managing-projects.md#managing-github-organizations) to connect the organization and mark it **Allowed**, then try again.
>
> The same rule applies to a [fork or private copy](#paste-a-link). Base Code creates it in your own GitHub account, so that account must also be in your workspace's connected organizations and marked **Allowed**.

> [accordion] I can't make changes or create a branch
>
> If your project shows a **Read only** badge, or Base Code asks for GitHub access when you click **Create branch**, your GitHub account isn't connected or doesn't have write access to the repository. In a read-only project, you can still discuss it in the AI chat and switch branches.
>
> **To connect your GitHub account:**
>
> 1. Go to [Base Code](https://app.base44.com/base-code).
>
> 2. Click the connect button Base Code shows you:
>    * **In a read-only project:** Open the project, then click **Connect account** in the **Connect your GitHub account** banner.
>    * **When you create a branch:** Click **Connect to GitHub**.
>
> 3. Authorize **Base44 Builder** on GitHub.
>
> 4. (Optional) If you were creating a branch, click **Create branch** again.
>
> > [!NOTE]
> >
> > If you see **GitHub write access required** or "Your GitHub account can't push to this repo", your account is connected but doesn't have write access. Ask a repository admin to give your GitHub account write access, then click **Recheck permissions**, or try creating the branch again. You can also connect [your own copy](#paste-a-link) of the repository instead.

***

## Step 3 | Make your first change

After you connect a repository, your project opens in the Base Code editor, and the AI sets it up on the branch you connected. Then describe your first change on the Base Code start screen, and Base Code creates a branch for it and names it for you.

> [!NOTE]
>
> **What to expect:**
>
> * **Setup:** The AI chat shows each setup step as it goes. If a step fails, click **Fix setup** to have the AI fix it. You might not see **Preview** until the AI has your project running.
> * **Sessions:** If your sidebar shows **New session**, your project uses [sessions](https://docs.base44.com/base-code/branches-and-pull-requests.md#working-in-sessions), and Base Code starts your change in a session instead of a branch.
> * **Credits:** Setup is free. After that, each request uses your workspace's [credits](https://docs.base44.com/Account-and-billing/Credits.md#how-credits-are-used).

**To make your first change:**

1. When setup finishes in the AI chat, click **Home** in the sidebar to open the start screen.

2. If you've connected several repositories, select the one you want to change in the repository drop-down at the top of the sidebar.

3. (Optional) Select the branch to start from in the drop-down next to **Create new branch from**. If your sidebar shows **New session**, the drop-down is next to **Create new session from**.

4. Describe the change you want to make in the prompt box. For example:

   ```text theme={null}
   Add a dark mode toggle to the settings page,
   and remember the choice between visits.
   ```

   > [!TIP]
   >
   > Already started this change in Claude Code or Codex? [Import your session](https://docs.base44.com/base-code/branches-and-pull-requests.md#importing-a-claude-code-or-codex-session) to continue it in Base Code.

5. Click **Create branch**. If your sidebar shows **New session**, click **Create session** instead. If Base Code asks for GitHub access, see [I can't make changes or create a branch](#i-cant-make-changes-or-create-a-branch).

   ![The Base Code home screen with a dark mode request in the prompt box and Create branch outlined](https://mintcdn.com/base44/Los6Grrnm9gT0VmU/images/base-code-first-change-create-branch.png?fit=max\&auto=format\&n=Los6Grrnm9gT0VmU\&q=85\&s=cb0545d17de7a364a275ef7a6ec5fad4)

   Creating your first branch

6. Review the change in **Preview** once it appears, then [ask the AI chat for any adjustments](https://docs.base44.com/base-code/making-changes.md).

7. When you're happy with the change, [open a pull request](https://docs.base44.com/base-code/branches-and-pull-requests.md#opening-a-pull-request) so your team can review it on GitHub.

> [!NOTE]
>
> **How your project runs:**
>
> * **Preview, not hosting:** Base Code provides a development preview, not production hosting. To release your changes or connect a custom domain, use your project's existing deployment process and hosting provider.
> * **Your own stack:** Your project keeps its own database, authentication, and routing. Connecting a repository doesn't add any Base44 database, login, or code to your project. To add a database, authentication, or CI/CD, ask the AI chat to add it with your project's own stack, and [add any connection strings or API keys as secrets](https://docs.base44.com/base-code/making-changes.md#adding-secrets).
> * **Coming back:** When you come back to Base Code, your project environment starts back up. If it needs rebuilding, Base Code rebuilds it from the latest commit on your GitHub branch, so you only get back the changes that reached GitHub. Before you leave, let the AI finish its reply.

***

## FAQs

> [accordion] How do I apply a coupon code?
>
> A Base Code coupon makes AI chat requests free for everyone in your workspace for 30 days, while the model is set to **Auto**. You can apply it before or after connecting a repository.
>
> You can apply 1 coupon per workspace. Each code also works in only a limited number of workspaces, so if you see "This code has reached its redemption limit", try another code.
>
> **To apply a coupon:**
>
> 1. Go to [Base Code](https://app.base44.com/base-code).
> 2. Enter your coupon code:
>    * **Before connecting a repository:** Click **Have a coupon?** at the top right, then enter your code in the dialog.
>    * **After connecting a repository:** Enter your code in the field under **Have a coupon?**.
> 3. Click **Apply**.

> [accordion] Where can I learn about privacy and data use?
>
> Base44's [Privacy Policy](https://base44.com/privacy-policy) explains how personal information is collected and used. [Privacy and security](https://docs.base44.com/Community-and-support/Privacy-and-security.md) covers AI model training and your data controls.


## Related topics

- [Getting started as an enterprise admin](https://docs.base44.com/Enterprise/getting-started-admin.md)
- [Migrating a project to Base44](https://docs.base44.com/Getting-Started/migrating-an-existing-app.md)
- [Using Base44 built-in integrations](https://docs.base44.com/Integrations/built-in-integrations.md)
- [Using integrations](https://docs.base44.com/Integrations/Using-integrations.md)
- [Managing branches and pull requests in Base Code](https://docs.base44.com/base-code/branches-and-pull-requests.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.