GitHub
GitHub App access, sign-in, and event triggers
Install your installation's GitHub App on the repositories you choose. Agents clone, branch and push with the App's installation token, open pull requests when asked, and GitHub events can start work.
What you get
GitHub App access
You choose which repositories the App can reach. Agents use its installation token, not your personal token.
Pull requests when asked
Agents work on their own branches, push them when a task is done, and open a pull request when you ask.
Event triggers
An issue, issue comment, pull request or push that matches your filters can start an agent with a saved profile.
Sign in with GitHub
One of the sign-in options your installation can offer, alongside Google, GitLab and email codes.
Set it up in 4 steps
-
Create the App
The self-hosting guide's wizard creates your installation's own GitHub App with its settings filled in.
-
Install it
Install the App on an organization or account and pick the repositories it can access.
-
Create a project
Choose a repository when you create a SAM project.
-
Run agents
Agents clone, branch, commit and push with the App's token.
Good for
Issue triage
Start an agent for each new issue with a given label and have it investigate.
Comment commands
Let teammates trigger an agent from a pull request or issue comment.
Several repositories
One project per repository, with agents running across all of them.
Questions
Which permissions does the App need?
Contents read and write, plus read-only metadata, email, pull requests, checks, actions and issues. Grant pull requests read and write only if agents should open pull requests. The self-hosting guide walks through it.
Do agents use my GitHub token?
No. Repository operations use the GitHub App installation token. Your personal sign-in is used to sign you in to SAM.
Does SAM support GitHub Enterprise Server?
No. SAM supports GitHub.com. For a self-managed Git server, GitLab with a custom host is supported.
Related integrations
Get your coding agents off your laptop
SAM is open source. Deploy it to your Cloudflare account and connect your agent. Add a cloud provider when you want full environments on your own servers.