How to set up Claude Code in iTerm2 to run AI projects in one click
The ZDNet author shared a personal iTerm2 terminal setup for working with Claude Code — Anthropic's CLI agent for code writing. The idea is simple: iTerm2 profiles and keyboard shortcuts deploy the needed projects and instantly launch Claude Code in them, without manual command entry and tab switching.
AI-processed from ZDNet AI; edited by Hamidun News
The ZDNet columnist described a personal iTerm2 terminal setup on macOS that allows running multiple projects with Claude Code — Anthropic's CLI tool for AI-assisted programming — with a single click, without manually typing commands in each tab.
What's the problem with manual startup
Developers who maintain multiple repositories with Claude Code typically open the terminal, navigate to the required folder using `cd`, and manually run the agent in each project separately. With a dozen active projects, this turns into routine that eats up time before actual work starts.
- Claude Code — Anthropic's CLI agent for writing and refactoring code directly in the terminal
- iTerm2 — popular terminal for macOS with support for profiles and hotkeys
- The setup is built on iTerm2 profiles, which automatically open the required directory and start Claude Code
How the iTerm2 and Claude Code integration works
The solution relies on iTerm2's built-in profiles: each profile is bound to a specific project folder and startup command, so switching between tasks comes down to selecting a profile or pressing an assigned key combination. The terminal itself opens a tab, navigates to the repository directory, and runs Claude Code in it — the agent is immediately ready to accept prompts for that project.
This approach removes repetitive manual actions — typing `cd` and startup commands — and reduces friction when switching between multiple AI coding projects throughout the day.
What this means
As developers use CLI agents like Claude Code in parallel across multiple repositories, customization of the terminal environment becomes part of the daily AI toolkit as much as choosing the model itself.
- Oct 28, 2026A 2015 CNN Beat GPT-6 Astra and Claude Fable 5.1 at Skin Cancer Diagnosis
- Oct 28, 2026Keystone removes the model name from code: open-source LLM gateway adds 0.64 ms
- Oct 28, 2026Wired Tested 6 AI Agents in a Day: Dots Leads, Gemini Spark Fails at Lunch
- Oct 28, 2026Anthropic files for IPO: $16.3 billion in revenue in six months, ticker ANT
Key Questions Answered
What's the problem with manual startup?
Developers who maintain multiple repositories with Claude Code typically open the terminal, navigate to the required folder using `cd`, and manually run the agent in each project separately. With a dozen active projects, this turns into routine that eats up time before actual work starts. Claude Code — Anthropic's CLI agent for writing and refactoring code directly in the terminal iTerm2 — popular terminal for macOS with support for profiles and hotkeys The setup is built on iTerm2 profiles, which automatically open the required directory and start Claude Code
How the iTerm2 and Claude Code integration works?
The solution relies on iTerm2's built-in profiles: each profile is bound to a specific project folder and startup command, so switching between tasks comes down to selecting a profile or pressing an assigned key combination. The terminal itself opens a tab, navigates to the repository directory, and runs Claude Code in it — the agent is immediately ready to accept prompts for that project. This approach removes repetitive manual actions — typing `cd` and startup commands — and reduces friction when switching between multiple AI coding projects throughout the day.
What this means?
As developers use CLI agents like Claude Code in parallel across multiple repositories, customization of the terminal environment becomes part of the daily AI toolkit as much 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.