General configuration steps
General configuration steps
Whether you use Codex, Claude Code, or Gemini CLI, it is recommended to complete the following common environment check first.
Check Node.js
Run the following command in the terminal to check if Node.js is installed.
node -vnode -vnode -vIf you can see the version number, it means that Node.js is installed. If there is no output or the prompt command does not exist, please install Node.js LTS version first.
Install common CLI
Open the terminal and install the following CLI tools as needed. The npm installation commands for the three platforms are the same.
npm i -g @anthropic-ai/claude-code@latest
npm i -g @openai/codex@latest
npm i -g @google/gemini-cli@latestnpm i -g @anthropic-ai/claude-code@latest
npm i -g @openai/codex@latest
npm i -g @google/gemini-cli@latestnpm i -g @anthropic-ai/claude-code@latest
npm i -g @openai/codex@latest
npm i -g @google/gemini-cli@latestAfter the installation is complete, run the following commands to check:
claude
codex
geminiclaude
codex
geminiclaude
codex
geminiAs long as you can access the corresponding interactive interface, the basic installation is usually completed.
Info
Some CLIs check the local environment when they are first launched, and prompts related to login, Git, and default Shell may appear. Handle clear missing items before continuing to configure API addresses and keys.
Windows users recommend installing Git
If the Claude Code prompts that a Git environment is missing, please first confirm that Git is available.
git --versiongit --versiongit --versionIf the command can output a version number, Git is already available on the current terminal.