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 26, 2026Anthropic Gives Claude to Defenders of Power Grids and Water Utilities: 11 Partners
- Oct 26, 2026OpenAI expects $70 billion in annualized revenue by the end of 2026, Bloomberg reports
- Oct 26, 2026White House restores UK AISI's access to models from Anthropic, Google and OpenAI
- Oct 26, 2026AI Agent Teams Burn Up to 5.1x More Tokens for a Barely Noticeable Gain
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.
Delegate Deep Research, Coding & Workflows to an AI Agent
Deploy autonomous multi-step execution with NomadNet Agent (agent.nomadnet.ai) — automated web research, data synthesis, code generation, and complex task orchestration.
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.