Skip to content

Environment Setup (Common Steps)

This guide explains how to install and configure the environment required for Claude Code, Codex, and Gemini CLI.

1. Verify Node.js Installation

Enter the following command in your Windows or macOS terminal:

bash
npm list -g --depth=0

You should see output similar to the image below (empty output is also fine):

npm list result

Command Not Found?

If you see "command not found", it means Node.js is not installed. Please follow the Node.js Installation Guide to install it.

After installation, run the command again. If you no longer see "command not found", the installation was successful.

2. Install CLI Tools

Enter the following commands in your terminal to install all CLI tools at once:

bash
npm i -g @anthropic-ai/claude-code@latest
npm i -g @openai/codex@latest
npm i -g @google/gemini-cli@latest

Install CLI tools

TIP

You can also install only the specific CLI tools you need.

3. Test Installation

Important

This step is crucial! Running these commands will create the configuration directories for each CLI in your user directory, which are needed for subsequent configuration.

Enter the following commands in your terminal to test each tool:

bash
claude
bash
codex
bash
gemini

If you see the corresponding interface or options menu, the installation was successful:

Claude Code installed successfully

Next Steps

After installation, please refer to the configuration guide for your specific tool: