Before you connect a website that is built from code, you need three things on GitHub: the site's code in one GitHub repository, a GitHub account that is allowed to install apps on the account or organization that owns that repository, and (ideally) a hosting service that publishes the site from that repository on its own. Once these are in place, connecting takes about a minute from the GitHub card on the Integrations page.
This guide explains each requirement and how to check it. For the connection steps themselves, see How to connect your GitHub repository to ValiantAI.
Who this is for
Use GitHub if your website is built from code, for example a site a developer built with a framework such as Next.js or Astro, or a GitHub Pages site. On the Integrations page, the GitHub card says "For sites built from code. We save approved changes to your repository."
If your site runs on self-hosted WordPress, use the WordPress card instead (see How to connect your WordPress site to ValiantAI). If your site is on a builder such as Wix or Squarespace, see Which website platforms can ValiantAI edit?
Requirement 1: the site's code is in one GitHub repository
ValiantAI works with exactly one repository: the one that holds your website. A repository is the folder on GitHub that stores a project's code and its history.
To check:
Sign in to GitHub and open the repository you believe holds your site.
Confirm that it contains the website's pages or source files, not only a backend or an unrelated project.
Note its name (shown as owner/repository, for example yourbusiness/website) and its default branch (usually main). ValiantAI writes each approved update on a separate branch, opens a pull request, checks the result, then merges it into the default branch. You will see these pull requests in the repository on GitHub.
If you do not know which repository holds the site, ask whoever built it before you connect.
If you have several repositories
When you install the app, choose Only select repositories and pick only the website's repository. ValiantAI refuses an install that covers all repositories.
If you do grant more than one repository, ValiantAI ignores archived repositories and looks at the configuration files in the root of each remaining one. It picks the repository whose files name your website's domain: a CNAME file, the homepage field in package.json, a hosting configuration file such as vercel.json, or a site setting in an Astro or Next.js config file. If no repository names your domain, if more than one does, or if you granted more than 25 repositories, the connection fails and the card reads "We couldn't see your repository. Give access to the repository that holds your site, then try again." Granting one repository avoids all of this. See GitHub connection fails: "You gave us access to all your repositories" or "We couldn't see your repository".
Requirement 2: you can install apps where the repository lives
Connecting means installing the Valiant app on GitHub. Whether you can do that depends on who owns the repository:
Your personal GitHub account owns it: you can install the app yourself.
A GitHub organization owns it and you are an owner of that organization: you can install the app yourself.
A GitHub organization owns it and you are a member, not an owner: GitHub shows Install and request or Request instead of Install, and sends a request to an organization owner. The connection waits until an owner approves. Ask an owner to connect it, or to make sure you have the rights you need, before you start.
Someone else's account owns it (for example your web developer's): that person needs to install the app. See "If you do not have access to GitHub" below.
GitHub's own rules are explained in Installing a GitHub App from a third party.
Requirement 3: a host that publishes from the repository
ValiantAI saves approved changes to your repository. Your site changes for visitors only when your hosting service builds and publishes the new code.
When you connect, ValiantAI checks how your site is hosted. It recognises the most common hosts for code-built sites, including Vercel, Cloudflare Pages, Fly.io and GitHub Pages. After connecting, the GitHub card's status line shows what it found:
"Changes go to" followed by the repository and branch, for example "Changes go to yourbusiness/website (main)".
"{host} publishes automatically" when the host has published your default branch by itself at least once in the last 90 days. Approved changes then go live on their own after the host finishes its build.
"Published through {host}" when ValiantAI recognised the host but could not confirm automatic publishing. In this case you may need to redeploy the site from your host's dashboard to make approved changes live.
If neither host phrase appears, ValiantAI did not recognise your host. To have approved changes go live without manual work, set your host to deploy automatically whenever the default branch changes. If changes do not appear, see Website changes are not showing on my GitHub-connected site.
If you do not have access to GitHub
If a developer built your site and controls the repository, they need to install the app. During setup, the GitHub connect screen has a link, Did a developer build your site? Send this to them. Enter their email address and select Send to My Developer. ValiantAI emails them a link to connect the site, valid for 7 days. Until they finish, ValiantAI writes your website updates for you to paste in. You can send up to 3 of these emails per hour.
After setup, there is no send-to-developer option on the Integrations page. See Can my web developer connect my website to ValiantAI for me? for the options.
What the Valiant app can do once installed
The app can read the code for your site in the one repository you choose and commit the website updates you approve, and any design adjustments you add, one by one. The setup screen states "We never touch your other repositories or change anything you have not approved." See What can ValiantAI access on my website once it's connected?
Checklist before you connect
You know the one repository that holds your site and its default branch.
You can sign in to the GitHub account or organization that owns it, with rights to install apps.
Your host deploys the site from that repository, ideally automatically.
When all three are true, follow How to connect your GitHub repository to ValiantAI.
Things to know
Changing access later: On GitHub, select your profile picture, then Settings > Applications > Installed GitHub Apps, and select Configure next to the app (for an organization, open the organization's Settings > GitHub Apps). Removing the website's repository from the app, or uninstalling the app, disconnects your website in ValiantAI. GitHub explains these screens in Reviewing and modifying installed GitHub Apps.
One website connection at a time: While GitHub is connected, the WordPress card's button reads "Use WordPress instead".
Related articles
