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.
- Dec 2, 2026Ai2 Releases MolmoWeb2 Web Agents: 27B Model Solves 75.3% of Tasks
- Dec 2, 202650 AI Models Beat 62 Teams at 'Zakovat': 48.3% Correct Answers vs 39.8%
- Dec 2, 2026Claude Fable 5.2 ran 1,000 agents for eight days and built an operating system
- Dec 2, 2026Amazon Releases Ergo Open Weights for Coding: 1.1 Trillion Parameters and 2,200 Tokens per Second
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.
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.
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.
Free 2-Day Vibecoding & AI Agents Intensive
Day 1: the autonomous Hermes + DeepSeek AI agent — vibecoding and development on par with Claude Code / Codex / Gemini. Led by Jemal Hamidun, Head of AI at Alpina Digital and academic supervisor at MIPT. Right after you register with our bot Nika: the recording + 11 materials from the previous intensive.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
