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
How to set up Claude Code in iTerm2 to launch AI projects in one click
Source: ZDNet AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceZDNet AI ↗
Editor-in-Chief
Key metric #1Claude Code is Anthropic's CLI agent for writing and refactoring code directly in the terminal
Key metric #2iTerm2 is a popular macOS terminal that supports profiles and hotkeys
Key metric #3The setup relies on iTerm2 profiles that automatically open the right directory and start Claude Code

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.

Story

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.

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Hands-On AI Engineering · Hamidun Academy

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.

Start 72h Free Trial →Vibe-Coding Intensive
What do you think?
Loading comments…