AI Models

Deep GitHub integration for repository management

SAM integrates deeply with GitHub for repository access, authentication, and pull request management. Install the SAM GitHub App on your repos, and agents can clone code, push branches, and open PRs — all with proper GitHub permissions.

Why use GitHub with SAM

GitHub App Integration

Install the SAM GitHub App for secure repository access — proper permissions without sharing personal tokens.

Automatic PR Creation

Agents push to descriptive branches and open pull requests automatically when work is complete.

Repository Discovery

SAM discovers your repos via the GitHub App installation — select a repo when creating a project.

OAuth Login

Sign in to SAM with your GitHub account — no separate account needed.


Get started in four steps

Step 1

Sign In with GitHub

Authenticate to SAM using your GitHub account via OAuth.

Step 2

Install the GitHub App

Install SAM's GitHub App on your organization or personal repos.

Step 3

Create a Project

Select a repository from your installations to create a SAM project.

Step 4

Agents Use GitHub

Agents clone, branch, commit, push, and open PRs using the GitHub App's credentials.


What you can build

Automated PR workflows

Submit tasks and get pull requests. Agents create descriptive branches (sam/...), commit meaningful changes, and open PRs for your review.

Multi-repo orchestration

Create projects for different repos and run agents across your entire codebase simultaneously.

Open source contribution

Use SAM to help maintain open source projects — triage issues, fix bugs, and generate PRs at scale.


Frequently asked questions

What GitHub permissions does SAM need?

The SAM GitHub App requests repository read/write access for code, pull requests, and issues. You choose exactly which repos to grant access to.

Can SAM work with GitHub Enterprise?

SAM is designed for GitHub.com. GitHub Enterprise Server support is on the roadmap for self-hosted deployments.

Do agents use my GitHub token?

No — agents use the GitHub App's installation token for repository operations. Your personal OAuth token is only used for authentication to SAM itself.


Start running GitHub on your infrastructure

Self-host on Cloudflare's free tier. Bring your own cloud. Your agents, your code.