How to set up Claude Code in iTerm2 to launch AI projects in one click
A ZDNet writer has shared his personal iTerm2 terminal setup for working with Claude Code, Anthropic's CLI coding agent. The idea is simple: iTerm2 profiles and hotkeys open the right projects and launch Claude Code in them immediately, with no typing commands by hand and no switching between tabs.
AI-processed from ZDNet AI; edited by Hamidun News
A ZDNet columnist has described his personal iTerm2 setup on macOS. With it, he can launch several projects running Claude Code, Anthropic's CLI tool for AI-assisted programming, in a single click, without typing commands by hand in each tab.
What's wrong with launching manually
Developers who work across several Claude Code repositories at once typically open a terminal, `cd` into the right folder, and start the agent manually in each project. With a dozen active projects, this becomes a chore that eats up time before the actual work even begins.
- Claude Code is Anthropic's CLI agent for writing and refactoring code directly in the terminal
- iTerm2 is a popular macOS terminal that supports profiles and hotkeys
- The setup relies on iTerm2 profiles that automatically open the right directory and start Claude Code
How iTerm2 and Claude Code work together
The solution uses iTerm2's built-in profiles. Each profile is tied to a specific project folder and launch command, so switching between tasks comes down to picking a profile or pressing an assigned key combination. The terminal opens a tab, moves into the repository directory, and starts Claude Code there. The agent is immediately ready to take prompts for that project.
This approach eliminates repetitive manual steps, namely typing `cd` and the launch command, and reduces friction when switching between multiple AI coding projects throughout the day.
What it means
As developers run CLI agents like Claude Code in parallel across multiple repositories, customizing the terminal environment is becoming as much a part of the everyday AI toolkit as choosing the model itself.
- Nov 1, 2026OpenAI Rewrites GPT Behavior Rules: Five Values and a Chain of Command
- Nov 1, 2026Google admits AI Mode cuts search revenue, shares fall 15%
- Oct 31, 2026Author puts his script before an AI jury: the verdict cost 850 thousand tokens
- Oct 31, 2026Anthropic: Fold Subagents Back Into a Single Loop — One Customer's Tasks Ran Twice as Fast
Key Questions Answered
What's wrong with launching manually?
Developers who work across several Claude Code repositories at once typically open a terminal, `cd` into the right folder, and start the agent manually in each project. With a dozen active projects, this becomes a chore that eats up time before the actual work even begins. Claude Code is Anthropic's CLI agent for writing and refactoring code directly in the terminal iTerm2 is a popular macOS terminal that supports profiles and hotkeys The setup relies on iTerm2 profiles that automatically open the right directory and start Claude Code
How iTerm2 and Claude Code work together?
The solution uses iTerm2's built-in profiles. Each profile is tied to a specific project folder and launch command, so switching between tasks comes down to picking a profile or pressing an assigned key combination. The terminal opens a tab, moves into the repository directory, and starts Claude Code there. The agent is immediately ready to take prompts for that project. This approach eliminates repetitive manual steps, namely typing `cd` and the launch command, and reduces friction when switching between multiple AI coding projects throughout the day.
What it means?
As developers run CLI agents like Claude Code in parallel across multiple repositories, customizing the terminal environment is becoming as much a part of the everyday AI toolkit as choosing the model itself.
Build & Ship Production AI Agents Without Boilerplate Code
Start your free 72-hour trial at Hamidun Academy (academy.hamidun.com) — interactive lessons on Claude Code & Cursor, live Tech Radar, and production agent templates.
The AI world, distilled — once a week
Seven stories that actually mattered, hand-picked. No noise, no reposts, no press releases.
Done! Check your inbox for a confirmation.