中文 | English
Zero-config, one-click setup for Claude Code with bilingual support, intelligent agent system and personalized AI assistant
npx zcf # Open interactive menu and choose operations based on your needsMenu options include:
1Full initialization (equivalent tozcf i)2Import workflows (equivalent tozcf u)3-6Configuration management (API, MCP, Model, AI personality, etc.)- More features...
npx zcf i # Execute full initialization directly: Install Claude Code + Import workflows + Configure API + Set up MCP services
# or
npx zcf → select 1 # Execute full initialization via menunpx zcf u # Update workflows only: Quick add AI workflows and command system
# or
npx zcf → select 2 # Execute workflow update via menuNote:
- Since v2.0,
zcfopens the interactive menu by default, providing a visual operation interface- You can choose operations through the menu or use commands directly for quick execution
zcf i= full initialization,zcf u= update workflows only
Full initialization (npx zcf) will automatically:
- ✅ Detect and install Claude Code
- ✅ Select AI output language (new feature)
- ✅ Configure API keys
- ✅ Select and configure MCP services
- ✅ Set up all necessary configuration files
After configuration:
- For first-time project use, strongly recommend running
/initto generate CLAUDE.md for better AI understanding of project architecture <task description>- Execute directly without workflow, following SOLID, KISS, DRY, and YAGNI principles, suitable for small tasks like bug fixes/feat <task description>- Start new feature development, divided into plan and UI phases/workflow <task description>- Execute complete development workflow, not automated, starts with multiple solution options, asks for user feedback at each step, allows plan modifications, maximum control
PS:
- Both feat and workflow have their advantages, try both to compare
- Generated documents are located by default at
.claude/xxx.mdin project root, you can add.claude/to your project's.gitignore
- Script interaction language: Controls installation prompts language
- Configuration file language: Determines which configuration set to install (zh-CN/en)
- AI output language: Choose the language for AI responses (supports Chinese, English, and custom languages)
- AI personality: Support multiple preset personalities (Professional, Catgirl, Friendly, Mentor) or custom
- Auto-detects Claude Code installation status
- Uses npm for automatic installation (ensures compatibility)
- Cross-platform support (Windows/macOS/Linux/Termux)
- Automatic MCP service configuration
- Smart configuration merging and partial modification support (v2.0 new)
- Enhanced command detection mechanism (v2.1 new)
- Dangerous operation confirmation mechanism (v2.3 new)
- CLAUDE.md system instructions
- settings.json configuration file
- commands custom commands
- agents AI agent configurations
- Supports two authentication methods:
- Auth Token: For tokens obtained via OAuth or browser login
- API Key: For API keys from Anthropic Console
- Custom API URL support
- Support for manual configuration later
- Partial modification: Update only needed configuration items (v2.0 new)
- Smart backup of existing configurations (all backups saved in ~/.claude/backup/)
- Configuration merge option (v2.0 enhanced: supports deep merge)
- Safe overwrite mechanism
- Automatic backup before MCP configuration changes
- Default model configuration (v2.0 new)
- AI memory management (v2.0 new)
- ZCF cache cleanup (v2.0 new)
$ npx zcf
ZCF - Zero-Config Claude-Code Flow v2.3.0
? Select ZCF display language / 选择ZCF显示语言:
❯ 简体中文
English
Select function:
-------- Claude Code --------
1. Full initialization - Install and configure everything
2. Import workflows - Update AI workflows and commands
3. Configure API - Manage API authentication
4. Configure MCP services - Manage MCP integrations
5. Configure default model - Set default AI model
6. Configure AI personality - Set AI assistant personality
7. Configure AI memory - Set up AI memory management
------------ ZCF ------------
0. Change language - Switch interface language
-. Clear cache - Clear ZCF cache files
q. Exit
Enter your choice: _? Select Claude Code configuration language:
❯ 简体中文 (zh-CN) - Chinese (easier for Chinese users to customize)
English (en) - English (recommended, lower token consumption)
? Select AI output language:
AI will respond to you in this language
❯ 简体中文
English
Custom
(Supports Japanese, French, German, and more)
? Select AI personality:
❯ Professional Assistant(Default)
Catgirl Assistant
Friendly Assistant
Mentor Mode
Custom
? Claude Code not found. Install automatically? (Y/n)
✔ Claude Code installed successfully
? Select API authentication method
❯ Use Auth Token (OAuth authentication)
For tokens obtained via OAuth or browser login
Use API Key (Key authentication)
For API keys from Anthropic Console
Skip (configure manually later)
? Enter API URL: https://api.anthropic.com
? Enter Auth Token or API Key: xxx
? Existing config detected. How to proceed?
❯ Backup and overwrite all
Update workflow-related md files only with backup
Merge config
Skip
✔ All config files backed up to ~/.claude/backup/xxx
✔ Config files copied to ~/.claude
✔ API configured
? Configure MCP services? (Y/n)
? Select MCP services to install (space to select, enter to confirm)
❯ ◯ Install all
◯ Context7 Documentation Query - Query latest library docs and code examples
◯ DeepWiki - Query GitHub repository docs and examples
◯ Playwright Browser Control - Direct browser automation control
◯ Exa AI Search - Web search using Exa AI
? Enter Exa API Key (get from https://dashboard.exa.ai/api-keys)
✔ MCP services configured
🎉 Setup complete! Use 'claude' command to start.| Command | Alias | Description |
|---|---|---|
zcf |
- | Show interactive menu (v2.0 default command) |
zcf init |
zcf i |
Initialize Claude Code configuration |
zcf update |
zcf u |
Update workflow-related md files with backup |
# Specify configuration language
npx zcf --config-lang zh-CN
npx zcf -c zh-CN # Using short option
# Force overwrite existing configuration
npx zcf --force
npx zcf -f # Using short option
# Update workflow-related md files with backup (preserve API and MCP configs)
npx zcf u # Using update command
npx zcf update # Full command
# Show help information
npx zcf --help
npx zcf -h
# Show version
npx zcf --version
npx zcf -v# Show interactive menu (default)
npx zcf
# First-time installation, complete initialization
npx zcf i
npx zcf init # Full command
# Update workflow-related md files with backup, keep API and MCP configs
npx zcf u
npx zcf update # Full command
# Force reinitialize with Chinese config
npx zcf i --config-lang zh-CN --force
npx zcf i -c zh-CN -f # Using short options
# Update to English prompts (lower token consumption)
npx zcf u --config-lang en
npx zcf u -c en # Using short optionzcf/
├── README.md # Documentation
├── package.json # npm package configuration
├── bin/
│ └── zcf.mjs # CLI entry point
├── src/ # Source code
│ ├── cli.ts # CLI main logic
│ ├── commands/ # Command implementations
│ ├── utils/ # Utility functions
│ └── constants.ts # Constant definitions
├── templates/ # Configuration templates
│ ├── CLAUDE.md # Project level config (v2.0 new)
│ ├── settings.json # Base configuration (with privacy env vars)
│ ├── en/ # English version
│ │ ├── rules.md # Core principles (formerly CLAUDE.md)
│ │ ├── personality.md # AI personality (v2.0 new)
│ │ ├── mcp.md # MCP services guide (v2.0 new)
│ │ ├── agents/ # AI agents
│ │ └── commands/ # Command definitions
│ └── zh-CN/ # Chinese version
│ └── ... (same structure)
└── dist/ # Build output
- Task Planner: Breaks down complex tasks into executable steps
- UI/UX Designer: Provides professional interface design guidance
- AI Personality: Support multiple preset personalities and custom (v2.0 new)
- Feature Development (
/feat): Structured new feature development - Workflow (
/workflow): Complete six-phase development workflow
- API key management (supports partial modification)
- Fine-grained permission control
- Multiple Claude model support (configurable default model)
- Interactive menu system (v2.0 new)
- AI memory management (v2.0 new)
- [Mode: Research] - Understand requirements
- [Mode: Ideate] - Design solutions
- [Mode: Plan] - Create detailed plan
- [Mode: Execute] - Implement development
- [Mode: Optimize] - Improve quality
- [Mode: Review] - Final assessment
# Clone the project
git clone https://github.com/UfoMiao/zcf.git
cd zcf
# Install dependencies (using pnpm)
pnpm install
# Build project
pnpm build
# Local testing
node bin/zcf.mjs- Task Breakdown: Keep tasks independent and testable
- Code Quality: Follow SOLID, KISS, DRY, and YAGNI principles
- Documentation Management: The plan will be stored in the
.claude/plan/directory at the project root
If you encounter issues:
- Re-run
npx zcfto reconfigure - Check configuration files in
~/.claude/directory - Ensure Claude Code is properly installed
- If paths contain spaces, ZCF will automatically handle quote wrapping
- Use ripgrep (
rg) preferentially for file searching for better performance
ZCF fully supports Windows platform:
- Auto-detection: Automatically uses compatible
cmd /c npxformat on Windows systems - Config repair: Existing incorrect configurations are automatically fixed during updates
- Zero-config: Windows users don't need any extra steps, same experience as macOS/Linux
If you encounter MCP connection issues on Windows, running npx zcf will automatically fix the configuration format.
ZCF now supports running in Android Termux environment:
- Auto-adaptation: Automatically detects Termux environment and uses compatible configuration
- Enhanced detection: Intelligently identifies available commands, ensuring normal operation in restricted environments
- Full functionality: Enjoy the same complete features in Termux as on desktop systems
To protect user data security, the following operations require explicit confirmation:
- File System: Delete files/directories, bulk modifications, move system files
- Code Commits:
git commit,git push,git reset --hard - System Config: Modify environment variables, system settings, permissions
- Data Operations: Database deletions, schema changes, bulk updates
- Network Requests: Send sensitive data, call production APIs
- Package Management: Global install/uninstall, update core dependencies
Some prompts in this project are inspired by the following excellent works:
- Linux.do - Share a universal Prompt for AI to generate only necessary code, welcome to optimize together~
- Linux.do - Don't worry about claude code degradation, using agent and command combination to break down tasks in detail may help you
- Linux.do - cursor rapid development rules
Thanks to these community contributors for sharing!
MIT License
If this project helps you, please give me a ⭐️ Star!