Skip to content

Cheat Sheet for Four Tools: Installation Commands and Key Operations ​

You've already seen these four tools in Daily Use: The Right Way to Use Each of the Four Tools. This page does just one thing: condense the installation commands and most-used operations into a single table. The most frequently asked question is about the claude code command—how to install it, how to launch it, and what to check when stuck; the answers are all below. The right way to use this page: install, forget, and come back to look things up weeks later.

Cheat Sheet: One Table for Four Tools ​

ToolPositioning and FormInstall / LaunchKey Operations
Claude CodeAnthropic's agentic coding tool, installed in the terminal, with IDE, desktop, and web forms also availablecurl -fsSL https://claude.ai/install.sh | bash (macOS/Linux/WSL); after installation, type claude in the project directory; alternative npm: npm install -g @anthropic-ai/claude-codeclaude enters an interactive session; claude -p "问题" outputs results directly non-interactively; within a session, /help lists all commands
CodexOpenAI's local coding agent, available as CLI, IDE extension, desktop app, and Codex Webnpm install -g @openai/codex, type codex in the terminalcodex app opens the desktop app; cloud tasks go through chatgpt.com/codex
OpenCodeOpen-source AI coding agent with terminal / desktop / web forms; works with any modelmacOS / Linux one-line script: curl -fsSL https://opencode.ai/v2/install | bash; Windows does not support package managers, so use the standalone binary or the desktop app insteadType opencode in the terminal to enter the interface
WorkBuddyAn all-scenario AI workspace from Tencent; give tasks in natural languageNo command line needed—sign up, log in, and use itSupports WeChat Pay; credits are consumed as "model unit price × task complexity" and reset monthly

The four tools have different positioning: Claude Code, Codex, and OpenCode are coding agents in the terminal, while WorkBuddy is a workspace that never touches the terminal. For tool selection, see the daily use page; for costs, see the pricing comparison page; for command changes, see the changelog on the next page.

Example 1: Claude Code Get Started in Three Lines ​

bash
curl -fsSL https://claude.ai/install.sh | bash
cd <你的项目目录>
claude

Windows users should use irm https://claude.ai/install.ps1 | iex in PowerShell instead. Once in a session, just state your needs in plain language, such as "Help me figure out what this project does." The official guidance for complete beginners is clear: You can use Claude Code even if you've never used a terminal before. If you get stuck, type /help in the session to see the command list.

Example 2: OpenCode The Right Way to Install It on Windows ​

OpenCode states clearly: Windows package managers are not supported. Don't look for it in winget or scoop—there are only two correct paths:

  1. Download the standalone binary and add it to your PATH yourself;
  2. Install the desktop app directly and skip the command line.

macOS / Linux users don't have this limitation—run the one-line script, then type opencode in the terminal. The verification method is the same for all: run the command in the terminal and see the interface appear, and the installation is successful.

Limitations: What This Page Does Not Cover ​

  • Regional policies: Anthropic's official list of supported regions does not include mainland China, Hong Kong, or Macau. This page only states the policy facts and offers no workarounds.
  • Usage figures: Usage limits for each Claude Code subscription tier and whether the Codex free tier can use the CLI are both subject to the official pages; this page does not list specific numbers.
  • Credit conversion: WorkBuddy credits have no fixed conversion table—don't trust claims like "a mini program costs X credits"; credits reset monthly, and loop detection refunds them.
  • Payment channels: Among the four tools, only WorkBuddy explicitly supports WeChat Pay; this page does not cover the payment methods of the other tools.
  • OpenCode desktop / web versions: Feature details are not explored in depth; this page focuses on the CLI.

Related Links ​