Table of Contents
Updated:3 Read minClaude Code

Claude Code CLI Guide 2026 — Install, Configure API Key & Run

Step-by-step tutorial to install Claude Code CLI from the terminal on macOS, Linux, and Windows — set the API key in settings.json, run the `claude` command, and fix common issues.

About the product used in this article

The installation, configuration, and usage steps in this article are based on the [Claude Code] product provided by ngaicode.

We offer [Claude Code] plans starting from $1.90. After purchasing any plan, you’ll receive an API KEY with a detailed tutorial. If you encounter any issues during installation, setup, or use, our support team is always available to help.

To subscribe to [Claude Code], view plans and pricing at the Claude Code product page or contact customer support to place an order.

Contact us: WhatsApp Contact us — PayPal & USDT TRC20 payments accepted. Replies within 5 minutes during business hours (9:00–24:00 UTC+7).


1: Claude Code CLI — Install, Configure, and Use

1.1 Install Claude Code CLI

# MacOS, Linux, WSL
curl -fsSL https://claude.ai/install.sh | bash
# Windows PowerShell
irm https://claude.ai/install.ps1 | iex
# Windows CMD
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

1.2 Configure the Claude CLI KEY

After installing Claude Code CLI, use the ngaicode interactive command to write the API settings automatically:

# macOS / Linux / WSL
curl -fsSL https://ngaicode.com/install/claude/claude-config-api.sh | bash
# Windows PowerShell
irm https://ngaicode.com/install/claude/claude-config-api.ps1 | iex
# Windows CMD
curl -fsSL https://ngaicode.com/install/claude/claude-config-api.bat -o "%TEMP%\claude-config.bat" && "%TEMP%\claude-config.bat"
{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "replace with your API key",
    "ANTHROPIC_BASE_URL": "https://cc.getapihub.com",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-sonnet-5-5",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-sonnet-5-5",
    "ANTHROPIC_MODEL": "claude-sonnet-5-5",
    "CLAUDE_CODE_ATTRIBUTION_HEADER": "0",
    "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1",
    "CLAUDE_CODE_SUBAGENT_MODEL": "claude-sonnet-5-5"
  },
  "hasCompletedOnboarding": true
}

1.3 Using Claude

Once configuration is complete, just run claude in your terminal and you’re ready to go.

2: Use Alongside the Claude App

We recommend using CCswitch or similar tools to manage and switch configurations easily. See the tutorial for details: See the App tutorial for configuring CCswitch

3: Troubleshooting

Q: Official Documentation

Official Documentation

Q:สร้างภาพ

โมเดลสร้างรูปภาพ (กรุณาติดต่อผู้ดูแลระบบเพื่อขอเปิดใช้งาน KEY แยกต่างหาก) โดยมีรายละเอียดราคาดังนี้: gemini-3-pro-image gemini-3.1-flash-image gemini-nano-banana-2.1 gpt-image-2 gpt-image-2.5-flare gpt-image-2.5-sunburst 1K $0.268 / รูป 2K $0.402 / รูป 4K $0.536 / รูป

grok-imagine-image $0.200 / คำขอ

grok-imagine-image-2.0 $0.300 / คำขอ

grok-imagine-image-quality $0.200 / คำขอ

Q: Check KEY Usage / Quota

Click the link below and enter your KEY to check quota usage. Quota usage matches the official version ตามรายละเอียดแพ็กเกจ.

https://ngaicode.com/en/cckey-usage/

image.png

Q: List of Available Models

[View available models for Claude]

image.png



Ready to Get Claude Code CLI?

3 simple steps: Pick a Claude Code plan → Scan PromptPay / PayPal → Receive your API key instantly

  1. Order Claude Code from ngaicode: ngaicode Claude Code page — plans start at $1.90 / month
  2. Questions / orders: WhatsApp Contact us — real human reply within 5 minutes
  3. See all 3 AI coding tools: ngaicode Home — Cursor / Codex / Claude Pro
Back to Blog

Related Posts

View All Posts »

Buy Claude Pro 2026 | PayPal/USDT $4.6 | ngaicode

**Buy Claude Pro** in Thailand at ngaicode — starts at **$4.6/month** (save 79% vs official $20) — Sonnet/Opus access where listed in the package, pay with PayPal/USDT, no credit card, no proxy, no Anthropic account needed.

whatsapp chat