ClaudeCode-Notes

1. About

  • What is ClaudeCode?

  • Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools. Available in your terminal, IDE, desktop app, and browser.

  • Claude Code is an AI-powered coding assistant that helps you build features, fix bugs, and automate development tasks. It understands your entire codebase and can work across multiple files and tools to get things done.

2. Installation

2.1. NPM

  1. Launch a CMD window

  2. Run

    npm install -g @anthropic-ai/claude-code@latest

2.2. Windows CLI

  1. Launch a PS window

  2. Run

    Install via PowerShell
    irm https://claude.ai/install.ps1 | iex
  3. Confirm installation

    claude doctor

3. Configuration

3.1. vLLM Provider

  • Reference this doc.

3.1.1. Create env variables:

  1. Open a PWShell window

  2. Create these env variables

    Windows
    setx ANTHROPIC_BASE_URL http://192.168.1.232:3013;
    setx ANTHROPIC_AUTH_TOKEN vLLM;
    setx ANTHROPIC_DEFAULT_OPUS_MODEL my-model;
    setx ANTHROPIC_DEFAULT_SONNET_MODEL my-model;
    setx ANTHROPIC_DEFAULT_HAIKU_MODEL my-model;
    reg delete HKCU\Environment /F /V ANTHROPIC_API_KEY;
  3. Close the CMD window

    Don’t launch claude in this CMD window. Open a new one!
  4. Open a new CMD window

  5. Launch claude

    claude

3.2. Ollama Provider

  • Reference this doc.

3.2.1. Create env variables:

  1. Open a PowerShell window

  2. Create these env variables

    Windows
    setx ANTHROPIC_BASE_URL http://192.168.1.232:11434;
    setx ANTHROPIC_AUTH_TOKEN ollama;
    reg delete HKCU\Environment /F /V ANTHROPIC_API_KEY
  3. Close the CMD window

    Don’t launch claude in this CMD window. Open a new one!
  4. Open a new CMD window

  5. Launch claude

    claude

3.2.2. Models

  • Edit settings.json

    • Find the file

      Windows folder
      C:\Users\<user-name>\.claude
    • Edit the file

      Sample config
      {
        "model": "qwen3.6:27b",
        "enabledPlugins": {
          "frontend-design@claude-plugins-official": true
        },
        "autoUpdatesChannel": "latest",
        "theme": "dark"
      }

4. Run

  • Run with the specific model file

    claude --model qwen3.6:27b

5. Uninstall

5.1. Via NPM

  1. Close any active sessions

  2. Launch a CMD window

  3. Run

    npm uninstall -g @anthropic-ai/claude-code

5.2. Via PowerShell

  1. Close any active sessions

  2. Launch PowerShell window

  3. Run the following:

    Remove-Item -Path "$env:USERPROFILE\.local\bin\claude.exe" -Force
    Remove-Item -Path "$env:USERPROFILE\.local\share\claude" -Recurse -Force
  4. Remove user settings and state

    Remove-Item -Path "$env:USERPROFILE\.claude" -Recurse -Force
    Remove-Item -Path "$env:USERPROFILE\.claude.json" -Force
  5. Remove project-specific settings (run from your project directory)

    This is optional
    1. CD into the project-specific folder

    2. Remove settings

      Remove-Item -Path ".claude" -Recurse -Force
      Remove-Item -Path ".mcp.json" -Force