Skip to main content
🌐

This article is also available in Chinese閱讀中文版 →

AI in Practice · · 10 min read

How to Use Claude Code: From Setup to Your First Task

How to Use Claude Code: From Setup to Your First Task

You’ve used ChatGPT. You’ve used Claude.

You know AI is powerful.

But every time you finish a conversation, you’re still the one copying and pasting, organizing files, and executing the suggestions yourself.

Why?

Because these AIs are trapped in a browser—they can’t touch your computer. All they can do is answer questions in a chat window.

Claude Code is different.

It runs directly on your machine. It can read and write files, execute commands, and actually get things done.

This guide shows you how to use Claude Code—from setup to your first task in 5 minutes.


What is Claude Code

Claude Code is a command-line tool (CLI) from Anthropic that lets AI work directly on your computer.

The biggest difference from web-based Claude: the web version can only talk. Claude Code can do.

You tell it what you want, and it reads files, runs commands, writes code, even deploys to the cloud. You just review and approve—no manual work required.

This makes it perfect for:

  • Batch processing: Handle hundreds of files at once
  • Automation: Build systems that run automatically every day
  • Building products: Write code, set up databases, deploy to production—from scratch

In short, Claude Code turns AI from an “advisor” into a “doer.”

Claude Product Lineup

Anthropic’s Claude products, categorized by what they can do:

CapabilityProductDescription
ChatWeb / Desktop AppIt sees what you paste
Web browsingChrome ExtensionOperates current webpage, fills forms
Sandboxed executionDesktop CoworkA feature within Desktop App, runs commands in isolated environment
Full local accessClaude CodeAccess your entire computer, use your credentials to connect services

Claude Code has two interfaces:

  • CLI (Terminal)
  • Desktop App’s Code Tab (GUI, same functionality as CLI)

Feature comparison:

WebDesktop AppChrome ExtensionDesktop CoworkClaude Code
EnvironmentBrowsermacOS/WinBrowserInside Desktop (sandbox)CLI or Desktop Code Tab
AccessWhat you pasteWhat you pasteCurrent webpageAuthorized foldersEntire computer
Run commands✅ (sandboxed)
Skills
MCP Integrations
Hooks

Sources (verified 2026-03-04):

Glossary:

  • Sandbox: An isolated safe space—like a kid’s sandbox. You can play however you want inside, but the sand doesn’t get out. Desktop Cowork runs in a sandbox, so it can execute commands, but only within folders you’ve authorized. Safe, but limited.

  • Run commands: Letting AI actually do things on your computer, not just tell you how. Web Claude will explain how to organize photos, but you still have to do it yourself. Tools that can run commands (Desktop Cowork, Claude Code) are different—you say “move screenshots to the Screenshots folder,” and it actually does it. Batch renaming, image compression, auto-backups—all made possible by this capability.

  • Skills: Files that teach AI how you work. Could be SOPs (what to do in certain situations), workflows (do A then B), or best practices (articles should follow these guidelines). Once written, AI follows them. It’s like documenting your expertise and preferences so AI becomes an assistant that truly “gets” you.

  • MCP Integrations: A standard protocol for connecting AI to other services. You’ve probably heard of APIs—every service has a different one, so connecting to ten services means writing ten different integrations. MCP is a unified standard, like USB-C. One interface connects to Slack, Google Drive, Notion, and more. For users, it means “AI can directly work with these services for you.”

  • Hooks: Automatic checks before AI takes action. Like a motion sensor at your door—every time AI is about to do something, the hook checks first. You can set rules like “backup before deleting files” or “confirm with me before running commands.” It’s an advanced feature to make sure AI doesn’t do anything you don’t want.

Desktop Cowork vs Claude Code: Sandbox Limitations

Both Desktop Cowork and Claude Code can run commands, but Cowork runs in an isolated environment. It can browse the web, download files, install programs—but everything stays in the sandbox. Close it, and it’s gone.

Desktop Cowork (Sandbox)Claude Code (Local)
Organize files in authorized folders
Browse web, download data
Install software on your computer✅ (sandbox only, gone when closed)✅ (permanent)
Push to GitHub with your SSH key❌ (no access to your credentials)
Connect services with your API keys❌ (no access to your credentials)
Modify system settings, env variables

Bottom line:

  • One-off tasks (organizing files, research, writing reports) → Desktop Cowork is enough
  • Persistent systems (daily automation, API integrations, deployment) → Use Claude Code

When Do You Need Claude Code?

Scenario 1: Process 500 photos with one command

You just got back from Japan with 500 photos, each 5MB.

You want to upload them to your blog, but they’re too big. Pages load forever.

Compress them one by one? Exhausting just thinking about it.

With Claude Code, one sentence:

“Compress all photos in this folder to under 500KB, keep the original filenames.”

