Modelcode connects to your GitHub repositories through a GitHub App. This guide covers how the connection works and how to manage your repositories.Documentation Index
Fetch the complete documentation index at: https://docs.modelcode.ai/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- A Modelcode account (sign up at modelcode.ai)
- A GitHub account (personal or organization)
- At least one repository you want to work with
How It Works
Modelcode uses two separate GitHub integrations:- Sign-in with GitHub — You can sign in to Modelcode using your GitHub account. This is handled through our identity provider and is used purely for authentication.
- GitHub App for repository access — To access your repositories, you install the Modelcode GitHub App. This grants Modelcode read access to the repositories you select.
Signing In with GitHub
You can sign in to Modelcode with your GitHub account from the login page.- Go to modelcode.ai
- On the login page, click Continue with GitHub

Installing the GitHub App
Step 1: Navigate to the Projects Page
- Sign in to modelcode.ai
- Go to the Projects page
- If you haven’t connected GitHub yet, you’ll see a Connect GitHub button

Step 2: Install the GitHub App
- Click Connect GitHub
- You’ll be redirected to GitHub to install the Modelcode GitHub App
- Choose which account or organization to install it on
- Select which repositories Modelcode can access:
- All repositories - Grants access to every repo in your account or organization
- Only select repositories - Pick specific repos

If you install the GitHub App on an organization, GitHub may require approval from an org owner before the installation completes.
Step 3: Return to Modelcode
After installing the GitHub App on GitHub, you’ll be redirected back to Modelcode and see a Thank you for installing Morph! confirmation. You can now create projects using your connected repositories.Creating a Project with Connected Repositories
Once the GitHub App is installed:- Click Create Project on the Projects page
- Enter a project name (auto-filled from your first repository name)
- In the repository dropdown, select one repository
- Confirm or change the origin branch
- Set a feature branch name (prefixed with
morph-) - Click Create Project
Managing Repository Access
Adding More Repositories
To grant Modelcode access to additional repositories:- From the Projects page or the Create Project modal, click Connect Repositories
- You’ll be taken to GitHub’s app installation settings
- Add the repositories you want
- Return to Modelcode — the new repos will appear in the dropdown
- Go to GitHub Settings → Applications
- Find the Modelcode app
- Click Configure
- Add repositories to the selected list
Removing Repository Access
To revoke access to specific repositories:- Go to GitHub Settings → Applications
- Find the Modelcode app
- Click Configure
- Remove repositories from the selected list
Uninstalling the GitHub App
To completely disconnect Modelcode from your GitHub account:- Go to GitHub Settings → Applications
- Find the Modelcode app
- Click Uninstall
Uninstalling the GitHub App does not delete any projects you’ve already created in Modelcode, but Modelcode will no longer be able to access your repositories.
Troubleshooting
”GitHub connection failed”
If the installation flow doesn’t complete:- Ensure you’re signed in to the correct GitHub account
- Check that your browser allows redirects from github.com
- Clear your browser cookies and try again
- If using an organization, ensure you have permission to install GitHub Apps
”Repository not showing up”
If you can’t see a repository in the Create Project dropdown:- Click Connect Repositories in the dropdown to open your GitHub App settings
- Verify the repository is in the selected list
- Go to GitHub Settings → Applications and confirm Modelcode has access
- Ensure the repository is included in your GitHub App installation
”No Repositories Found”
If Modelcode says your GitHub is connected but no repositories are available:- Your GitHub App installation may not have any repositories selected
- Click Connect Repositories to open the GitHub App configuration
- Select the repositories you want to use
”Insufficient permissions”
If you get a permissions error:- For organization repos, ensure an org admin has approved the GitHub App installation
- Verify you have the necessary permissions on the repository in GitHub
- Try clicking Connect Repositories to re-open the GitHub App configuration
”Installation Failed” after returning from GitHub
If the post-install screen shows Installation Failed:- Go to GitHub Settings -> Applications and uninstall the Modelcode app
- Return to Modelcode and start the installation again from the Connect GitHub button

”Your GitHub connection is no longer active”
If you see this banner on the Projects page, your GitHub authorization has expired or been revoked:- Click Reconnect GitHub in the banner to re-run the OAuth and GitHub App flow
- If the banner persists, confirm the Modelcode app is still installed at GitHub Settings -> Applications

Next Steps
- Quickstart — Create your first migration project
- Define Modernization Goals — Write effective goals for your migration
- Reviewing the Project Spec — Learn how to review and approve your migration plan