Skip to content

1.6 Models and Tools

After reading this section, you will gain:

  • An understanding of the differences between AI models, CLI tools, and IDE tools
  • How to choose the right tools based on your needs
  • How to configure the GLM model

Haven't installed Claude Code yet?

If you haven't installed Claude Code and configured a model yet, please refer to 1.0 Quick Start to complete the installation and setup.

Basic Concepts

AI Models

AI models are responsible for understanding intent and generating content. For example, if you ask "how do I build a login feature," the model analyzes the request and returns a code solution.

CategoryRepresentative Products
ChinaGLM (Zhipu), DeepSeek, Kimi (Moonshot), Doubao (ByteDance), MiniMax
InternationalGPT (OpenAI), Gemini (Google), Claude (Anthropic)

Tools are responsible for executing specific actions, such as reading files, running commands, and committing code. Tools need to be connected to a model in order to work.

Chatbox vs Tool Workflow

When you normally use AI, you might be chatting in a web-based chatbox:

Chatbox ModeTool Workflow Mode
Can only chat, cannot operate on filesCan directly read and write files in your project
Copy code back and paste it yourselfAI modifies the code automatically
Run commands yourselfAI executes commands automatically
Good for asking questions and learningGood for actual development

AI coding tools = AI brain + hands and feet. The model is the brain, and the tools are the hands and feet. With only a brain and no hands or feet, you can only copy code; with hands and feet, AI can actually help you do the work.

TypeRepresentative ProductsFeatures
CLI ToolsClaude CodeRuns in the command line, no graphical interface
IDE ToolsCursor, Windsurf, TraeGraphical interface, visual operations

CLI vs IDE Tools: How Should You Choose?

CLI ToolsIDE Tools
Interaction StyleCommand-line text conversationGraphical interface + conversation
ExperienceClean and focused, no distractionsVisual and more intuitive
FlexibilityHigh, easy to integrate into scriptsMedium, limited by the interface
Best ForRecommended in this tutorial, server-side developmentDevelopers who prefer a GUI

Core capabilities are the same: both can directly operate on project files, run commands, and work with Git. This tutorial recommends CLI tools (such as Claude Code) because they are simple, powerful, and better suited for learning the fundamentals of AI coding.

🎮 Click to try it: AI Tool Selection Wizard
🧭 AI 工具选择向导
问题 1 / 3
你更喜欢哪种交互方式?

💡 Exercise: Answer 3 questions to get a personalized tool recommendation

🎯 Core idea: There is no best tool, only the tool combination that fits you best

Using Them Together: Best Practice

Open a terminal inside your IDE and run CLI tools there — this is the preferred setup for many developers:

  • Use VS Code/Trae or another editor on the left for browsing and viewing files
  • Run Claude Code or another CLI tool in the bottom terminal to help modify your code
  • View the file structure while letting the CLI tool do the work

This way, you get both the visual convenience of an IDE and the power of CLI tools. Of course, it's recommended to always use the same AI model to keep the context consistent.

The Relationship Between IDEs and VS Code

Most AI IDEs are built on VS Code (such as Cursor, Windsurf, and Trae), so the interface and interaction patterns are consistent, VS Code extensions are generally compatible, and the learning curve is very low.

Overview of Mainstream Tools

TypeInternational VendorsDomestic Vendors
CLIClaude Code, Codex CLI, Gemini CLI, Aider, OpenCodeQoder CLI, iFlow CLI
IDECursor, Windsurf, Zed, GitHub CopilotTrae, Qoder, CodeBuddy

Advantages of Claude Code

  • Publicly available: Published to the npm registry, with no regional restrictions
  • Supports multiple models: Can connect to domestic models (GLM, DeepSeek, etc.)
  • Powerful workflow: File operations, code search, Git integration, and sub-agent collaboration
  • Controllable cost: Using domestic model APIs is far cheaper than official Claude pricing

Configuring the GLM Model

If you have already configured the GLM model by following 1.0 Quick Start, you can skip this section.

Step 1: Purchase a Coding Package

Visit the Zhipu AI Open Platform to purchase an official coding package and obtain your API Key.

What is an API Key

An API Key is the "pass" for calling large-model services. It serves as your identity credential when communicating with Zhipu AI servers.

Step 2: Automatic Configuration

bash
npx @z_ai/coding-helper
# Enter the API Key you obtained; the tool will auto-complete all configuration

Cost Comparison

Comparison ItemOfficial ClaudeGLM Coding Package
PriceAbout ¥110/¥540 per 1M tokensAbout 10% of standard API pricing
Single call~¥0.22~¥0.02
Network environmentRequires a relayDirect connection within China

Conclusion: For day-to-day development, the GLM coding package offers excellent value for money.

Other Development Tools

The following tools are not required. Install them as needed:

Tool TypeRecommended ProductsWhen You Need Them
Git GUIGitHub Desktop, SourcetreeIf you're not familiar with Git commands
DatabaseDBeaver, Drizzle StudioIf you frequently view/modify data
API TestingPostman, Thunder ClientIf you need to debug API endpoints

Minimum Setup

Claude Code + GLM + your system terminal + browser is enough to start developing.

FAQ

Q: Do I have to use an AI editor?

Yes, this is central to the tutorial. The Vibecoding approach is built on AI-native development. You can choose any AI IDE you like (Cursor/Windsurf/Trae, etc.), or use the Claude Code CLI tool.

Q: What's the difference between Cursor and VS Code?

Cursor is an AI-enhanced version of VS Code. VS Code requires you to manually install AI extensions, while Cursor deeply integrates AI capabilities. If you're already familiar with VS Code, switching to Cursor is easy.

Core Philosophy

To do a good job, you must first sharpen your tools.

Principles for choosing tools:

  1. AI-native first: Modern development depends on AI
  2. Cross-platform support: Tools should work on both Mac and Windows
  3. Low learning curve: Avoid overly complex tools
  4. Active community: Documentation and regular updates matter

Minimum setup: Claude Code + GLM + terminal + browser

Alpha Preview:This is an early internal build. Some chapters are still incomplete and issues may exist. Feedback is very welcome on GitHub.