
Setting up Base Code
Connect the GitHub repository you want to work on. You need to be an owner, admin, or editor in the workspace to connect a repository. For private repositories, make sure the Base44 GitHub App has access. The first time you use Base Code, you can answer how familiar you are with code or skip the question.- From your account
- Paste a link
- Go to Base Code.
- If your GitHub account isn’t connected, click Connect GitHub and authorize the repositories you want Base44 to access.
- Click View more to open Connect your repository.
- Click From your account.
- Select the repository.
- If you want to start from a different branch, click the Branch drop-down and select one. Base44 uses the default branch if you don’t choose one.
- Click Connect.
Working on your project
Once your repository is connected, Base Code opens it in the editor and prepares the preview. Use the AI chat to make changes.Making your first change
Describe what you want to change, then preview the result on a new working branch. To work on an existing GitHub branch, click Import from GitHub in the branch menu. Choose the AI model for your changes, or use Auto mode to let Base44 choose for each request. Click the current model at the bottom of the AI chat to choose an AI model. To make your first change:- Go to Base Code.
-
In the prompt box, describe the change you want to make. For example:
- Click Create branch. Base Code opens the new branch in the editor and starts working.
- Check Preview and ask the AI chat for any adjustments.
Saving your work
Base44 saves your work as you go. For projects synced to GitHub, it commits and pushes each AI chat change to the branch you’re working on. To bring changes into your default branch, open and merge a pull request that targets it.Opening a pull request
After reviewing and testing your changes, open a pull request to share them for review before merging. Your GitHub account needs write access to the connected repository. Opening a pull request doesn’t merge your changes. To open a pull request:- Click Create PR at the top of the editor.
- Enter a Title and a Description (optional).
- Click Create PR.
- Open the pull request link to review your changes in GitHub.
Resolving branch conflicts
If GitHub can’t automatically merge your branch into the branch your pull request targets, the pull request has conflicts. A note above the AI chat identifies the pull request and target branch. Click Resolve conflicts to start resolving them. Base44 merges the base branch into your branch, and the AI works through the overlapping changes. Review and test the resolved changes, particularly where each side implemented the same feature differently.Answering review comments
Handle your reviewers’ feedback from the AI chat, without leaving Base44. Ask the AI chat for the review comments on your pull request, and it lists each unresolved thread with the file and line it points at. Tell it what to change, and it drafts a change and a reply for each one. Review each draft before you tell it to post, and ask separately when you want a thread resolved. Anything it posts appears asbase44-builder[bot]. Merging normally happens on GitHub, and there’s no merge button in Base Code, though you can ask the AI chat to merge a pull request for you.
Managing branches
Base Code uses the Git branches in your repository directly, with Git as the source of truth. Each branch runs in its own sandbox, and deleting a branch in Base Code leaves the branch on GitHub.Managing your project
The dashboard gives you access to your project files, secrets, and the services Base44 runs for your development environment.Adding secrets
When your project needs an API key or other secret, the AI chat prompts you to add it. Secrets are stored encrypted, kept out of your repository, and shared across all branches, including after a rebuild. Changes and removals apply automatically to running branches. Inactive branches pick them up when you next open them. To add a secret:- Go to your app’s dashboard.
- Click Secrets.
- Click Add Secret.
- Enter the Secret Name and Secret Value, then click Add Secret.
Collaborating with teammates
Developers and non-developers can use the AI chat to contribute to the same project, with changes shared through pull requests for review. Owners, admins, and editors in the workspace can access the Base Code project without a separate app invitation. To invite someone outside your workspace, add them as a collaborator from the app editor.FAQs
How is this different from connecting my Base44 app to GitHub?
How is this different from connecting my Base44 app to GitHub?
How do custom domains work in Base Code?
How do custom domains work in Base Code?
Can I connect a mobile or desktop project?
Can I connect a mobile or desktop project?
My repository is a monorepo. Can I connect it?
My repository is a monorepo. Can I connect it?
Can I connect a repository I only have read access to?
Can I connect a repository I only have read access to?
How do I manage GitHub organization access in my workspace?
How do I manage GitHub organization access in my workspace?
- Go to your workspace settings.
- Click Build tools.
- Click GitHub.
- Under Who can connect organizations, choose who can add an organization.
- Under Connected organizations, use Allowed to control which organizations are available for new apps.
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?
What happens if I close Base Code and come back later?
What happens if I close Base Code and come back later?
How do pull requests work in Base Code?
How do pull requests work in Base Code?
base44-builder[bot] as the author and you as co-author.Why can't Base44 open my pull request?
Why can't Base44 open my pull request?
Can I add a database, authentication, or CI/CD to my project?
Can I add a database, authentication, or CI/CD to my project?
How do I apply a coupon code?
How do I apply a coupon code?
- Open your project in Base Code.
- Enter your coupon code under Have a coupon?.
- Click Apply.