Documentation Docs version: dev (Pre-release: Gitoodo has not been released yet)
GitHub Get notified

For users · Guides

Coding agents on your self-hosted Forgejo or Gitea

On this page
  1. Why it fits a self-hosted forge
  2. 1. Connect your account
  3. 2. Choose repositories and labels
  4. 3. The local copy
  5. 4. Switch the autopilot on
  6. 5. Branch rules for the merge
  7. Repositories that only allow fast-forward
  8. Set up CI first
  9. Get started
Screenshot of the app: Forgejo and Gitea

Gitoodo turns the issues on your own Forgejo or Gitea server into work for coding agents: one worker per ready issue, a pull request at the end, merged in the style your repository allows. This guide takes you from the server address to the first merged pull request and shows which branch rules the autopilot needs.

Why it fits a self-hosted forge#

  • Forgejo and Gitea are supported just like GitHub and GitLab, at any address, and next to accounts on other forges.
  • There is no Gitoodo server in between: the app and its background services talk to your forge directly from your computer. Which addresses Gitoodo contacts and why is listed in the network inventory.
  • Workers run the agent CLI you already use and are signed in to (Claude Code, Codex or Gemini CLI), on your own subscription. Gitoodo needs no API key.
  • Tokens live only in the system secret store, never in a file or a log.

1. Connect your account#

Install Gitoodo as described in Getting started and choose Orchestrator in the introduction. Then enter your server's address and a token. Forgejo and Gitea cannot preselect token permissions through a link, so the token assistant opens your server's token page and lists every permission with its access level and the reason. Set them, paste the token and click Check. The full list per mode is in Forge tokens.

The setup recommends a separate worker account, so the history on the forge shows its name instead of yours. If your account is a site administrator, Gitoodo can create it for you once you have confirmed a summary: a restricted account with write access to exactly the repositories you switch on, and a token with only the worker permissions. You can also keep working with your own account. Details: Orchestrator setup.

2. Choose repositories and labels#

Switch on the repositories Gitoodo should work in; all of them start switched off. Before anything is written, Gitoodo shows for each repository which labels it keeps, renames or creates. It never deletes a label. From then on, labels carry the state of every issue: ready, in-progress, in-review, needs-human and the others described under Labels.

You also decide what happens to issues that are already open: handle only new issues, take the existing ones as ready, or check them and ask you first.

3. The local copy#

Every worker works in its own worktree of a local copy. Gitoodo clones a missing copy into its own clone folder (~/gitoodo/repos by default) using the connected account, so the computer needs neither an SSH key nor a git credential helper, even for private repositories. If the repository already lives in a folder of yours, point the setup there: Gitoodo then only fetches and adds its own gitoodo/… branches and worktrees, and never checks out, resets or cleans your working tree.

4. Switch the autopilot on#

The setup installs the background services and switches the autopilot on. From then on, an issue becomes ready when someone you trust wrote it with a complete description, or when it carries the ready label; issues from anyone else get an approval question first. For each ready issue the dispatcher starts a worker in its own branch, such as gitoodo/42-login-fix. The switch on the repository's row in the sidebar pauses the autopilot again.

5. Branch rules for the merge#

Gitoodo merges with the merge account: the worker account, or your own account if there is none. On Forgejo and Gitea, open Settings → Branches and the rule of your base branch:

  • Enable merge whitelist: the merge account must be on the list. Allow the merge account in Gitoodo adds it; that needs admin rights on the repository.
  • Enable status check: the listed checks must match what your CI really reports on pull requests. A renamed check blocks every merge.
  • Required approvals: every pull request then waits for a person. Gitoodo never approves its own work.
  • Block merge on outdated branch: fine, Gitoodo brings the branch up to date itself.

When you switch a repository on, Gitoodo reads this rule right away and names anything that would stop the autopilot, with the action that fixes it. More in Branch rules.

Repositories that only allow fast-forward#

Some self-hosted repositories allow fast-forward merges only. Gitoodo uses a style your repository allows; if the chosen one is not allowed, it takes the first allowed of squash, fast-forward only, merge commit and rebase. With fast-forward only, it rebases a worker branch that is behind onto the base, waits for the checks again and merges exactly the commit that was checked. A real conflict is never forced: the pull request gets a comment naming the files, and the issue waits for you.

Set up CI first#

Without any check, Gitoodo waits three minutes for one to appear and then merges. So give the repository a CI job that your branch rule requires, for example with Forgejo Actions or Gitea Actions. Set up project in the settings can add a starter gate workflow that you fill with your real checks. What else has to be true before a merge is in Safe auto-merge.

Get started#

Download Gitoodo and follow Getting started from the installation to the first worker.

Edit on GitHubDocs version: dev