Trae CN Complete Getting Started Guide: Free AI IDE for China, Zero-Cost AI Coding
ByteDance's Trae CN is completely free, requires no VPN, and includes top Chinese AI models like Doubao, DeepSeek, and Kimi K2. This guide takes you from installation to SOLO mode hands-on.
Trae CN is ByteDance’s China-edition AI IDE, built on VS Code. It is completely free, requires no VPN, and comes with built-in access to top Chinese coding models including Doubao Seed Code, DeepSeek V3/R1, Kimi K2, GLM-4.5, and Qwen3-Coder.
For developers in China, this is currently the best zero-cost starting point for AI-assisted coding.
Prerequisites
- Windows 10/11 or macOS 10.15+
- A phone number (for registering a ByteDance account)
- About 15 minutes of setup time
Step 1: Download and Install
Visit trae.cn to download the installer for your platform:
- macOS: Download the
.dmgfile and drag it into the Applications folder - Windows: Download the
.exeinstaller and follow the prompts to complete installation
Tip: Trae CN and the international version Trae (trae.ai) are separate products. Make sure you download the version from
trae.cn.
Step 2: Log In to Your Account
- On first launch, select your theme and language (recommended: dark theme + Simplified Chinese)
- Click “Log In” in the top-right corner and register a ByteDance account using your phone number
- After logging in, all features are available for free — no credit card required
Step 3: Get to Know the Interface
The Trae CN interface closely resembles VS Code, with two new AI feature entry points:
Left Sidebar
├── File Explorer (same as VS Code)
├── Source Control (Git)
└── Trae AI Panel (new)
Right / Bottom
├── AI Chat Window ← Interactive coding via conversation
└── SOLO Workspace ← Agent-driven autonomous development
Keyboard shortcuts:
Cmd/Ctrl + I: Open the AI Chat sidebarCmd/Ctrl + L: Open SOLO mode
Step 4: Choose a Model
Click the model selector at the top of the Chat window to switch between models:
| Model | Best For |
|---|---|
| Doubao Seed Code | Everyday code completion and generation; ByteDance’s in-house model, fast |
| DeepSeek-V3 | Strong general-purpose capabilities, complex logic and reasoning |
| DeepSeek-R1 | Math and algorithm challenges, with visible reasoning process |
| Kimi K2 | Agent tasks, long-context understanding |
| GLM-4.5 | Chinese language understanding, document generation |
| Qwen3-Coder | Code-specialized, multi-language support |
Tip: Not sure which to pick? Use Doubao Seed Code for everyday tasks, switch to DeepSeek-V3 for complex work, and choose DeepSeek-R1 for algorithm problems.
Step 5: Chat Mode — Basic Usage
Chat mode is ideal for an interactive, ask-and-edit workflow:
Open an Existing Project
# Open a project folder with Trae CN
File → Open Folder → Select your project directory
Basic Conversation Examples
Type your request in the Chat input box:
Write a Python FastAPI endpoint that accepts a POST request with name and age parameters and returns a JSON greeting
Trae will generate the code and provide buttons to “Insert into File” or “Create New File” — apply changes with a single click.
Referencing File Context
Type @ in the Chat to reference:
@filename: Have the AI read a specific file@folder: Read an entire directory@code block: Reference the currently selected code
@src/api/user.py What's wrong with this endpoint? Help me improve the error handling
Step 6: SOLO Mode (Agent-Driven Autonomous Development)
SOLO is Trae CN’s core differentiating feature, with two sub-modes:
SOLO Coder: Iterating on Existing Projects
Ideal for adding features and refactoring code in an existing project:
- Open your project folder
- Press
Cmd/Ctrl + Lto enter SOLO mode - Describe your requirements and check the Plan option to have the AI produce an execution plan first
- After confirming the plan, SOLO automatically executes: reads files, writes code, and runs tests
Add JWT login authentication to my existing Express project, including registration and login endpoints plus middleware
SOLO Builder: Building New Projects from Scratch
Ideal for rapidly scaffolding applications from nothing:
- Create a new empty folder and open it with Trae
- Enter SOLO Builder mode
- Describe your application:
Create a React + TypeScript to-do app:
- Support adding, deleting, and marking tasks as complete
- Store data in localStorage
- Use Tailwind CSS with a dark theme
SOLO Builder will automatically:
- Generate a requirements document (requirements.md)
- Determine the tech stack and install dependencies
- Progressively generate all code files
- Launch a local preview
Tip: Builder mode supports integration with Supabase (database), Vercel (deployment), and Stripe (payments) — build a full-stack application without leaving the IDE.
FAQ
Q: Is Trae CN really completely free?
Yes. Currently all features and model calls are completely free, including access to top-tier models like DeepSeek and Kimi K2. ByteDance has not yet announced any monetization plans, so take advantage of the free period while it lasts.
Q: Will ByteDance store my code?
Trae CN sends conversation context to the cloud for processing. If your project involves trade secrets, consider:
- Disabling the “Data Collection” option in Settings
- Or switching to the Trae international version with a self-hosted OpenAI API
Q: How does it compare to Cursor?
| Dimension | Trae CN | Cursor |
|---|---|---|
| Price | Completely free | $20/month |
| China access | Direct connection | VPN required |
| Model quality | Top Chinese models | Top global models |
| Completion speed | Fast | Very fast |
| Ecosystem maturity | Growing | Mature |
Bottom line: Trae CN is the top choice for developers in China. If you need the ultimate coding experience and have VPN access, Cursor is an alternative.
Q: Can I use VS Code extensions in Trae CN?
Yes. Trae CN is built on VS Code and is compatible with .vsix format extensions. Most VS Code extensions can be installed and used directly.
Q: What’s the difference between Trae CN and the international version?
| Trae CN | Trae (International) | |
|---|---|---|
| Website | trae.cn | trae.ai |
| Pricing | Completely free | Pro $10/month |
| Built-in models | Doubao/DeepSeek/Kimi | Claude/GPT/Gemini |
| Network | Direct access in China | VPN required |
Advanced Tips
Custom AI Behavior Rules
Create .trae/rules.md in your project root (similar to .cursorrules) to let the AI understand your project conventions:
# Project Guidelines
- Use TypeScript with strict mode enabled
- Use JSDoc format for function comments
- Use the Result<T, E> pattern for error handling
- Follow Conventional Commits for commit messages
Connect Custom Models
Trae CN supports custom model providers. You can connect to additional models on Volcengine Ark:
- Go to Settings → Model Providers → Add
- Enter the Volcengine Ark Base URL and API Key
- You can now use other proprietary models available on Ark
Congratulations! You now have a solid grasp of Trae CN’s core features. If you have any questions, feel free to provide feedback on GitHub Issues.
📚 Keep Reading
📚 Related Guides
Using GitHub Copilot from China: Access, AI Credits Billing, and Alternatives
An assessment of Copilot accessibility from China, the new AI Credits billing system explained, plus domestic alternatives for developers who need a smoother experience.
Volcengine Ark Coding Plan Guide: Tiers, Agent Plan Differences, and Setup Notes
Based on the official Volcengine Ark Agent/Coding Plan export: Coding Plan is a two-tier coding-focused subscription for individual developers, while Agent Plan is the upgraded multimodal + Harness package. Covers the boundary, model/activity changes, Base URL/API key rules, and setup notes for Cline, Claude Code, OpenCode, and Codex CLI.
China Coding API Roundup 2026: Ark vs Bailian vs MiniMax vs Zhipu vs DeepSeek
The most comprehensive 2026 comparison of Chinese AI coding API subscriptions: Volcengine Ark Lite ¥40/mo (¥9.9 first month), Alibaba Bailian ¥200, MiniMax ¥29, Zhipu GLM ¥49+, and DeepSeek pay-as-you-go. One big table, six scenarios, and a decision tree to find your fit in 30 seconds.
📖 Related Comparisons
Trae vs Cursor 2026: ByteDance's Free AI IDE vs the Market Leader
Trae vs Cursor compared: ByteDance's free AI IDE with SOLO mode and Builder mode versus Cursor's best-in-class coding experience — pricing, features, and who should switch.
Bailian Coding Plan vs Volcengine Ark Coding Plan: 2026 Deep Comparison
A comprehensive comparison of Alibaba Cloud Bailian and Volcengine Ark — two major China-native AI coding API plans: pricing, quota mechanisms, model ecosystems, client compatibility, and selection advice.
Best AI Coding Tools 2026: Mainstream Tools Reviewed & Ranked
A practical AI coding tools comparison for 2026, covering Cursor, Claude Code, Copilot, Windsurf, and other mainstream tools across coding ability, pricing, flexibility, and more.
🔧 Tools in This Article
💰 Related money-saving plans
Based on the tools and APIs in this guide — get started for less.
Trae CN(免费)
国内零成本首选字节出品国内版,完全免费,无需代理,内置顶级国产模型
For: 国内开发者零成本入门 AI 编程 · 不想配置 API Key 的用户
Trae CN + 方舟 Coding Plan
国内进阶首选Trae CN 免费 IDE + 方舟 API,解锁更多模型和更高额度
For: 追求国内最优体验 · 不想折腾配置
🎁 Grab deals & free trials
Free quotas, first-month discounts, and sign-up links for tools & coding plans — kept up to date.
View all deals →