This page takes one repository from a new install to its first finished ticket, in seven steps. It uses the dashboard, the Simple template and a runtime on the host. Each step links to the page with the details.
Before you start
You need:
- A machine that runs Docker and Docker Compose.
- A person who owns the GitHub organization of the repository. They create the GitHub App in step 2.
- An Anthropic API key.
Use a repository where a test change does no harm. This page uses GitHub. For GitLab, see Connect a GitLab project.
1. Start Factorial
- Run the two commands of Quick setup.
- Open
http://localhost:8000/factorial/and push Create an account. The first account becomes the owner.
2. Create the GitHub App
Do the steps of GitHub App until you have the private key. Install the App on your repository only. Keep the App ID and the private key file.
Keep the webhook of the App off. GitHub cannot reach a local install, and Factorial reads GitHub every 30 seconds without it.
3. Create a runtime
An install that lets anyone create an organization offers only the cloud sandbox. Runtimes tells you how to set one up.
An agent on the host can read the keys of Factorial. Use the host for a trial, and move to a cloud sandbox before real work.
Factorial does not let you create a project until a runtime has its key. Until then, Projects shows Set up a runtime first.
- Open Runtimes and push Create runtime.
- For CLI, choose Claude Code. For Authentication, choose API key.
- Paste your Anthropic API key in the field below the cards. To try the key, push Test key.
- For Sandbox, choose On the host.
- Keep the suggested Name and Slug.
- Push Create runtime.
4. Create the project
- Open Projects and push Create project.
- Enter a Name.
- Under Git source, keep GitHub as the Repository host.
- For Connect with, choose GitHub App.
- Paste the App ID and the Private key. Leave Webhook secret empty.
- Push List repositories, and choose your repository in Repository.
- Push Create project.
Factorial creates the project, connects it to GitHub, and opens Initialize project. The project takes its tickets from the issues of this repository. To change the connection later, open Git source under Project settings.
5. Initialize the project
Initialize project does the rest of the setup for you. It shows the five steps that it does, and then does them in one run.
- Under Choose a template, select Simple template. The page shows its process and its agents.
- Beside Choose a template, make sure that the runtime list shows the runtime of step 3. With one runtime, the page chooses it for you.
- Push Initialize project.
The page then shows each step as it runs. Keep the page open until the run ends, in about a minute:
- Create the factorial branch. The config of the project lives on this branch, apart from your code.
- Add the Simple process. Factorial commits the process
primaryand its agents, with your runtime, and syncs them.primarybecomes the default process, which an issue uses when it names no process. An agent writes a spec for each ticket, and a second agent builds it. - Enable the runtime. A runtime on the host needs nothing here.
- Create the ticket labels. These are the labels that the process uses.
- Activate the project. From now on, Factorial admits matching issues and runs agents, which spend tokens.
When every step is done, the page shows You're all set. To stop new tickets later, push Pause admission on the project.
If a step fails, the run stops there. The page shows the error, and marks the steps after it Not run. Push Open the project, and do those steps yourself. Connect a repository shows how.
6. File your first issue
- On You're all set, push Open an issue on GitHub. GitHub opens a new issue with the label
factorial:new. - Ask for a small change, for example Add a
--versionflag. - Assign the issue to yourself. The assignee decides the gates.
- Submit the issue.
Within about 30 seconds, the label changes to factorial:plan. To see the ticket, push Go to the project. The ticket shows on the Tickets page.
To file an issue later, open it in GitHub and add the label factorial:new yourself.
7. Decide the gates
The primary process has four steps: plan, spec review, build and code review. You approve the spec in the dashboard and then in GitHub. Then you approve the code in GitHub.
When the plan agent pushes the spec, the ticket page shows Waiting for your review:
- Push Open files, and read the spec.
- Push Approve Output. To ask for changes, push Open terminal and answer the agent.
The ticket then waits at the spec pull request, and the ticket page shows Waiting for a review:
- Open the pull request from the ticket page.
- In GitHub, submit a review with Approve. To send the spec back, choose Request changes and write what must change.
Factorial merges the spec and starts the build. The ticket stops again at the code pull request. Decide it the same way, in GitHub. Factorial then merges the code and labels the issue factorial:done.
When something stops
| What you see | What to do |
|---|---|
| Initialize project stops at a step | Read the error on the page. Push Open the project, and do the steps that show Not run |
| Activate project is not offered | Push View pending configuration step. It opens the first blocker |
| The issue does not become a ticket | Open Tickets and choose Admission. It shows what the issue waits for |
The ticket has factorial:blocked | Read the message on the ticket page. Fix the cause, then remove the label |
Tickets and gates explains every label, and how to stop or resume a run.
Before you use a real repository
The steps above are enough for a trial. Do these before agents work on a repository that matters.
| Task | Why | Where |
|---|---|---|
| Protect the default branch | After the gate, it is the second control on what reaches the branch | The Git source page shows a gh command for a repository admin. Name your CI job verify first, or the rule stops every merge |
Protect the factorial branch | It stops a force push or a deletion of the config | The Process page shows a gh command for a repository admin |
| Make the process wait for CI | No step of the template checks that the tests of the repository passed | Add a check step with ci_green: Processes. See What CI needs |
| Move to a cloud sandbox | An agent in a sandbox cannot read the keys of Factorial | Runtimes |
| Add your team | The process sends the gates to the assignee of the issue | Name your reviewers in roles: Processes. Invite people to the dashboard: Accounts and access |
| Turn on the webhook | Factorial reacts to GitHub at once, not every 30 seconds. It needs a public address | GitHub App |
For the rest, Connect a repository has every setting and the API calls. Agents changes what the agents do, and Previews lets reviewers open the running app at a gate.