Environments can share agent logins and settings, and the GitHub CLI login. Log in inside any of them and the others pick it up.
regent create dev --share claude-code,gh
regent share lsITEM NAME LOGGED IN SHARED BY
claude-code Claude Code ✓ dev,api
codex Codex CLI no · codex login (inside) –
gh GitHub CLI login ✓ dev,apiShared items live on this Mac in ~/.local/share/regent/shared, private to you, and are
mounted only into the environments that share them. Anything running in such an environment
can read them.
| Command | What it does |
|---|---|
regent config set share claude-code,gh |
The default for new environments |
regent reset NAME --share none |
Change what one environment shares |
regent share forget ITEM |
Delete the shared login: everyone sharing it is logged out |
Git identity
The git identity isn’t shared per environment: every environment uses the one in
regent config:
regent config set git 'Ada Lovelace <ada@example.com>'