Claude Code Claude Code User Guide
Complete tutorial for Claude Code CLI tool, from installation to mastery. Get started with AI-assisted programming and boost your development efficiency.
Quick Start
Three steps to start using Claude Code
Get API Key
Register at QCode.cc and obtain your Claude API key
Install CLI Tool
Download and install the Claude Code command-line tool
Start Coding
Configure environment variables and begin your AI-assisted coding journey
Detailed User Guide
安装配置
快速安装和配置Claude Code CLI
Installation Example
# Install Claude Code using npm
npm install -g @anthropic-ai/claude-code
# Configure API endpoint (using QCode proxy)
export ANTHROPIC_BASE_URL="https://api.qcode.cc"
# Configure API key
export ANTHROPIC_API_KEY="your-api-key-here"
# Launch Claude Code
claude
基础使用
掌握Claude Code的核心功能
Basic Commands Example
# Start Claude Code in project directory
cd your-project && claude
# Ask directly
claude "explain what this function does"
# Continue previous session
claude --continue
高级功能
充分利用Claude Code的强大能力
问题排查
解决常见使用问题
Claude Code Advanced Features
Master the latest features to boost development efficiency
Claude Opus 4.8
Latest flagship model with 80.9% SWE-bench score, industry-leading coding capabilities
Background Agents
Run long-running tasks in the background, continue other work without waiting
Hooks Automation
Configure automated actions like running tests on save, formatting before commit
Parallel Subagents
Delegate complex tasks to subagents for parallel processing, significantly improving efficiency
Tips and Best Practices
Efficiency Tips
Use CLAUDE.md File
Create a CLAUDE.md file in your project root to document project conventions and preferences
Leverage Hooks
Configure Hooks to automatically run tests, lint checks, and formatting to ensure code quality
Use Background Agents
For long-running tasks, use background agents to execute asynchronously and continue other work
Troubleshooting
Invalid API Key
Check your environment variable configuration, ensure the key format is correct (starts with cr_) and not expired
Connection Timeout
Check your network connection. Try using https://api.qcode.cc as the API endpoint
Poor Code Quality
Provide more detailed requirements, use CLAUDE.md to define project specifications
QCode also powers OpenAI Codex / GPT-5.5
Your QCode quota works seamlessly across Claude Code, OpenAI Codex CLI, and Google Gemini — one shared balance, zero duplicate spend.
Start Using Claude Code
Register at QCode.cc for discounted Claude Code API service and begin your AI coding journey