From hats
One Claude, many hats: use several Claude subscriptions in one Claude Code. See every account's 5-hour, weekly and Fable usage above the prompt, and switch which account your requests go out as with one press
7 events · 15 calls
Ships in hats. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callhttp.fetchfs.writefs.existsfs.readenv.getprompt.submitEach event it registers a hook on, with the matcher when it sets one
http.fetchsession.startprompt.submittool.callturn.completecommand.run{command=accounts}command.run{command=accounts-add}command.run{command=accounts-rename}command.run{command=accounts-remove}ui.render{component=AbovePrompt}ui.render{component=Pane, requestId=accounts}Every mods API method its source calls, by namespace
aftereverynowregistergetexistsreadwritefetchauthorizegetsetopenresolvetoastCLAUDE_CODE_ACCOUNT_UUIDCLAUDE_CODE_USER_EMAILHOMEUSERPROFILEWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.tsx (written ./register.tsx)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub akramovic1/claude-hats --plugin hats