
Making a change from the AI chat
- Your project must be a web or full-stack project in a GitHub repository.
- You need an Editor role or higher in the workspace.
- You need to connect a GitHub account during setup.
Setting up Base Code
Connect a GitHub repository to make changes with the AI chat in Base Code. If your GitHub account is already connected, continue to choosing a repository.Connecting your GitHub account
Base Code works directly in your GitHub repositories, so it needs access to the ones you want to work on. To connect your account:- Go to Base Code.
- Click Connect GitHub.
- Sign in to GitHub if prompted, then authorize Base44 Builder.
- Select the GitHub account or organization, then follow the prompts to install or configure Base44 Builder and give it repository access.
Choosing a repository
Pick the codebase you want to work on, from your own repositories or a copy of one you can’t push to.- From your account
- Paste a link
- In Base Code, click View more.
- Select a repository.
- Under Branch, keep the selected branch or select another.
- Click Connect.
Working on your project
Use the AI chat to make changes to your connected repository and test them in a development preview. As you chat, Base Code commits and pushes your changes to your working branch on GitHub.Making your first change
Base Code starts a new branch from your first request and names it for you, so your change stays separate until you open a pull request. To keep working on an existing GitHub branch, import it. To make your first change:- Go to Base Code.
- (Optional) If a drop-down appears next to Create new branch, select the branch to start from.
-
In the prompt box, describe the change you want to make. For example:
- Click Create branch to open the new branch and start making changes.
- Review the change in Preview, then ask the AI chat for any adjustments.
Reviewing your changes
Check exactly what changed before you ask anyone to review it. To review your changes:- Open the changes you want to check:
- One reply’s changes: Use the file list below that reply in the AI chat.
- Every change on the branch: Click Create PR at the top of the editor, or click the PR number if one already exists.
- Click a file name to see its diff, with the lines added and removed.
Reverting a file
Undo the changes you don’t want in a file, with the revert saved as a new commit on your branch. To revert a file:- Click the revert icon next to the file in either file list, including an open pull request’s.
- Check that the right file appears in Revert branch changes?, then click Revert.
Managing branches
Branches let you work on several changes at once without them affecting each other. Each branch has its own development environment in Base Code and its own pull request.Working from the sidebar
See where each of your branches stands and go straight to the one that needs you. Your branches in the sidebar lists the branches you created. Merged branches stay in the list, so you can still read their chats. Each branch has a status icon. Hover over it to see the label, with the pull request number when there is one.Organizing your branches
Keep the branches you’re focused on within reach and bring the ones that need you to the top.
A pinned branch above a group in Your branches
- Hover over the branch in the sidebar, then click its options icon .
- Click Pin.
- Click the New group icon next to Your branches.
- Enter a Group name, then click Create group.
- Drag a branch onto the group, or click the branch’s options icon , click Move to group, then select the group.
- Click the Sort branches icon next to Your branches.
- Under Sort by, select one of the following:
- Priority: Branches that need you first, then the ones on hold.
- Last updated: Most recently worked on first. This is the default.
- Manual order: The order you arranged by dragging.

Sorting Your branches by Priority
Creating branches
Start each new change on its own branch, from your default branch or from another branch you’re working on. To create a branch from the sidebar:- Click New branch in the sidebar.
- Describe your change in the AI chat and send the message.

