
Using Base Code
- 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 connect your 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
Connect your GitHub account and give Base44 access to the repositories 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
Choose a repository and branch to open in Base Code.- 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
Describe the change you want to make. Base Code creates a new branch and names it based on your request. To work on an existing GitHub branch instead, import the branch to Base Code. 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
Before you open a pull request, review which files changed and what changed in each one. You can review changes in 2 places:- A reply’s changes: Use the file list below that reply in the AI chat. It shows only what that reply changed.
- Current branch changes: Click Create PR at the top of the editor, or click the PR number if one already exists. It shows every committed and pushed change on the branch.
Reverting a file
If a file has changes you don’t want, revert it from either file list, including an open pull request’s. Base Code saves the revert as a new commit and pushes it. To revert a file:- Click the revert icon next to the file in either file list.
- Check that the right file appears in Revert branch changes?, then click Revert.
Managing branches
Create a new branch or import an existing one to work on separate changes. Each branch has its own development environment in Base Code. To switch branches, click the branch drop-down above the AI chat and select a branch.Creating branches
Create a branch from your repository’s default branch or another active branch. To create a branch:- 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
Deleting a branch removes it and its chat from Base Code. The branch remains on GitHub. To delete a branch:- Click the branch drop-down above the AI chat.
- Click More actions next to the branch, then click Delete.
- Click Delete branch to confirm.
Working with pull requests
Get your changes reviewed and merged through pull requests on GitHub.Opening a pull request
After testing your changes, open a pull request for review. When your workspace uses each person’s GitHub connection, your account needs write access to the repository. 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 review your pull requests:- Go to Base Code.
- Find the pull request you want to review 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
Add API keys and other secrets your project needs. The AI chat prompts you when a secret is required. Secrets are encrypted, kept out of your repository, 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?
base44-builder[bot] as co-author.Merge your pull request on GitHub, or ask the AI chat to merge it.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.