This guide covers the installation and configuration of various AI command-line interfaces and their dependencies.
Prerequisites Before installing the AI tools, ensure you have the necessary system dependencies.
Required for some Python and system tools.
1 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
A fast Python package installer and resolver.
Shell enhancements for a better terminal experience.
1 2 3 4 5 6 brew install zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh) " git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom} /plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom} /plugins/zsh-syntax-highlighting
Add to your ~/.zshrc:
1 plugins=(git zsh-autosuggestions zsh-syntax-highlighting zsh-z)
Global Installations Install the core AI CLI tools via npm.
1 2 3 4 5 npm install -g task-master-ai npm install -g @anthropic-ai/claude-code npm install -g @google/gemini-cli npm install -g @openai/codex npm install -g @upstash/context7-mcp
Initialize the task master configuration:
Configure the Serena MCP server for Claude:
1 claude mcp add serena -- uvx --from git+https://github.com/oraios/serena serena start-mcp-server --context ide-assistant --project "$(pwd) "
Configure ~/.gemini/settings.json to include MCP servers like Context7 and Serena.
File: ~/.gemini/settings.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 { "ide" : { "hasSeenNudge" : true } , "mcpServers" : { "context7" : { "command" : "npx" , "args" : [ "-y" , "@upstash/context7-mcp" ] } , "serena" : { "command" : "uvx" , "args" : [ "--from" , "git+https://github.com/oraios/serena" , "serena" , "start-mcp-server" , "--context" , "ide-assistant" , "--project" , "PROJECT" ] } } }
Configure ~/.codex/config.toml.
File: ~/.codex/config.toml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 [mcp_servers.serena] command = "uvx" args = ["--from" , "git+https://github.com/oraios/serena" , "serena" , "start-mcp-server" , "--context" , "codex" ]trust_level = "trusted" startup_timeout_ms = 20000 [mcp_servers.context7] command = "npx" args = [ "--yes" , "@upstash/context7-mcp" , "--api-key" , "api-key" ] startup_timeout_ms = 20000 [notice] hide_gpt5_1_migration_prompt = true [startup_messages] messages = [ { role = "user" , content = "Activate the current dir as project using serena" } ]
Shell Environment Add these aliases to your ~/.zshrc for easier access to your AI tools.
1 2 3 4 5 alias google="antigravity" alias gemini2="gemini --yolo" alias codex2="codex --yolo" alias tm="task-master" alias claude2="claude --dangerously-skip-permissions"