GitLab Authentication

glab Authentication with Multiple GitLab Instances

When using glab (the GitLab CLI) with multiple GitLab instances - such as gitlab.com for personal projects and a self-hosted GitLab for work - authentication can become problematic if you’re using the GITLAB_TOKEN environment variable. The Problem glab supports per-host token configuration in its config file (~/.config/glab-cli/config.yml). Each host can have its own token: hosts: gitlab.com: token: glpat-xxxxx gitlab.sehlat.io: token: glpat-yyyyy However, if you set the GITLAB_TOKEN environment variable (commonly done in shell rc files), it overrides all per-host tokens. This means the same token gets used for every GitLab instance, causing 401 Unauthorized errors on instances where that token isn’t valid. ...

January 14, 2026 · 2 min · Will
Mobile Terminal

Claude Code on Mobile: Using tmux and Termius for Coding from Your Phone

I’ve been using Claude Code (Anthropic’s CLI coding assistant) for a few months now, and one thing that kept bugging me was being tethered to my desk. What if I wanted to kick off a long-running task while away from my computer? Or review what Claude had done while sitting on the couch? The solution turned out to be surprisingly simple: tmux on a home server + Termius on my phone. ...

December 31, 2025 · 4 min · Will