SShortSingh.
Back to feed

How to Run Multiple Claude Code Accounts on Linux Using One Environment Variable

0
·1 views

Developers using Claude Code for both work and personal projects often face friction when switching between accounts, as it requires logging out and losing session state. A practical solution involves using the CLAUDE_CONFIG_DIR environment variable to maintain separate configuration directories for each account. The approach can be implemented manually or automated through a shell script for faster switching. Additional integrations with direnv and VS Code allow for automatic account switching based on the active project directory.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Common SQL Server Slowdowns Are Usually Code Problems, Not Hardware Limits

Database performance issues are frequently blamed on insufficient hardware, but in most cases the root cause lies in poorly optimized application code and queries. Missing indexes are often the single biggest culprit, forcing the database to scan millions of rows for simple lookups that could otherwise resolve instantly. Other common issues include N+1 query patterns — where an ORM silently fires dozens of individual database calls instead of one — and over-fetching data by selecting unnecessary columns or loading unfiltered record sets. Queries can also ignore existing indexes due to subtle writing mistakes, such as wrapping columns in functions or using leading wildcards, which only become visible when reading SQL Server's execution plans. Under concurrent load, these inefficiencies compound further as queries begin blocking each other, making the application degrade precisely during peak usage.

0
ProgrammingDEV Community ·

AI Could Cut Software Development Costs by Up to 90%, Reshaping Big Tech

Advances in AI-assisted coding are dramatically lowering the cost and complexity of building software, threatening the business models of companies like Microsoft, Adobe, and Salesforce that have long profited from high development barriers. For decades, enterprise software commanded premium pricing because building alternatives required large engineering teams and years of work, but that calculus is shifting fast. Analysts and developers argue that if production costs fall by 80–90%, entirely new markets become viable and smaller teams in emerging economies can compete with established players. AI-generated code is not without flaws and still requires human oversight for architecture, security, and operations, but the cost reduction need not reach zero to be disruptive. Historical parallels — from digital photography upending Kodak to the internet fragmenting publishing — suggest that even partial cost collapse can fundamentally restructure an industry.

0
ProgrammingDEV Community ·

Developer Builds Hand Gesture Controls for AI Coding Agent Using Webcam

A developer built a system that lets hand gestures control an Anthropic-powered AI coding agent, replacing keyboard prompts entirely. Three gestures were mapped to distinct actions: a pinch triggers code writing, a spinning index finger starts brainstorming, and two fingers mimicking running executes the generated code. The project used MediaPipe for hand landmark tracking, though the newer Tasks API caused GPU crashes on Mac, forcing a switch to the legacy API pinned at version 0.10.21. Gesture detection relied on distance thresholds, fingertip oscillation counts, and signed angle accumulation to distinguish intentional movements from accidental hand drift. The developer noted the unsandboxed setup was a deliberate choice to make the live demo more compelling, and plans to add a 3D avatar overlay for future recordings.

How to Run Multiple Claude Code Accounts on Linux Using One Environment Variable · ShortSingh