acct
Install

acct

2,681+ downloads

Use the right GitHub account in every folder.

Bind a directory to a GitHub account so your Git identity, authentication, and managed gh commands follow the folder you’re working in.

Read the documentation
~/workspaceExample profiles
~ /
CURRENT IDENTITY
W
workdirectory-bound profile
GitHub
you-at-work
Git identity
you@company.com
Credentials
OS keychain
Bound to work

$ cd ~/Work/api

$ acct whoami

expected=you-at-work

Select a folder to see which profile applies.

Works with your coding agents and IDEs

  • Cursor
  • JetBrains
  • Zed
  • Antigravity
  • Kiro
  • Claude Code
  • Codex
  • OpenCode
  • Vim
  • Neovim
  • DeepSeek
  • Kimi
  • VS Code
  • Copilot

acct keeps your Git tools on the same account.

Git’s commit identity, remote authentication, and the GitHub CLI have separate settings. acct connects them to a profile for the directory you’re working in.

Your commits use the profile’s name and email.

Directory bindings set your Git identity through conditional includes, while a repository-local profile takes precedence when you need an exception.

Strict hooks check for identity mismatches before a commit, merge, or push, so a local override cannot silently use another profile’s email.

Read the command reference
~/Work/apiwork
$ git config user.name
Your Name

$ git config user.email
you@company.com
Example commands for a folder bound to work
Credentials are stored on your machine in the OS keychain.Read the security model

Set up your profiles and connect your shell.

Guided setup creates a profile, binds a directory, and installs the Git includes and hooks. Connect your shell so gh follows that directory in new sessions.

Install acct with npm.

You’ll need Node.js 20 or newer, Git, and GitHub CLI installed on your machine. Install acct globally so it’s available from any folder.

Terminal
npm install -g acct-sh

The package is published on npm as acct-sh, and the command is acct.

After upgrading to 0.2.0, run acct install once to refresh your hooks while keeping your existing profiles and bindings.

Find answers to common questions about acct.

Read the documentation