Starting a branch from the sidebar
- Click the branch drop-down above the AI chat.
- Click Create new branch.
- Select the starting branch from the drop-down next to Start from.
- Describe your change in the AI chat and send the message.
Importing a branch from GitHub
Import an existing GitHub branch to keep working on it in Base Code. Your changes are committed and pushed to that branch. To import a branch:- Click the branch drop-down above the AI chat.
- Click Import from GitHub.
- Select the branch.
- Click Import.
Deleting a branch
Clear out branches you’re done with, along with their chats, while the branches stay on GitHub. To delete a branch:- Open the branch’s menu in one of these places:
- In the sidebar, hover over the branch, then click its options icon .
- In the branch drop-down above the AI chat, click More actions next to the branch.
- Click Delete.
- Click Delete branch to confirm.
Working with pull requests
Get your changes reviewed and merged through pull requests on GitHub. Base Code always uses your own GitHub connection, whatever your workspace sets for its other apps. Your GitHub account needs to be connected and have write access to the repository. Base44 opens pull requests from your account. Each commit from the AI chat lists you as the author andbase44-builder[bot] as co-author.
Opening a pull request
After testing your changes, open a pull request for review. Your pull request targets the branch your working branch was created from. The AI chat writes the title and description from your conversation and committed changes. To open a pull request from the top of the editor:- Click Create PR at the top of the editor.
- Review the changed files in Create pull request.
- Click Continue in builder.
- Review and send the prefilled message in the AI chat.
Tracking your pull requests
Track the progress of your open pull requests and see which ones need your attention. To track your pull requests:- Go to Base Code.
- Under Your open PRs, choose what you want to do:
- Open a pull request: Click its PR number to open it on GitHub, or click its title to open its branch in Base Code.
- Filter by status: Click the filter, then select All, In review, Conflicts, or Open.
- Find a pull request: Click the search icon and enter its title or number.
- Sort pull requests: Click Sort to reverse the order by pull request number.
About pull request statuses
About pull request statuses
- Draft: It’s still a draft on GitHub.
- Open: No reviewer yet, and nothing is blocking it.
- In review: A reviewer is assigned or has requested changes.
- Approved: A reviewer approved it.
- Conflicts: Your branch has conflicts to resolve with its base branch.
Resolving branch conflicts
If your pull request has conflicts, the AI chat can resolve them for you. Resolving conflicts merges the pull request’s base branch into your working branch. To resolve conflicts:- Click Resolve conflicts above the prompt box.
- Review and test the changes the AI makes, especially where both branches changed the same feature.
Answering review comments
Use the AI chat to address feedback on your pull request. To answer review comments:- Ask the AI chat to list unresolved comments on your pull request. It includes the file and line for each thread.
- Tell it which comments to address and what to change.
- Review the proposed changes and replies before asking it to post.
- Ask the AI chat separately to resolve a thread when you’re ready.
Adding secrets
Give your project the API keys and other credentials it needs without putting them in your repository. The AI chat prompts you when a secret is required. Secrets are encrypted, shared across branches and kept when your environment rebuilds. Changes and removals apply automatically to running branches. Inactive branches pick them up when you next open them. To add a secret:- Click Dashboard at the top of the editor.
- Click Secrets.
- Click Add Secret.
- Enter the Secret Name and Secret Value, then click Add Secret.
Collaborating with teammates
Your team can contribute to the same project and review each other’s changes through pull requests. Anyone with an Editor role or higher in the workspace can open an existing Base Code project without a separate app invitation. To invite someone outside your workspace, add them as a collaborator from the app editor.FAQs
Which apps can I connect to Base Code?
Which apps can I connect to Base Code?
My repository is a monorepo. Can I connect it?
My repository is a monorepo. Can I connect it?
Why isn't my repository listed?
Why isn't my repository listed?
- On GitHub, give Base44 Builder access to the repository.
- Reopen Connect your repository in Base Code.
Why does Base44 say my repository is not in an approved GitHub organization?
Why does Base44 say my repository is not in an approved GitHub organization?
How do I manage GitHub organizations in my workspace?
How do I manage GitHub organizations in my workspace?
- Go to your workspace settings.
- Under Build tools, click GitHub.
- Choose what you want to do:
- Choose who can connect organizations: Under Who can connect organizations, select who can add an organization.
- Filter organizations: In Connected organizations, use the filter to show All, Active, or Disconnected organizations.
- Make an organization available for new apps: Under Connected organizations, use Allowed to control which organizations are available. Changing Allowed doesn’t affect apps already using that organization.
- Disconnect an organization: Click the actions icon next to the organization, click Disconnect organization, then click Disconnect.
Can I choose the AI model?
Can I choose the AI model?
- Click the model at the bottom of the AI chat.
- Select the model you want to work with.
Why is my project read-only?
Why is my project read-only?
- Open the project.
- In the Connect your GitHub account banner, click Connect account.
- Authorize Base44 Builder on GitHub.
What happens if I close Base Code and come back later?
What happens if I close Base Code and come back later?
Can I add a database, authentication, or CI/CD to my project?
Can I add a database, authentication, or CI/CD to my project?
Why did Base Code create a setup branch?
Why did Base Code create a setup branch?
How do pull requests work in Base Code?
How do pull requests work in Base Code?
Why can't Base44 open my pull request?
Why can't Base44 open my pull request?
Where can I learn about privacy and data use?
Where can I learn about privacy and data use?
How do I apply a coupon code?
How do I apply a coupon code?
- Go to Base Code.
- 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?.
- Click Apply.