






















暂无文章
This is article 06 in the Crazyrouter Claude Code series. This article focuses on “Connecting Claude Code to Crazyrouter Series 06: Chapter 3: Getting Started with Basic Operations,” covering Chapter 3: Getting Started with Basic Operations, using the input box, and sending messages.
Unified integration approach: Claude Code / Anthropic native clients use
ANTHROPIC_BASE_URL=https://cn.crazyrouter.com; OpenAI-compatible SDKs, HTTP requests, and frontend/backend applications usebase_url=https://cn.crazyrouter.com/v1.
/v1/v1/... issue caused by an incorrect Base URL.Complete Claude Code installation process
Link:
[Required for installing Claude Code on Windows]
Link:
Claude Code installation video tutorial and hands-on practice
Link:
3.1 Start Your First Conversation
Now that you have installed and configured Claude Code, let’s start your first conversation!
At the bottom of the chat window on the left side of the Claude Code interface, you will see an input box. This is the main area where you communicate with Claude Code.
Type the question or request you want to ask in the input box. For example:
After you finish typing, press Enter to send the message.
There is a send button on the right side of the input box, usually shown as a paper-plane icon. Clicking it also sends the message.
After sending the message, Claude Code will start processing your request and usually replies within a few seconds. You will see:
Claude Code’s replies appear in the conversation history area, usually on the left side, with an AI icon.
Replies may contain:
If the reply is long:
In the area above the input box, you can see the full conversation history between you and Claude Code:
You can enter a new question in the input box at any time to continue the conversation:
If you want to start a new conversation:
Let’s try a few simple conversations:
You: Hello, please introduce yourself in one sentence.
Claude: Hello! I’m Claude, an AI assistant developed by Anthropic. I can help you with tasks such as working with text, analyzing data, and writing code.
You: Help me write a simple meeting notice.
Claude: Sure, here is a meeting notice template:
Meeting Notice
Dear colleagues,
A meeting on [meeting topic] is scheduled for [date] at [time] in [location].
Meeting agenda:
Please attend on time.
[Sender]
[Send date]
You: How can I improve work efficiency?
Claude: Here are a few suggestions for improving work efficiency:
Now, try starting your first conversation with Claude Code!
As a VS Code extension, Claude Code can directly access and operate on all files in your workspace without manual uploads. Let’s learn how to specify and work with files efficiently.
Claude Code is directly integrated into your VS Code workspace. This means:
This is the most common and accurate method. After typing @ in the chat box, a file list will automatically appear for selection.
Example:
Tips:
@, all files in the current workspace are displayed@file1.js @file2.jsIf you know the full path of the file, you can mention it directly in the conversation.
Example:
Describe where the file is located so Claude Code can find it.
Example:
Ask Claude Code to read and analyze a file:
Modify specific content in a file:
Ask Claude Code to create a new file:
Delete an unnecessary file:
Rename a file:
You can specify multiple files to operate on at the same time:
Perform operations on files in an entire directory:
Search for specific content in files:
Find the definition of a function:
Find all references to a function or variable:
Claude Code mainly works with code files and text files, and handles different types in different ways:
You: @UserService.js Please help me refactor this file and replace callback functions with async/await
Claude: Sure, I’ve refactored the UserService.js file. Main changes:
You: @TodoList.jsx Please help me add a feature for deleting to-do items
Claude: I’ve added the delete feature to TodoList.jsx:
deleteTodo functionYou: @login.js User login always fails. Please help me find the issue
Claude: I found several issues:
I’ve fixed these issues, and the login feature should now work properly.
You: @PaymentService.ts Please review the code for this payment service and identify potential security issues
Claude: After reviewing it, I found the following security issues:
Recommended fixes...
You: @api/*.js Please help me add request timeout settings to all API files
Claude: I’ve added request timeout settings to all .js files under the src/api directory:
Modified the following files:
When there are many files, relative paths are clearer:
Locate a directory first, then work with files:
When you’re not sure of the file name, you can describe it:
Claude Code automatically understands context based on your operation history:
You can reference specific parts of the code:
/ as the path separatorNow try specifying a file with the @ symbol and let Claude Code help you work on it!
One of the most common uses of Claude Code is generating all kinds of text content. Let’s learn how to use it to generate high-quality text.
Ask Claude Code to write a product description for you:
You: Please help me write a product description for a smartwatch. Its main features include health monitoring, workout tracking, and message notifications.
Claude: Sure, here is a product description for a smartwatch:
Smartwatch — Your partner for a healthier lifestyle
This smartwatch is the perfect assistant for your daily life. It integrates advanced health monitoring features that track key health metrics such as your heart rate, blood oxygen, and sleep quality in real time, helping you stay aware of your physical condition at all times.
With multiple built-in workout modes, it can accurately record your exercise data whether you’re running, swimming, or cycling, helping you train more scientifically. Smart message notifications make sure you never miss anything important, including calls, text messages, and social app notifications.
Its stylish, minimalist design pairs with a high-definition touch screen for smooth and convenient operation. With ultra-long battery life, a single charge lasts up to 7 days, making your smart life worry-free.
Generate engaging ad copy:
You: Please help me write ad copy for a coffee shop. It should feel warm and appealing.
Claude: Here is a warm coffee shop ad:
[A cup of coffee to warm the whole afternoon]
In the rush of city life, everyone needs a corner where they can slow down.
Our baristas roast every coffee bean with care, all to bring you the purest coffee aroma. Whether it’s your first latte in the morning or a pour-over in the afternoon, every cup brings a full sense of warmth.
Here, time seems to slow down. You can read quietly, work, or simply let your mind wander. We offer free Wi-Fi and comfortable seating, so you can enjoy time that’s truly your own.
New store opening: 20% off all coffee! We look forward to seeing you.
📍 Address: [your address]
⏰ Hours: 8:00 - 22:00
Generate content suitable for social media:
You: Please help me write a Moments post about sharing my experience of having a picnic in the park over the weekend.
Claude: Here is a Moments post:
The weekend sunshine was absolutely beautiful! 🌞
I went for a picnic in the park with friends. We spread out a picnic blanket, laid out the food we had carefully prepared, and it felt like the whole world became a little softer.
Blue sky, white clouds, green grass, and the laughter of good friends — this is my ideal weekend. 🥪🍇
The food was simple, but in a setting like this, every bite tasted especially good. Life doesn’t need to be too complicated. Sometimes, one sunny afternoon is enough to heal you.
#WeekendVibes #Picnic #LifeMoments
Generate a structured to-do list:
You: Please help me generate a to-do list for starting a project.
Claude: Here is a to-do list for starting a project:
Project startup to-do list
Phase 1: Preparation
Define project goals and scope
Assemble the project team
Assign roles and responsibilities
Create the project timeline Phase 2: Resource preparation
Prepare the project budget
Request the necessary tools and software
Prepare the workspace
Configure the development environment
Phase 3: Kickoff meeting
Phase 4: Follow-up
Generate different types of checklists:
You: Please help me create a travel essentials checklist.
Claude: Here is a travel essentials checklist:
Travel Essentials Checklist
Documents
Clothing
Toiletries
Electronics
Medication
Other
Make the text smoother and more polished:
You: Please help me polish this text: This product is easy to use, has many features, and is not expensive. I think everyone can buy it.
Claude: Polished version:
This product performs exceptionally well, offers a rich and diverse set of features, and is affordably priced, making it highly recommended. Whether for everyday use or specific needs, it delivers a strong experience and offers excellent value for money.
Adjust the tone and style of the text:
You: Please rewrite this text in a more formal tone: Hello everyone, today we're going to talk about how to use this software. It's very simple, just follow along with me.
Claude: Formal version:
Hello everyone. Today, we will introduce how to use this software. This tutorial will proceed step by step to ensure that every participant can master the key operations. Please follow our guidance as we learn each feature of the software.
Make complex text more concise and easier to understand:
You: Please help me simplify this text: Given the complexity and uncertainty of the current market environment, we need to adopt a more cautious and robust strategy to address the various challenges and risks that may arise.
Claude: Simplified version:
Because the market environment is complex and constantly changing, we need to adopt a cautious and robust strategy to handle various challenges and risks.
Extract the core points from a long text:
You: Please summarize the main content of this text. (Paste a long text.)
Claude: The main content of this text can be summarized as follows:
Extract specific information from text:
You: Please extract all action items from these meeting notes.
Claude: Action items extracted from the meeting notes:
Now, try asking Claude Code to help you generate some text!
/v1 usageIf you are ready to connect Claude Code, Chinese models, or your own application to Crazyrouter in one place, follow this order:
https://cn.crazyrouter.com; OpenAI-compatible SDKs use: https://cn.crazyrouter.com/v1./v1.When you need to evaluate model costs or choose different models, first check the Crazyrouter pricing and models page, then add frequently used models to the Token allowlist.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。