It runs terminal commands (the stuff engineers type in that black window with white text), and finishes 500 photos in minutes.

Desktop Cowork can handle files too, but Claude Code can do more—like automatically upload the processed photos to the cloud, or write a script so you can do this with one click next time.

Scenario 2: Build an automated goal management system

This is a real example from my own life.

I needed a system to pull together scattered information (Google Calendar, Tasks, emails) and push a summary to my phone every morning.

Web Claude could help me plan this system, but couldn’t build it.

With Claude Code, I told it what I wanted, and it:

  • Wrote the API integration code
  • Set up automated scheduling
  • Deployed to the cloud, running every morning at 6:45

Now every morning I wake up to a message telling me what I need to do today.

Want to see how the full system works? Check out my other article: How I Built an AI Second Brain.

Scenario 3: Build products without knowing how to code

You have an app idea.

Before, you’d need to hire an engineer, outsource, or learn to code yourself.

Now, you can use Claude Code.

Tell it what you want, and it writes the code, sets up the database, deploys to production.

I’ve done this myself.

With Claude Code, I built my personal website in two days (yes, the one you’re reading right now).

I also built a SaaS product and a Chrome Extension.

This isn’t the future. It’s happening right now.

Which one do you need?

  • Just want to ask questions, write copy → Web / Desktop App
  • Want AI to browse and fill forms → Chrome Extension
  • One-off tasks (organize files, research) → Desktop Cowork
  • Batch processing, API integrations, building products → Claude Code (CLI or Desktop Code Tab)

Setup (2 minutes)

Mac / Linux

Open your terminal and paste this:

Terminal window
curl -fsSL https://claude.ai/install.sh | bash

After installation, close and reopen your terminal.

Here’s the full walkthrough:

Windows

Open PowerShell and install Git first:

Terminal window
winget install Git.Git

After it finishes, close and reopen PowerShell, then install Claude Code:

Terminal window
irm https://claude.ai/install.ps1 | iex

Again, close and reopen PowerShell.

Windows walkthrough video coming soon.

Login & Pricing

Type claude and log in with your Anthropic account.

Claude Code requires a paid subscription (Pro plan starts at $20/month). Free accounts can’t use it.

Auto-updates run in the background—no manual upgrades needed.

Once logged in, you’re ready to go.


Your First Task: Organize Scattered Screenshots

Your screenshots are probably scattered across Desktop, Downloads, and Documents. With Claude Code, one sentence gets it done.

Type this in Claude Code:

Organize all my screenshots scattered across Desktop, Downloads, and Documents

That’s it.

Claude figures out how to do it: scan folders, find screenshots, move them, rename them.

You don’t need to tell it every step. Just state what you want.

Done in seconds. Saves you 30 minutes of manual organizing.


Tips: How to Communicate with Claude Code

The most important thing when using Claude Code:

State the goal, not the steps.

❌ Don’t say: “First list files on Desktop, then filter for .png, then move to…”

✅ Just say: “Organize my screenshots.”

You define the goal. AI figures out the how.

But this doesn’t mean you hand over everything blindly.

You can add scope (“screenshots from Desktop, Downloads, and Documents”), or ask AI to propose a plan first (“tell me what you’re going to do before doing it”), then review before executing.

You’re the commander, not the typist.


Next Steps

Setup done. First task completed.

Now, think of something you do every day—organizing files, backing up photos, updating reports.

Tell Claude Code what you want in one sentence. See how it handles it.

That’s where the real journey begins.


FAQ

Is Claude Code free? How much does it cost?

Claude Code is not free. You need a paid Anthropic subscription: Pro plan at $20/month, or Max plan at $100 or $200/month for higher usage. There’s no free trial. If you’re not using it for product development, the Pro plan is generally enough.

Claude Code vs Cursor: What’s the difference?

Cursor is an IDE (Integrated Development Environment)—a tool engineers use to build software products. Claude Code is a command-line tool that interacts with AI through your terminal (Terminal / PowerShell). Since the terminal has full access to your computer, Claude Code can do more than just write code—it can run commands, manage files, connect APIs, and deploy systems. You can also use both together by running Claude Code inside Cursor’s terminal.

Do I need coding experience to use Claude Code?

No. Claude Code was originally built for engineers to develop software, but since it has full access to your computer, it’s like having an expert living inside your machine—you tell it what you want, and if your computer can do it, Claude Code figures out how. Batch organizing files, compressing photos, turning data into reports, setting up automation—none of that requires you to write a single line of code. I personally use Claude Code to build my knowledge management system, goal management system, and of course, to develop software and products.


Enjoyed this? Connect with me on LinkedIn — I’m open to collaboration, consulting, and new opportunities.

#how to use claude code #claude code tutorial #claude code setup

Related Posts