Claude Installer

Prompts

Automate installation of Claude Code CLI and guide user to configure API via cc-switch. Handles environment setup, mirrors, and post-install prompts.

Install

openclaw skills install claude-installer

This skill guides users through installing Claude Code CLI (by Anthropic) and setting up their own API configuration using cc-switch. The skill itself does not configure any API keys; it only prepares the environment and instructs the user to download and run cc-switch.

Prerequisites Check

The skill automatically checks for required tools: Node.js, npm, and Git. If any are missing, they will be installed using Tsinghua mirror sources by default.

Installation Steps

  1. Check Node.js version: node -v
  2. Check npm version: npm -v
  3. Set npm mirror (China): npm config set registry https://registry.npmmirror.com/
  4. Check Git version: git -v
  5. Install Claude Code globally: npm install -g @anthropic-ai/claude-code
  6. Verify installation: claude --version
  7. Start Claude Code: claude

Post-Install Configuration

After installation, you will be prompted to:

  • Download and install cc-switch (or appropriate URL)
  • Use cc-switch to configure your own API key
  • Edit .claude.json and set "hasCompletedOnboarding": true (add comma before if needed)
  • Switch models inside Claude Code using /model command, e.g., /model deepseek-v4-pro[1m]

Notes

  • If Node.js, npm, or Git are not found, the skill will automatically download them from Tsinghua mirrors.
  • The skill does not store or manage any API credentials.
  • For model switching, refer to the /model command within Claude Code.