TrustPager Docs

← Help Center

Agency

Connect a client's website to GitHub

For agencies: build your clients' sites, and your own, in your own GitHub repos, check each push as a preview, publish it, and point the domain.

If you're a TrustPager agency, you can build your clients' websites in your own GitHub repos, with Claude Code or any other tool, and host them on TrustPager. Every push builds a preview you can check, and one click makes it the live site. Everything happens at https://app.trustpager.com/agency/websites.

Not an agency, or want to connect a site in your own workspace? See https://app.trustpager.com/training/help-center/connect-your-github-to-your-website. It is the same system, and any workspace admin can use it.

1. Connect GitHub (agency owner or systems architect, once)

  1. Go to https://app.trustpager.com/agency/websites and click Connect GitHub at the top right.
  2. On GitHub, choose your account or organisation, and choose which repos TrustPager can see. You can pick just the repos for your clients' sites.
  3. GitHub brings you back to TrustPager, and your GitHub account shows as connected.

The app only sees the repos you choose. When the AI website editor changes a site and you click Publish, it commits the change straight to the connected branch, and the site goes live once the preview builds. If that branch is protected on GitHub, it opens a pull request for you to merge instead. To connect a second GitHub account or organisation, click Add a GitHub account.

On a client's site you can also use the client's own GitHub accounts, if they have connected one, as well as your agency's.

You can also see whether your agency's GitHub is connected on https://app.trustpager.com/auto/integrations, in your agency's own workspace. Its GitHub tile opens the Websites page, where connecting and changing accounts happens.

2. Connect a repo to a client

  1. On https://app.trustpager.com/agency/websites, find the client and click Connect repo.
  2. Choose the repo and the branch to publish from (usually main).
  3. Leave Publish automatically off if you want to check each preview first.
  4. Click Connect repo.

To move a site TrustPager already built into your GitHub, create a new, empty repo and switch on Start the repo from this website. TrustPager copies the site's current code into the repo first. It is refused if the repo already has code.

If the client has no website yet, one is set up for them at the same time. Hosting is $5 a month, charged to the client's own workspace. TrustPager works out how to build the site from its package.json. Under Build settings you can choose npm run build or No build (plain HTML) and set the output folder. Put any other build steps in the build script of your package.json.

Your agency's own sites

Your agency's own workspace is listed first on https://app.trustpager.com/agency/websites, marked Your agency. Connect your own marketing site or demo sites to your repos exactly as you would a client's. Hosting for those sites is charged to your agency's own workspace.

3. Push, check the preview, publish

Each push to the connected branch builds a preview. Pushes close together are built once, about two minutes after the last one. When the preview is ready, the client's row shows Preview ready and a Preview link. Check it, then click Publish to make it the live site.

Turn on Auto-publish for a client and every preview that builds goes live straight away, with no Publish click. Sync now builds the branch's latest commit again, and Disconnect stops pushes reaching the site (the live site stays as it is).

When a build fails

The client's row shows Failed and the end of the build log, which says what went wrong. Fix it in your repo and push again. If you work with Claude, give it the log.

What's copied, and the limits

Domains

Once a client's site is set up, open Domain under the client on https://app.trustpager.com/agency/websites to point their domain at it. You'll see the DNS records to add at their DNS provider, and the domain's status.

Checking from your own tools

An agency API key with Agency access can list your clients' websites, the repo each is built from, and their latest syncs and build errors. See the agency API key section of https://app.trustpager.com/training/help-center/agency-guide.

Need a hand? Submit a service request at https://app.trustpager.com/settings/service-requests.
← Back to Help Center Open on trustpager.com ↗