Skip to content
MIYA·AI·LAB / generative-AI test logs LLM · Claude Code · MLX · Ollama
AI MiyaAILab_
  • // Lab
  • // all logs
JA / EN
← Miya-Gadget
Generative AI PC

The Complete Guide to Claude Code: Get Started with AI Development on Windows in 5 Minutes

2025年11月15日 · Shichinomiya
The Complete Guide to Claude Code: Get Started with AI Development on Windows in 5 Minutes

I recently started using the AI assistant “Claude Code” for programming and blog writing, and it turned out to be way more useful than I expected.

In this article, I’ll walk you through the setup process on Windows and guide you through generating your first simple program — all aimed at complete beginners.

 

Table of Contents

Toggle

  • What Is Claude Code?
  • What Claude Code Can Do
  • Setting Up Your Windows Environment
  • Installing Claude Code
  • First Login and Setup
  • Your First Step: Building Hello World
  • A More Practical Example: Building a Simple Calculator
  • Useful Claude Code Features
  • Things to Watch Out For
  • Pricing
  • Conclusion

What Is Claude Code?

Claude Code is a tool that lets you use Anthropic’s AI “Claude” from the terminal (command line).

Unlike regular chatbots, it can actually read and write files, edit code, manage version control with Git, and more — all through a conversational interface.

If you’re new to programming, the word “terminal” might sound intimidating, but think of it as a black screen where you give instructions to your computer.

 

What Claude Code Can Do

Here are some features I found particularly useful after trying it out:

  • Automatic code generation: Just say “write a function that does X” and it writes working code for you.
  • Bug fixing: Show it an error message, and it’ll explain the cause and suggest a fix.
  • Code explanation: It can read existing code and explain what it does in plain language.
  • Git operations: Just say “commit the changes” and it even comes up with an appropriate commit message.
  • Refactoring: It can suggest ways to make your code more readable and efficient.

Personally, I’ve been using it for writing blog posts as well, and it’s significantly boosted my productivity.

 

Setting Up Your Windows Environment

There are a few things you need to prepare before using Claude Code.

 

System Requirements

First, make sure your computer meets these requirements:

  • OS: Windows 10 or later
  • Memory: 4GB RAM minimum (8GB or more recommended)
  • Internet: Always-on connection required

Most modern PCs should have no issues.

 

Installing Git for Windows

To use Claude Code on Windows, you’ll need “Git for Windows.”

Download the installer from the Git for Windows official site and install it with the default settings — just keep clicking “Next.”

During installation, selecting “Use Git from the Windows Command Prompt” will come in handy later.


Git for Windows download page

 

Installing Claude Code

Now let’s actually install Claude Code.

 

Open PowerShell

Press the Windows key, type “PowerShell,” right-click on “Windows PowerShell” and select “Run as administrator.”

If a blue window (the PowerShell console) opens, you’re good to go.


PowerShell startup screen

 

Run the Install Command

Copy and paste the following command into PowerShell and press Enter:

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

If you get an “execution policy” error, run the following command first, then try the install command again:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

The installation may take a few minutes. Be patient!


Claude Code installation in progress

 

Verify the Installation

After the installation completes, verify it with this command:

claude doctor

If you see information like “Installation type” and “Version,” the installation was successful.

 

First Login and Setup

Once the installation is done, it’s time to log in to Claude Code.

 

Prepare Your Claude Account

You’ll need a Claude account to use Claude Code.

If you don’t have one yet, create a free account at the Claude official site. It only takes a few minutes with an email address.

 

Run the Login Command

Run the following command in PowerShell:

claude

On the first launch, a login screen will open automatically. Your browser will launch with an authentication page — log in with your Claude account.


Claude.ai authentication screen

Once authenticated, you’ll see a “Successfully logged in!” message in PowerShell.

 

Your First Step: Building Hello World

Now that you’re logged in, let’s actually use Claude Code.

We’ll start with the classic “Hello World” — a simple program that prints a message.

 

Create a Working Folder

First, create a folder to work in. Let’s make a “test_project” folder on your desktop.

Run these commands in PowerShell:

cd $HOME\Desktop
mkdir test_project
cd test_project

This creates a “test_project” folder on your desktop and navigates into it.

 

Launch Claude Code

Start Claude Code from inside the folder:

claude

After a moment, the Claude Code interactive screen will appear.


Claude Code startup screen

 

Give the Hello World Instruction

Try saying something like this to Claude Code:

Create a Python program that prints "Hello World"

Claude Code will create a file called “hello.py” containing code like this:

print("Hello World")

The file is actually saved in your folder. Open the “test_project” folder in Explorer and you’ll see “hello.py” there.


The created hello.py file

 

Run the Program

Let’s run the generated program. Either tell Claude Code “run this program” or execute the following in PowerShell:

python hello.py

If “Hello World” appears, you’ve done it!

Honestly, even with something this simple, there’s a real “wow, the AI actually wrote code for me!” moment.

 

A More Practical Example: Building a Simple Calculator

Now that you’ve got the basics down, let’s try building something a bit more practical.

 

Give the Instruction

Say something like this to Claude Code:

Create a simple calculator program that can add, subtract, multiply, and divide two numbers. Let the user input the numbers and the operator.

 

The Generated Code

Claude Code will create a “calculator.py” file with code like this:

def calculator():
    print("Simple Calculator")
    num1 = float(input("Enter the first number: "))
    operator = input("Enter an operator (+, -, *, /): ")
    num2 = float(input("Enter the second number: "))

    if operator == '+':
        result = num1 + num2
    elif operator == '-':
        result = num1 - num2
    elif operator == '*':
        result = num1 * num2
    elif operator == '/':
        if num2 != 0:
            result = num1 / num2
        else:
            print("Error: Cannot divide by zero")
            return
    else:
        print("Invalid operator")
        return

    print(f"Result: {result}")

