PulseAugur
EN
LIVE 04:44:44

Developer shares DIY Claude Code account management, launches Hats tool

A developer has shared a DIY method for managing multiple project accounts with Claude Code, addressing issues where the AI might use the wrong credentials. The solution involves configuring Git for per-folder identities and using direnv to manage environment variables for various command-line tools like GitHub CLI and Vercel. For Claude Code itself, a separate configuration directory can be specified. However, this manual setup has limitations, particularly with desktop applications and browser-based sign-ins. To overcome these, the developer created a tool called Hats, which centralizes account management, stores tokens securely in the system's keychain, and provides safeguards against accidental incorrect usage. AI

IMPACT Simplifies multi-project workflows for developers using AI coding assistants.

RANK_REASON The item describes a new tool (Hats) developed by the author to solve a specific problem with an existing AI product (Claude Code).

Read on dev.to — Claude Code tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Developer shares DIY Claude Code account management, launches Hats tool

How we ranked this

Signal score
20 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
The item describes a new tool (Hats) developed by the author to solve a specific problem with an existing AI product (Claude Code).
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, other
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

Full methodology in our editorial standards.

COVERAGE [1]

  1. dev.to — Claude Code tag TIER_1 English(EN) · Aamer Patel ·

    How to run Claude Code with separate accounts per project

    <p>If you work on more than one project, you've probably done this: asked Claude Code to push or deploy, and it used the wrong account. Your computer is signed in as whoever you used last, and the AI doesn't know any better.</p> <p>Here's the free do-it-yourself setup that fixes …