# Gitea and Forgejo

> Connect a Gitea or Forgejo server to MergeHarbor with an access token and get AI code review on every pull request, including Codeberg.

1. Create an access token for a service account with the `write:repository`, `write:issue`, and `read:user` scopes.
2. In the MergeHarbor console, choose **Gitea / Forgejo**, enter your instance URL, and paste the token.
3. Choose the repositories to review. MergeHarbor registers webhooks automatically.

Reviews are posted as pull-request reviews with inline comments and a commit status. Reactions on review comments feed learning.
