Skip to content

How to choose among the four tools: Claude Code, Codex, OpenCode, WorkBuddy ​

Search for "AI coding tool comparison" or "which AI coding software is best" and you'll get dozens of names and a dozen contradictory rankings. This page doesn't do a catch-all roundup: it only compares the four tools Claude Code, Codex, OpenCode, WorkBuddy — this tutorial's installation, usage, and hands-on tracks are all built around them, and every comparison fact on this page can be traced back to the official documentation (facts checked 2026-11-04; tool versions and policies will change, so the official pages prevail).

In the previous lesson you decided on your first "software for personal use"; in this lesson, taking 10 minutes, you'll settle the question of "what to build it with." The comparison looks only at the four dimensions directly tied to "whether you can actually get it running": positioning and form, installation method, account and cost, availability in mainland China — once you've chosen, go straight to the next lesson to install.

What you'll be able to do after this lesson ​

  • Use one overview table to lay out the positioning, form, installation method, and account requirements of the four AI coding tools
  • Distinguish the four forms: terminal agent, local coding agent, open-source agent, desktop AI workbench — know which ones require the command line and which one doesn't at all
  • State the cost floor of each tool: which one has a $0 free tier, which requires a subscription, which is free with pay-per-use models, and which gives credits
  • Recite the three facts relevant to users in mainland China: Anthropic's supported-regions list does not include mainland China; OpenCode's model catalog includes domestic vendors such as DeepSeek; WorkBuddy is made by Tencent with WeChat QR-code login
  • Choose your first tool based on your own constraints (command line, budget, location, first project) and know which page to install it from

Where you are right now ​

  • You search for "which AI coding software is best," and the rankings run from Cursor to Copilot to names you've never heard of, with every article reaching a different conclusion — the more you read, the more confused you get; you've saved twenty articles and finished none of them
  • You want to find "free AI coding tools," but the word "free" means all sorts of things on tool pages: is the tool itself free? Is there a free tier? Or is it a trial that starts charging after a few days?
  • You've heard some tools "can't be used in mainland China," while others say "they can, with some fiddling" — the claims conflict, you don't know which to believe, and you certainly don't dare bind a card and pay for a year up front

When to use this move ​

When you need to:

  • Go through the four candidates once before installing anything, and pick your first one
  • Answer questions like "Claude Code vs Codex: which to pick" or "what's the difference between OpenCode and Claude Code"
  • Decide whether you should take the command-line route or the pure GUI route

And you don't want to:

  • Install and register every single tool and then uninstall it — once an account is opened or money is paid, refunds are hard
  • Get halfway through installing before discovering that regional policies, payment methods, or your OS version get in the way
  • Get dragged into the "which tool is strongest" flame war — tool choice depends on constraints, not faith

🎒 Preparation before you start ​

  • Finished the previous lesson Can you build something without knowing how to code: decided what kind of "software for personal use" your first project is — the tool serves the project, not the other way around
  • (Optional) Read What is Vibe Coding to know the difference between an "AI agent" and ordinary AI chat
  • 10 minutes of uninterrupted time: this lesson is read-only, no installing — you'll get hands-on in the next lesson after choosing
  • Think through your three constraints: ① whether you dare to touch the command line ② your monthly budget ③ what your computer's OS is and where you are

Core idea ​

How to choose among the four AI coding tools? First remember one sentence: tool choice depends on constraints, not on "which is strongest." Model rankings change every month — today's number one may be replaced next month; but your constraints — whether you know the command line, your budget, where you are, what you want to build — won't change in the short term. So this page's comparison looks at only four dimensions:

DimensionWhat to look atWhy it directly relates to "whether you can get it running"
Positioning and formTerminal / IDE / Desktop / WebDetermines whether you have to touch the command line
Installation methodOne command / Download an installerDetermines how smoothly the first 10 minutes go
Account and costFree tier / Subscription / Pay-per-useDetermines the barrier and long-term budget
Availability in mainland ChinaOfficial regional policy / Model catalog / WeChat ecosystemDetermines real-world feasibility

