If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.
A DDEV add-on that installs the GitLab CLI (glab)
in the web container and exposes it as ddev glab.
This used to ship as part of ddev-claude-code (removed in #13); install this add-on alongside it if you want Claude Code (or anything else in the container) to interact with GitLab.
ddev add-on get yanniboi/ddev-glab
ddev restart
ddev glab auth login
ddev glab mr list
glab is also available on the PATH inside the web container (ddev ssh,
ddev exec, Claude Code, etc.).
GLAB_CONFIG_DIR points at .ddev/glab/, so authentication and settings persist
across restarts and rebuilds. The directory is git-ignored because it contains
access tokens.
To authenticate non-interactively, set GITLAB_TOKEN (and GITLAB_HOST for
self-managed instances) in .ddev/.env.web (keep that file out of git) or globally:
ddev config global --web-environment-add="GITLAB_TOKEN=glpat-..."
ddev restart
The latest glab release is installed when the web image is built. To pick up a
newer release, rebuild the image:
ddev restart --no-cache # DDEV >= v1.25.0
If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.