Skip to main content
Base Code gives your team a shared cloud environment to work on an existing web or full-stack codebase without setting up a local development environment. Use the AI chat to make changes on branches, preview your work, and open pull requests for review, while GitHub stays the source of truth.
Base Code showing AI chat, project files, a working branch, live Preview, and Create PR
Before you begin:Your project must be a web or full-stack project in a GitHub repository.

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.
Connect a repository from your GitHub account. Make sure you have push access to the repository.To connect from your account:
  1. Go to Base Code.
  2. If your GitHub account isn’t connected, click Connect GitHub and authorize the repositories you want Base44 to access.
  3. Click View more to open Connect your repository.
  4. Click From your account.
  5. Select the repository.
  6. 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.
  7. Click Connect.
To connect another repository later, open the repository switcher in Base Code and click Add new repository.

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:
  1. Go to Base Code.
  2. In the prompt box, describe the change you want to make. For example:
  3. Click Create branch. Base Code opens the new branch in the editor and starts working.
  4. Check Preview and ask the AI chat for any adjustments.
Base44 names the branch from your request.
Base Code runs your project in a development preview. To release your changes to production, use your project’s existing deployment process.

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:
  1. Click Create PR at the top of the editor.
  2. Enter a Title and a Description (optional).
  3. Click Create PR.
  4. Open the pull request link to review your changes in GitHub.
You can also ask the AI chat to create a pull request. It writes the title and description for you.

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 as base44-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:
  1. Go to your app’s dashboard.
  2. Click Secrets.
  3. Click Add Secret.
  4. Enter the Secret Name and Secret Value, then click Add Secret.
To add secrets in bulk, click Import .env, then upload or paste your file. Each KEY=VALUE line becomes a secret, and any existing secret with the same name is overwritten.

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

The GitHub integration syncs an app you built in Base44 with a repository. Base Code works the other way around, starting from a repository that already exists. To move a project from another platform such as Shopify or Lovable, see migrating a project to Base44. To link a local Base44 backend project with the CLI instead, see linking an existing project.
Base Code provides a development preview, not production hosting. Connect and manage your custom domain through your hosting provider.
No. Base Code runs web and full-stack projects only. You get a message naming what it detected as soon as you connect, and nothing is created in your account.
Base Code checks the project at the root of the repository, and that project has to be a web or full-stack project. A mobile app in a subfolder doesn’t make the repository ineligible on its own.
Yes. With your GitHub account connected, use Paste a link to create a fork or private copy. If your workspace limits repositories to approved GitHub organizations, you need push access to a repository in an approved organization.
Your workspace settings control who can connect GitHub organizations and which organizations are available for new apps. Workspace members still need permission to connect projects. Changing an organization’s Allowed setting doesn’t affect apps already using it.To manage GitHub organization access:
  1. Go to your workspace settings.
  2. Click Build tools.
  3. Click GitHub.
  4. Under Who can connect organizations, choose who can add an organization.
  5. Under Connected organizations, use Allowed to control which organizations are available for new apps.
Your workspace doesn’t allow repositories from this GitHub organization. Ask someone who manages your workspace’s GitHub settings to check that the organization is connected and Allowed under Build tools > GitHub, then try again.
Your project pauses when you stop working, and picks up where it left off when you return. If it needs rebuilding, Base44 clones your repository again and restarts from the latest commit on that branch. Work that was never committed doesn’t survive a rebuild.
Your pull request targets the branch your working branch was created from. For a setup branch created by Base Code, it targets the branch you connected.Further changes to your working branch appear in the same pull request. GitHub runs your repository’s configured checks.Base44 opens the pull request using your GitHub account. Commits list base44-builder[bot] as the author and you as co-author.
Base44 needs permission to open pull requests in your GitHub repository. If prompted, click Review permissions on GitHub. An owner of the repository’s GitHub account or organization needs to approve the requested access. Once approved, return to Base Code and try creating the pull request again.
Yes. Ask the AI chat to add the code to your repository, using your project’s own stack.Connecting a repository doesn’t automatically add or configure Base44 entities, login, or the SDK. Your project keeps its existing database, authentication, and routing.For a new database or service, add its connection string or API key as a secret.
To apply a coupon:
  1. Open your project in Base Code.
  2. Enter your coupon code under Have a coupon?.
  3. Click Apply.
Each coupon code applies to 10 individual users per workspace.