Uploaded August 2026 | Updated November 2026, 3 hours ago
In this tutorial, you will learn how to switch between multiple Claude Code accounts in the terminal without losing your session. If you have a personal and a work account, you normally have to log out and back in every time, which resets your context window. I'll show you how to set up separate credential folders and simple aliases so you can jump between accounts instantly.
π§ What You Will Learn
- Checking your login: see which Claude Code account is active
- Credential folders: create separate config folders per account
- Exporting credentials: save login info into each folder
- Signing in twice: authorize both a personal and work account
- Editing .zshrc: add aliases in your shell config file
- Building aliases: switch accounts with one short command
- VS Code gotcha: why the Claude Code extension behaves differently
Tools I Use:
00:00 Intro: About The Tutorial
00:39 What is Account Switching?
01:11 Check Your Current Login
01:53 Create Config Folders
03:17 Home Directory Config Folders
03:48 Export Login Credentials
04:24 Authorize Claude Code
05:25 Claude-Work Export Credentials
06:07 Switch Accounts
07:32 Open Text Editor
07:58 Add Aliases in Text Edit
09:05 Tip: Double Ampersand
09:53 Reload Config File
10:29 Test Aliases
11:59 VS Code Gotcha
π Mike Murphy AI: mikemurphy.ai
π Hostinger VPS: go.mikemurphy.ai/vps
ποΈ ElevenLabs: go.mikemurphy.ai/elevenlabs
β±οΈ Timestamps
β Connect with Me
β Website: mikemurphy.ai
β YouTube: youtube.com/mikemurphyco
β Newsletter: mikemurphy.ai/newsletter
β X: https://x.com/mikemurphyai
βοΈ Disclosure
Some links may be affiliate links, which means I may earn a commission if you purchase through them at no extra cost to you. I only share tools and services I use, trust, or think are useful for creators, small businesses, and tutorial makers.
#claudecode #anthropic #terminal #zshrc #alias #macterminal #ai #aicoding #developertools #productivity #vscode #commandline #tutorial #mikemurphyai
In this tutorial, you will learn how to switch between multiple Claude Code accounts in the terminal without losing your session. If you have a personal and a work account, you normally have to log out and back in every time, which resets your context window. I'll show you how to set up separate credential folders and simple aliases so you can jump between accounts instantly.
π§ What You Will Learn
- Checking your login: see which Claude Code account is active
- Credential folders: create separate config folders per account
- Exporting credentials: save login info into each folder
- Signing in twice: authorize both a personal and work account
- Editing .zshrc: add aliases in your shell config file
- Building aliases: switch accounts with one short command
- VS Code gotcha: why the Claude Code extension behaves differently
Tools I Use:
00:00 Intro: About The Tutorial
00:39 What is Account Switching?
01:11 Check Your Current Login
01:53 Create Config Folders
03:17 Home Directory Config Folders
03:48 Export Login Credentials
04:24 Authorize Claude Code
05:25 Claude-Work Export Credentials
06:07 Switch Accounts
07:32 Open Text Editor
07:58 Add Aliases in Text Edit
09:05 Tip: Double Ampersand
09:53 Reload Config File
10:29 Test Aliases
11:59 VS Code Gotcha
π Mike Murphy AI: mikemurphy.ai
π Hostinger VPS: go.mikemurphy.ai/vps
ποΈ ElevenLabs: go.mikemurphy.ai/elevenlabs
β±οΈ Timestamps
β Connect with Me
β Website: mikemurphy.ai
β YouTube: youtube.com/mikemurphyco
β Newsletter: mikemurphy.ai/newsletter
β X: https://x.com/mikemurphyai
βοΈ Disclosure
Some links may be affiliate links, which means I may earn a commission if you purchase through them at no extra cost to you. I only share tools and services I use, trust, or think are useful for creators, small businesses, and tutorial makers.
#claudecode #anthropic #terminal #zshrc #alias #macterminal #ai #aicoding #developertools #productivity #vscode #commandline #tutorial #mikemurphyai










