LaraCopilot
LaraCopilot
Deployment

GitHub Integration

Push your LaraCopilot projects to GitHub repositories with one click

GitHub Integration

LaraCopilot can push any project directly to a GitHub repository. Once connected, you can export your generated code and continue developing it outside of LaraCopilot with your normal Git workflow.


Pushing a project to GitHub

  1. Open your project in the IDE
  2. Click the GitHub button in the header toolbar
  3. If this is your first time, you'll be prompted to authorize LaraCopilot to access your GitHub account — click Authorize and complete the OAuth flow
  4. Choose a repository name
  5. Click Push

The full project is pushed to a new GitHub repository under your account. You'll see a link to the repository once the push is complete.


Re-pushing after changes

You can push to the same repository multiple times. After making changes in the IDE:

  1. Click GitHub in the IDE header
  2. The previously connected repository is shown
  3. Click Push to push the latest changes

Each push sends the current state of all project files. It is not incremental — the full project is pushed each time.


Importing from GitHub

You can create a LaraCopilot project by importing an existing GitHub repository rather than generating from scratch.

GitHub import requires a Professional plan or higher. It is not available on Free or Starter plans.

Requirements

Your repository must use:

  • Laravel 12+
  • PHP 8.2+
  • Node.js 20+ (only if your project has a package.json)

How to import

  1. On the Chat page, click Import from GitHub
  2. Paste your GitHub repository URL
  3. For private repositories, add your GitHub Personal Access Token (PAT)
    • The token is used only for cloning and is never stored
  4. Click Validate — LaraCopilot checks the detected versions
  5. If validation passes, click Import
  6. The project is cloned from the default branch and a container is provisioned

Personal Access Tokens for private repos

To import a private repository, you need a GitHub PAT with repo scope:

  1. Go to GitHub → Settings → Developer settings → Personal access tokens
  2. Click Generate new token
  3. Select the repo scope
  4. Copy the token and paste it into the import form

The token is used only once during the cloning step and is not stored by LaraCopilot.

On this page