Skip to content

Claude Code, Codex or OpenCode? Install your first coding agent without setup chaos

Install Claude Code, Codex CLI and OpenCode through official routes, check authentication and versions, and complete a safe first task.

Claude Code, Codex or OpenCode? Install your first coding agent without setup chaos
In this article

In brief · TL;DR: Claude Code, Codex and OpenCode are coding agents that can work with local files and tools. All three have terminal experiences, but authentication, model access and billing differ. Install one at a time, verify its version and begin with a read-only task in a practice directory.

Advertisement Precivo

01 — The discovery

What changed, who it is for and why it matters.

You do not need a week-long comparison of the “best AI” to create your first web page. You need a clear project folder, a terminal and an agent that can inspect the right files.

Three common choices are:

  • Claude Code, Anthropic’s coding agent, available through a CLI, desktop experience and editor integration, with eligible service access.
  • Codex, OpenAI’s coding agent for CLI, IDE and other interfaces, supporting appropriate ChatGPT sign-in or API-based configuration.
  • OpenCode, an open-source coding agent with terminal, desktop and web interfaces and multiple model providers. The software is open, while model access may still cost money.

These are not merely branded chat windows. With permission, agents can search files, edit code, run programs and inspect results. That is why supervising one tool is a better beginner goal than configuring all three at once.

Which one first?

Claude Code is a natural choice if you prefer Anthropic’s ecosystem. Codex may be convenient when you already have supported ChatGPT access. OpenCode appeals to users who want a configurable, open model-provider workflow — at the price of more setup decisions.

There is no universal winner. Choose the tool whose login, pricing and review workflow you can understand.

02 — The Solo verdict

Our straight take: is it worth your time?

Start with one agent and one small task. A practice HTML page or tiny repository is enough. First request an explanation of the project; only later authorise a single reversible edit.

Know the working directory before starting. Do not paste secrets into public prompts, run unknown installer scripts or give experimental agents unrestricted access to customer data.

Advertisement Flokin

03 — The workbench: installation and verification

Environment: macOS, Linux or Windows terminal. The npm options require Node.js and npm; check node --version and npm --version. Homebrew alternatives require Homebrew. Read the commands before executing them.

A — Claude Code

On macOS with Homebrew, Anthropic’s instructions include:

brew install --cask claude-code
claude --version

For Linux or macOS without Homebrew, the official native installer is available at https://claude.ai/install.sh; review the script and setup guide before using the published curl -fsSL https://claude.ai/install.sh | bash command. Windows installation via PowerShell or WinGet is covered in Anthropic’s FAQ.

Run claude inside a practice directory and complete interactive sign-in. Claude Desktop also has a Code experience that does not require a separate terminal CLI installation.

B — Codex CLI

The official Codex repository documents:

npm install -g @openai/codex
codex --version

On macOS, there is also brew install --cask codex. The README describes native installers, including a Windows route. Start with codex, then sign in with a supported ChatGPT plan or configure API credentials through the official flow. ChatGPT-plan access and API billing are different arrangements.

C — OpenCode

The official OpenCode 2 documentation includes:

npm install -g @opencode/cli
opencode --version

A macOS alternative is brew install anomalyco/tap/opencode-v2. OpenCode’s documentation offers platform binaries for Linux and Windows and notes that Windows package managers are not supported for this installation route. Beware of outdated OpenCode 1 instructions.

Start opencode, connect a model provider and choose an accessible model. Installing the CLI is not the same as subscribing to a model service.

A safe first task

Open a practice directory with no sensitive files and launch only the agent you installed. Ask:

“Explain the current directory and the files you find. Do not install packages, edit files or use the network without telling me. If the directory is empty, describe how we can start a small project.”

Expected outcome: the agent reports real context and respects the request, or asks you to finish provider authentication. There is no need to generate a complete application yet. Installation commands checked against primary documentation on 22 November 2026; verify future versions before running them.

Next: explore multi-agent orchestration with OmO Slim once OpenCode works.

More in Tutorials

See all

Advertise

Solopreneurs, makers and creators who use AI and automation every day. Editorial and media formats for brands that bring real value to this reader.

Talk to us about formats

Every partnership goes through editorial approval. No misleading promises.

  1. Sponsored articles Useful content, in the Caminho Solo tone and standard.
  2. Banners and display Placements in strategic areas of the site.
  3. Commercial partnerships Series sponsorships, affiliate partnerships, and custom campaigns.
  4. Native content Guides, tutorials or comparisons featuring your product.

Get in touch

Let's talk

Have questions, suggestions, or want to collaborate? Fill out the form below and we'll get back to you soon.

Prefer email?

contato@caminhosolo.com.br

We respect your privacy. Your data will only be used to respond to your message.