if __name__ == "__main__":
    calculator()

This code includes user input handling and error handling (like the division-by-zero check).

Writing this kind of code from scratch would take beginners quite a while, but Claude Code generates it in seconds.

 

Test It Out

python calculator.py

Enter numbers and an operator, and you’ll see the result. Building a program really can be this easy!


Calculator program output

 

Useful Claude Code Features

Now that you know the basics, here are some handy features worth knowing.

 

Ask for Code Explanations

When you want to understand existing code, try asking:

Explain the contents of calculator.py in detail

Claude Code will explain what each part of the code does.

 

Request Code Improvements

Make this code more readable

It will suggest improvements like clearer variable names and added comments.

 

Troubleshoot Errors

If you get an error when running a program, just paste the error message directly into Claude Code:

I got this error. Please fix it.
[paste the error message here]

It will identify the cause and suggest a fix.

 

Work with Multiple Files

Claude Code can handle multiple files at once:

Add a README.md file to this project explaining how to use it

It will automatically generate documentation files for you.

 

Things to Watch Out For

After using it for a few weeks, I noticed some important points to keep in mind:

  • Always verify the output: Always run and test the code Claude Code generates. It occasionally produces unexpected results.
  • Be mindful of security: Be careful about what information gets sent to Claude (AI) when working on projects containing personal or sensitive data.
  • Be specific with instructions: Vague instructions can lead to unexpected results. The more specific you are — like “write code with X functionality that does Y” — the better.
  • Keep learning: Claude Code is a great tool, but learning programming fundamentals is still important. Try to understand the “why” behind the generated code.

That said, used with these things in mind, it will definitely boost your productivity.

 

Pricing

You need a Claude account to use Claude Code.

The free plan (Claude Free) gives you access to basic features, but with usage limits. For extended sessions or generating large amounts of code, the paid plan (Claude Pro: around $20/month) is worth considering.

Personally, I’d recommend starting with the free plan and upgrading to Pro once you’re convinced it’s worth it.

 

Conclusion

In this article, I walked through installing Claude Code on Windows and building simple programs.

Words like “terminal” and “command” might seem daunting at first, but it’s surprisingly straightforward once you try it.

I especially recommend it for anyone who’s learning to code or writing a blog.

Key benefits of Claude Code:

  • Write code through conversation
  • Easy error fixing and code explanations
  • Beginner-friendly interface
  • Massive productivity boost

Just remember to always review the generated code yourself and keep building your own understanding.

If you’re interested in getting started with AI-assisted programming, give it a try!

You might also like

More generative-AI logs from the lab.

  • Tesla V100 32GB in 2026: Local LLM Benchmark with Qwen 3.6 — 98.8 tok/s on MoE 35B, 1.6x Faster Than M1 Max (Used, ≈$900)
  • Your First Program with Claude Code! Building a Game Through Conversation
  • Auto-Generate PDF Reports with Claude Code: From Raw Data to Polished Documents
  • Building a Weather Forecast App with Claude Code and API Integration
Previous Article The Complete Guide to Streamlit: Build Web Apps Easily with Python
Next Article Your First Program with Claude Code! Building a Game Through Conversation

Related Posts

Building a Full-Stack Blog System with Claude Code: Applying Everything I Learned

Building a Full-Stack Blog System with Claude Code: Applying Everything I Learned

Building a Weather Forecast App with Claude Code and API Integration

Building a Weather Forecast App with Claude Code and API Integration

Simplify Task Management with Claude Code! Building a Simple Todo List App

Simplify Task Management with Claude Code! Building a Simple Todo List App

Build a Budget Tracker App with Claude Code: Data Visualization Made Easy

Build a Budget Tracker App with Claude Code: Data Visualization Made Easy

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Shichinomiya

Shichinomiya

A blogger who loves PC and gadgets. Sharing daily discoveries.

@shichinomiya_s

Popular Posts

  • Does the trending Claude Code skill “ADHD” actually make the agent smarter? A measured duel vs single-shot
  • Auto-Generate PDF Reports with Claude Code: From Raw Data to Polished Documents
  • Build a Budget Tracker App with Claude Code: Data Visualization Made Easy
  • Can GTX 1080 Ti Run Modern AI? Qwen 3.5 Local LLM Benchmark Results
  • Building a Full-Stack Blog System with Claude Code: Applying Everything I Learned

Categories

  • Announcements
  • Cars
  • Cycling
  • Gadgets
  • Generative AI
  • Home Appliances
  • Internet Service
  • Outings
  • Overseas Shopping
  • PC
  • Rental Servers & VPS
  • Travel

MiyaAILab

A hands-on lab for generative AI — new models, tools, and services tested for real, from benchmarks to everyday usefulness.

Lab

  • AI Lab トップ
  • 生成AI 全記事
  • ← Miya-Gadget 本体

Latest

  • Dual Tesla V100 SXM2 on a Single PCIe Slot: 64GB VRAM & 300 GB/s NVLink Tested — Is This $700 Setup Worth It?
  • Modded RTX 4080 32GB Benchmarked: Qwen3.8-27B at 262K Context, 125B MoE, and MiniMax H3 Video — What 32GB Actually Delivers
  • Tesla V100 32GB Runs Qwen3.8-27B: 131k Context on a Single Card — Measured Benchmark
  • Tesla V100 32GB in 2026: Local LLM Benchmark with Qwen 3.6 — 98.8 tok/s on MoE 35B, 1.6x Faster Than M1 Max (Used, ≈$900)
© 2026 Miya AI Lab — a section of Miya-Gadget. miyagadget.page