Overview of the four tools (every cell's facts come from the official documentation, expanded step by step below):

Claude CodeCodexOpenCodeWorkBuddy
PublisherAnthropicOpenAIOpen-source project (Anomaly)Tencent
One-line positioningTerminal agent: reads codebases, edits files, runs commandsLocal coding agent: runs on your computerOpen-source agent: plug in any modelDesktop AI workstation: coding is one of its scenarios
Form factorTerminal / IDE / Desktop / WebCLI / IDE / Desktop / WebTerminal / Desktop / WebWindows / macOS desktop app
Main installation pathOne command in the terminalOne command in the terminalOne command in the terminalDownload the installer from the official website
AccountClaude subscription or Console accountChatGPT accountModel API key or ChatGPT planScan a QR code with WeChat
Starting costPro $20/month$0 Free tierFree itself; models billed by usageTrial edition free (500 credits/month)
Do you need to touch the command line?Yes on the main path (the desktop version lets you skip it)Yes on the main pathYes on the main pathNot at all

Why compare only these four? Because this tutorial has ingested the official documentation and repositories of all four, so the comparison has a solid basis. Other capable tools like Cursor, Copilot, Windsurf, and Lovable were not ingested, so there is no comparison page for them—rather than padding with secondhand rankings, we'd rather say outright that we didn't do it.

Follow along with me ​

(This lesson is about choosing a tool: it's all reading and comparison, with no tools installed. Once you've made your choice, the next lesson gets hands-on.)

Step 1: Look at positioning and form factor—the first dimension of comparing AI coding tools ​

Why: The form factor determines the interface you face every day—typing commands or clicking a mouse. This is the first hurdle for beginners, and it's also the dimension where the four tools differ the most.

The official positioning of the four tools, one quote and one plain-language translation each:

ToolOfficial positioning (source)Plain-language translation
Claude Code"agentic coding tool": reads codebases, edits files, runs commands, connects to dev tools (official Overview)An AI coding agent in the terminal; also available as an IDE plugin, desktop app, and web version
Codex"OpenAI's coding agent that runs locally on your computer" (official README)A local agent in the terminal; IDE extension, desktop app (codex app), and web version all available
OpenCode"An open-source AI coding agent available in three forms: terminal, desktop, and web" (official documentation)An open-source terminal agent; desktop app and web also available
WorkBuddy"A full-scenario AI workstation from Tencent" (official Overview)A desktop app: log in by scanning a QR code with WeChat; writing code and building websites and apps is one of its scenarios

Three points worth pausing on:

  1. The primary form of the first three is the terminal, but all of them offer a way to avoid it. Claude Code has a dedicated guide for terminal beginners, whose opening line is "even if you've never used the terminal, you can use Claude Code", and also offers a desktop version that skips the terminal entirely; OpenCode has a desktop app; Codex has a desktop app and a web version. The command line is the main path, not a dead end.
  2. WorkBuddy goes in the opposite direction from the other three. It is a "full-scenario AI workstation": writing documents, making spreadsheets, making slides, and data analysis are all its scenarios, and "code development" (writing code, reading projects, building websites and apps) is just one of them. Do you want a professional coding tool that can also do other things, or an office AI that can also write code? Think this through before choosing.
  3. Claude Code vs. Codex: first look at the account ecosystem. Both are "coding agents in the terminal" with highly overlapping positioning; the biggest practical difference is the account system—Claude Code is tied to Anthropic (Claude subscription or Console account), Codex is tied to a ChatGPT account (Sign in with ChatGPT). Which account you already have often determines which one you try first.

You should see: none of the four is a "web chat box"—they are all agents that can read files, edit files, and run commands on their own, rather than just pasting a snippet of code for you to move around yourself. This is exactly the dividing line between vibe coding tools and ordinary AI chat.

  • I can describe the form factor of each of the four tools, and which one requires no command line at all

Step 2: Compare installation methods—from a single command to double-clicking an installer ​

Why: Installation is the first hurdle for beginners. The differences in installation difficulty among the four affect your start far more than the differences in capability.

Installation method comparison (specific commands are below the table, ready to copy):

ToolMain installation pathWindows supportAlternative methods
Claude CodePaste one command in the terminal (native install, auto-updates in the background)Native support for PowerShell / CMD, or via WSLnpm, Homebrew, WinGet, apt/dnf/apk (Homebrew/WinGet installs don't auto-update)
CodexPaste one command in the terminalOfficial PowerShell installation command providednpm, Homebrew, GitHub Releases binaries
OpenCodePaste one command in the terminalPackage managers not supported: use the standalone binary or the desktop appHomebrew, npm, bun, Docker, etc. (macOS/Linux)
WorkBuddyDownload the installer from the official website and double-click to installWindows 10 and above (x64; Win7/8/8.1 not supported)Dedicated installation guides available for domestic systems like UOS and Kylin

The five main installation commands (this page lists only the main paths; the full installation, verification, and login steps for Claude Code are in the next lesson, and where to find the other tools is in the Step 5 comparison table):

bash
# Claude Code(macOS / Linux / WSL)
curl -fsSL https://claude.ai/install.sh | bash

# Codex(macOS / Linux)
curl -fsSL https://chatgpt.com/codex/install.sh | sh

# OpenCode(macOS / Linux)
curl -fsSL https://opencode.ai/v2/install | bash
powershell
# Claude Code(Windows PowerShell)
irm https://claude.ai/install.ps1 | iex

# Codex(Windows)
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"

WorkBuddy has no command: visit the official website workbuddy.cn to download the installer, double-click to install, and log in by scanning a QR code with WeChat—exactly like installing ordinary software. System requirements: Windows 10 and above (x64), or macOS 12 and above (choose the ARM64 package for M-series chips, X64 for Intel).

Two easily overlooked points:

  • Claude Code native installation updates automatically in the background; versions installed via Homebrew or WinGet do not and require manual upgrading.
  • OpenCode on Windows: don't look for a package manager: the official documentation explicitly states "Windows package managers are not supported"; Windows users should use the official standalone binary or desktop app—if you can't find it in a package manager, that's not your problem, it genuinely isn't there.

What you should see: for the first three tools, the main path is "open a terminal → paste one command → wait for the install to finish"; WorkBuddy is "download → double-click → scan a QR code". The command line itself isn't scary—the next lesson starts from "how to open a terminal", and if installation fails there's the troubleshooting quick reference as a fallback.

  • I know which installation path my computer should take

Step 3: Check account and cost thresholds—the truth about "free AI coding tools" ​

Why: "free" means completely different things across the four tools. If you don't clarify this before installing, you'll either get stuck at registration or be startled by a bill in the second month.

ToolWhat's used for loginCost modelFree to start
Claude CodeClaude subscription (Pro $20/month, plus Max/Ultra tiers) or an Anthropic Console accountSubscription-based—(a subscription or Console account is required from the start)
CodexChatGPT account (Sign in with ChatGPT)Plan-based: Free $0 / Go $8 / Plus $20 / Pro $100Yes: $0 free tier (limited to GPT-6 Luna at standard speed within the desktop app, rolling out gradually)
OpenCodeModel API Key (bring your own, pay-as-you-go), or sign in with a ChatGPT plan to use its modelsOpen-source and free core + pay-as-you-go models; an official subscription OpenCode Go ($10/month) is also availableYes: the tool itself is free, you pay for model usage as you go
WorkBuddyWeChat QR code scan (two login options: personal or enterprise)Credit-based: trial edition free (500 credits/month), standard edition 99 yuan/monthYes: the trial edition includes 500 credits per month

The truth about "free AI coding tools" in one sentence: three of the four can be started for free, but "free" means something different in each case—

  • Codex's free is a tier within a plan: $0, but limited to GPT-6 Luna at standard speed within the desktop app, and the official documentation notes it is "rolling out gradually" (it may not be your turn right away).
  • OpenCode's free is an open-source, free core: the tool itself costs nothing, but the models powering it do—either bring your own API Key and pay as you go (Keys from domestic vendors like DeepSeek also work), sign in with a ChatGPT plan, or subscribe to OpenCode Go.
  • WorkBuddy's free is the trial edition's monthly allotment of 500 credits: credit consumption depends on the model's token pricing and task complexity, credits are issued monthly and expire at month's end without carryover—enough to get your first small project running.
  • Claude Code is not among the "free to start" options: the threshold is a Claude subscription (Pro $20/month) or a Console account.

The complete pricing table (all Max/Ultra tiers, recurring monthly billing, add-on packs) is on the price comparison page; only the threshold numbers needed for choosing a tool are kept here.

What you should see: zero budget → pick one of Codex's free tier, OpenCode (with your own low-cost Key), or WorkBuddy's trial edition; already paying for ChatGPT Plus or a Claude subscription → just use the corresponding tool and don't spend twice.

  • I know which budget situation I fall into, and I accept the cost threshold of my first tool

Step 4: Verify availability in mainland China—three key facts with sources ​

Why: this is an unavoidable question for users in mainland China when choosing a tool, and also the one with the messiest claims online. This tutorial's rule: only state official facts that can be verified against sources, offer no workarounds, and make no universal assertions.

Fact one: Anthropic's supported regions list does not include mainland China. Anthropic's "Supported Regions Policy" (2026-11-12 effective version) states clearly: its products—including Claude.ai, Claude Code, and the API platform—are provided only in the countries and regions listed; the list does not include mainland China, Hong Kong, or Macau (Japan, Singapore, South Korea, and Taiwan, China are on the list). The policy's original text states: countries and regions not on the list are unsupported, including users located in unsupported regions.→ This point directly affects Claude Code's weighting in your choice.

Fact two: OpenCode's model directory includes a large number of Chinese vendors. The model directory built into OpenCode comes from models.dev, which includes domestic vendors such as DeepSeek, Moonshot (Kimi), Zhipu, MiniMax, Alibaba, Volcano Engine, SiliconFlow, Tencent, StepFun, and ModelScope, along with various domestic plans (including coding plans from several vendors); just bring your own API Key to connect.→ The friendliest to domestic users at the model supply level.

Fact three: WorkBuddy is a domestic product from Tencent. WeChat QR code login, RMB pricing (trial edition free, standard edition 99 yuan/month), direct download from the official site workbuddy.cn, plus installation guides for domestic systems such as UOS and Kylin.→ The lowest barrier for domestic beginners.

Codex's account availability by region: this tutorial's information sources contain no official material on OpenAI account availability by region, so no conclusion is drawn here; defer to OpenAI's official pages.

⚠️ Facts only, no workaround advice

This page states things as written in the official policies (the Anthropic policy is the 2026-11-12 effective version; policies get updated, so defer to the latest version on the official page). This tutorial does not provide any methods to circumvent regional policies, nor does it extrapolate "the list does not include mainland China" into "it's absolutely unusable in China"—no assertions are made in either direction.

What you should see: availability in mainland China isn't a binary "usable/unusable" choice but three layers—account policy (Anthropic's list), model supply (the OpenCode directory), and product ecosystem (the WorkBuddy WeChat system). With these three facts laid out together, which tool suits you becomes clear naturally.

  • I can restate these three facts, and I won't pass them along as "completely unusable in China" or "anyone can use them"

Step 5: Match yourself to your constraints—choose your first tool ​

Why: the previous four steps gathered the facts; the final step is to match "your constraints" with "the tool's characteristics".

Don't want to read the table? Start with the Q&A below—three questions yield a recommendation. The rules are the same as in the table below.

30-second model pickerAnswer three questions,0 / 3

1The first thing you want to build
2Willing to learn a bit of command line
3Which account do you have

Answer all three questions to get suggestions here.

Decision quick-reference table:

Your situationChoose this as your first toolOne-sentence reasonWhere to go next
Don't want to touch the command line at all, use WeChat, want a Chinese interfaceWorkBuddyPurely graphical interface + WeChat QR code login + RMB pricingWorkBuddy Desktop version installation
Can accept learning a bit of the terminal, want the main line with the most detailed docsClaude CodeThe most complete official docs; this tutorial's installation main line is exactly itInstall Claude Code (next lesson)
Already have a ChatGPT account (Plus / Pro plan)CodexSign in with ChatGPT, plan quota used directlyCodex Usage
Zero budget, want to connect domestic models, strong hands-on abilityOpenCodeThe core is free + domestic models like DeepSeek connect freelyOpenCode Usage
The first goal is to make a WeChat mini programWorkBuddyCan host and publish: trial version for 14 days, no need to register a mini program account firstUse WorkBuddy to make a mini program

Default recommendation for the first stop for absolute beginners: take Claude Code as the main line—this tutorial's installation, troubleshooting, and workflow all use it as the demonstration, with the most detailed official docs and the most complete troubleshooting materials; if you really don't want to touch the command line, go with the WorkBuddy desktop version. The two don't conflict: first get one running and build your first little thing, then consider a second one.

💡 Still can't decide? Work backward from your "first project"

In the previous lesson you chose your first "software for personal use". Check it against that: want to publish as a WeChat mini program → WorkBuddy (hosted publishing is the easiest); want to build a website or web gadget → all four work, pick by command line and budget; just for local personal use → whichever feels comfortable. Tools serve the project, not the other way around.

You should see: a decision table + a default recommendation. You can now say "I'm installing X because..." instead of "everyone says X is good"——that's the output of these 10 minutes.

  • I have chosen my first tool and can state two reasons for choosing it

Checkpoint ✅ ​

  • I can state, without looking at the table, the makers and forms of all four tools (terminal agent / local coding agent / open-source agent / desktop AI workbench)
  • I know the main route of the first three is the command line, WorkBuddy is a purely graphical interface, and Claude Code has officially stated "usable even if you've never used a terminal"
  • I can state the cost starting points of all four: Claude Code subscription-based (Pro $20/month and up), Codex has a $0 free tier, OpenCode core is free with pay-per-use models, WorkBuddy trial version is free
  • I can recite three facts about domestic availability: Anthropic's list does not include mainland China, OpenCode's model catalog includes domestic vendors, WorkBuddy is made by Tencent with WeChat QR code login
  • I have chosen my first tool and know on which page its installation tutorial is

Pitfall warnings ​

❌ Choosing a tool by the "which is strongest" ranking ​

Rankings measure the upper limit of model capability, but your bottleneck is "can you install it, can you afford it, can you stick with it". Model rankings change monthly; your constraints (command line, budget, location) don't change in the short term. Choose by constraints, not by rankings——that's also why this page looks at only four dimensions.

❌ Interpreting "OpenCode free" as "zero cost throughout" ​

OpenCode's core is open source and free, but the models driving it cost money: bring your own API Key with pay-per-use billing, or log in with a ChatGPT plan, or subscribe to OpenCode Go. The accurate reading of "free AI coding tool" is "free to start", not "zero cost all the way".

❌ Installing OpenCode with a package manager on Windows ​

OpenCode officially states "Windows package managers are not supported". Windows users should use the official standalone binary or the desktop app; not finding a package in a package manager doesn't mean OpenCode has no Windows version.

❌ Spreading the regional policy as "absolutely unusable", or conversely looking for workaround tutorials ​

Regarding Anthropic's supported-regions policy, this tutorial only states facts: the list (the version effective 2026-11-12) does not include mainland China. We neither infer from this that "it's completely unusable domestically", nor provide any workarounds. The policy is subject to the latest version on the official page.

Advanced tips (optional) ​

The four are not mutually exclusive; after getting the first one running you can combine them. Common pairings:

  • Claude Code or Codex writes code + WorkBuddy publishes the mini program——its hosted publishing can generate a 14-day trial version, no need to register a mini program account first; see Use WorkBuddy to make a mini program for practice
  • OpenCode connects domestic models as a low-cost workhorse——DeepSeek etc. bill per use; see OpenCode Usage
  • Installation commands and common operations for all four, look them up as needed: Four-tool cheatsheet

WorkBuddy's hidden advantage is "delivery", not just "writing code". It can generate web apps with cloud database, authentication, and file storage and publish them directly, "no need to buy your own server, and no need to configure deployment or daily ops"——for absolute beginners, this closes a big chunk of the gap between "built it" and "can go live".

Lesson summary ​

✅ This AI coding tool comparison looks at only four dimensions: positioning and form, installation method, account and cost, domestic availability——choose by constraints, not by "which is strongest".

✅ Form: the main form of Claude Code, Codex, OpenCode is the terminal (each with desktop and web outlets), WorkBuddy is a desktop app with WeChat QR code login; all four are agents, not web chat boxes.

✅ Cost starting points: Claude Code subscription-based (Pro $20/month and up) or a Console account; Codex has a $0 free tier; OpenCode core free, models pay-per-use; WorkBuddy trial version free (500 credits/month). See the full table at Price comparison.

✅ Three facts about domestic availability: Anthropic's supported list (version effective 2026-11-12) does not include mainland China; OpenCode's model catalog includes domestic vendors like DeepSeek; WorkBuddy is made by Tencent, WeChat ecosystem.

✅ How to choose the first one: don't want to touch the command line → WorkBuddy; want the main line with the most detailed docs → Claude Code; already have a ChatGPT plan → Codex; zero budget + domestic models → OpenCode.

Key comparison recap:

DimensionClaude CodeCodexOpenCodeWorkBuddy
FormTerminal / IDE / Desktop / WebCLI / IDE / Desktop / WebTerminal / Desktop / WebDesktop app
Main installation pathOne commandOne commandOne command (Windows uses the binary/desktop version)Download the installer
AccountClaude subscription / ConsoleChatGPT accountAPI Key / ChatGPT planWeChat QR code scan
Starting costPro $20/month$0 Free tierFree base + pay-as-you-goTrial version free
Command lineRequired (can be skipped)RequiredRequiredNot needed

For detailed usage of each tool, go to the Daily Use section and read page by page.

FAQ ​

Which AI coding software is best? ​

There is no single "best" — the choice depends on your constraints, not on "which one is the most powerful." This page only compares four options: Claude Code, Codex, OpenCode, and WorkBuddy: if you never want to touch the command line, use WeChat, and need a Chinese interface → WorkBuddy; if you want the most detailed documentation along the main path → Claude Code; if you already have a ChatGPT plan → Codex; if you have zero budget and want to use domestic models → OpenCode. For the reasoning and where to go next, see the quick decision table in step 5.

What is OpenCode? ​

OpenCode is an open-source AI coding agent (produced by the open-source project Anomaly), offered in three forms: terminal, desktop, and web. Its distinguishing feature is flexible model access: you can use your own API key with pay-as-you-go billing (keys from domestic providers like DeepSeek also work), or log in with a ChatGPT plan to use its models — the core itself is open source and free.

What is OpenCode's official download and install command? ​

On macOS / Linux, paste a single command into the terminal: curl -fsSL https://opencode.ai/v2/install | bash. Note that package managers are not supported on Windows; Windows users should use the official standalone binary or the desktop app instead — don't look for it in a package manager.

Which free AI coding software is good to use? ​

Three of the four can be started for free, but "free" means different things: Codex is the $0 free tier (limited to GPT-6 Luna at standard speed within the desktop app, rolling out gradually); OpenCode is free itself, with pay-as-you-go model billing; WorkBuddy's trial edition grants 500 credits per month (valid for that month, not carried over). Claude Code is not among the free-to-start options — it requires a Claude subscription (Pro at $20/month) or a Console account from the start. See the cost comparison in step 3 for details.

Is vibe coding actually viable? ​

All four tools compared on this page are agents — they can read files, edit files, and run commands on their own, rather than just pasting a snippet of code for you to move around yourself — and that is exactly the dividing line between vibe coding tools and ordinary AI chat. Whether it works for you comes down to four dimensions: positioning and form, installation method, accounts and pricing, and domestic availability — just match them against your own constraints.

Next Lesson Preview ​

Once you've made your choice, get hands-on. The next lesson covers the main installation path for Claude Code: 10 minutes to get ready; those who chose WorkBuddy can jump straight to Installing Alternative Methods for the WorkBuddy desktop version section.

You will learn (Claude Code main path):

  • Install Claude Code with one command, and verify by printing the version number with claude --version
  • First launch and login: how to choose between a Claude subscription or a Console account
  • Never used a terminal? No problem: start from "how to open a terminal" and follow the official beginner guide step by step
  • What if installation fails: where to find the 60-second troubleshooting quick reference as a fallback
gaodong.aiAboutPrivacyContact

Independent tutorials, not affiliated with any product mentioned. Product names and trademarks belong to their owners. Check official pages for prices and policies.