Installation

uv tool install mforge

Requires Python 3.13 or newer.

The package is called mforge and installs two identical commands: mf (short, used throughout these docs) and mforge.

Authentication

mforge reads forge tokens from the OS keyring (service mforge), falling back to environment variables.

keyring set mforge github
keyring set mforge forgejo:codeberg.org

Forge

Provider key

Env variable

GitHub

github

GH_TOKEN / MFORGE_GITHUB_TOKEN

Codeberg

codeberg

CODEBERG_TOKEN / MFORGE_CODEBERG_TOKEN

Forgejo

forgejo

MFORGE_FORGEJO_TOKEN