Sandbox
@UfoMiao/zcf

CLI setup for Claude Code and Codex workflows

ZCF is a zero-config setup tool that prepares Claude Code and Codex projects with workflow files, hooks, skills, and MCP-related settings. It works by copying and updating the repo’s starter files and config into your project through an interactive CLI or direct commands.

6,082 stars422 forksTypeScriptUpdated 17d ago
Who it's for

Builders who want their Claude Code or Codex setup to come with reusable project files, workflow rules, and assistant settings.

What it delivers

You can bootstrap a consistent agent workflow without stitching together config, prompts, and templates yourself.

What it does

Interactive setup menu

`npx zcf` opens a menu where you can choose what to install or update.

Full initialization

`npx zcf i` installs the full setup, including workflows, API/CCR, and MCP pieces.

Workflow updates

`npx zcf u` updates workflow files without doing a full reinstall.

Language switching

`npx zcf --lang zh-CN` changes the interface language.

Provider preset setup

`npx zcf i -s -p 302ai -k "sk-xxx"` runs a non-interactive setup with a provider preset and API key.

Reusable templates

The `templates/` folder contains starter files for Claude Code, Codex, common config, and skills.

Agent and project files

The repo includes project files such as `.claude/`, `AGENTS.md`, `CLAUDE.md`, and `.zcf/plan` for agent workflows.

How to get it

  1. 1Common commands
    npx zcf i        # Full initialization: install + workflows + API/CCR + MCP
    npx zcf u        # Update workflows only
    npx zcf --lang zh-CN  # Switch interface language (example)
  2. 2Non-interactive example (provider preset)
    npx zcf i -s -p 302ai -k "sk-xxx"

README

npm version npm downloads License Claude Code codecov JSDocs Ask DeepWiki

Banner

ZCF - Zero-Config Code Flow

English | 中文 | 日本語 | Changelog

✨ Full Documentation: ZCF Docs

Zero-config, one-click setup for Claude Code & Codex with bilingual support, intelligent agent system and personalized AI assistant

🚀 Quick Start

  • Recommended: npx zcf opens the interactive menu — pick what you need.
  • Common commands:
npx zcf i        # Full initialization: install + workflows + API/CCR + MCP
npx zcf u        # Update workflows only
npx zcf --lang zh-CN  # Switch interface language (example)
  • Non-interactive example (provider preset):
npx zcf i -s -p 302ai -k "sk-xxx"

More usage, options, and workflows: see documentation.

📖 Full Documentation

♥️ Sponsors

Sponsor AICodeMirror Thanks to AICodeMirror for sponsoring this project! AICodeMirror provides highly reliable official relay services for Claude, Codex, and Gemini, supporting enterprise-grade concurrency, fast invoice issuance, and dedicated 24/7 technical support. Official Codex access is available for as little as 7% of the standard price, with additional discounts on account top-ups! AICodeMirror also offers an exclusive benefit to users of the ZCF project: register through this link to receive 20% off your first top-up.


GLM

This project is sponsored by Z.ai, supporting us with their GLM CODING PLAN. GLM CODING PLAN is a subscription service designed for AI coding, starting at just $10/month. It provides access to their flagship GLM-5.2 model across 10+ popular AI coding tools (Claude Code, Cline, Roo Code, etc.), offering developers top-tier, fast, and stable coding experiences. Get 10% OFF GLM CODING PLAN:https://z.ai/subscribe?ic=8JVLJQFSKB


Sponsor code0 Thanks to code0.ai for sponsoring this project! code0.ai is an AI coding workspace for developers and technical teams, bringing together mainstream Agent coding capabilities such as Claude Code and Codex. It supports common development scenarios including code generation, project understanding, debugging, code review, and documentation. It is suitable for independent developers, Agent engineers, open-source maintainers, and enterprise R&D teams, with invoicing and team onboarding supported. Register through the exclusive link and contact customer support to claim free test credits and experience a more efficient AI coding workflow.


Sponsor Claude API Thanks to Claude API for sponsoring this project! Claude API is an official-channel API provider focused on Claude models. Built on Anthropic official keys and AWS Bedrock official channels, it provides a stable integration experience for Claude Code and Agent applications, supports the full Claude model family, and preserves official capabilities such as Tool Use and long context. The service is not reverse-engineered and does not downgrade model capabilities, making it suitable for heavy Claude Code users, Agent engineers, and enterprise technical teams. Register through the exclusive link and contact customer support to claim free test credits. Invoicing and team onboarding are also supported.


Sponsor PatewayAI PatewayAI is a high-quality model API relay service provider focused on official direct connections for serious AI developers, offering the full range of Claude and Codex series models. 100% official source supply with no adulteration — open to inspection. Transparent billing with token-level invoices auditable line by line. Enterprise-grade concurrency support with a dedicated management platform for enterprise customers, including formal contracts and invoicing. PatewayAI offers an exclusive benefit for ZCF users: register via this link to get $3 free trial credit, recharges as low as 60% off, with bilateral invite rewards up to $150!


Sponsor AI API 302.AI is a pay-as-you-go enterprise AI resource hub that offers the latest and most comprehensive AI models and APIs on the market, along with a variety of ready-to-use online AI applications.

PackyCodeThanks to PackyCode for sponsoring this project! PackyCode is a reliable and efficient API relay service provider, offering relay services for Claude Code, Codex, Gemini, and more. PackyCode provides special discounts for our software users: register using this link and enter the "zcf" promo code during recharge to get 10% off.
APIKEY.FUNThanks to APIKEY.FUN for sponsoring this project! APIKEY.FUN is a professional enterprise-grade AI relay platform dedicated to providing stable, efficient, and low-cost API access for both companies and individual developers. The platform supports popular models including Claude, OpenAI, and Gemini, with pricing as low as 7% of official rates. Register via this link to enjoy an exclusive offer of up to permanent 95% recharge pricing (5% off).
CrazyrouterThanks to Crazyrouter for sponsoring this project! Crazyrouter is a high-performance AI API aggregation gateway — one API key for 300+ models (GPT, Claude, Gemini, DeepSeek, and more). All models at 55% of official pricing with auto-failover, smart routing, and unlimited concurrency. Fully OpenAI-compatible, works seamlessly with Claude Code, Codex, and Gemini CLI. Crazyrouter offers an exclusive deal for ZCF users: register via this link to get $2 free credit instantly!
AIHubThanks to AIHub for sponsoring this project! AIHub is a high-availability AI model API relay platform for individual developers and enterprise teams, supporting Codex and Claude Code at prices below ~10% of official rates. Register via this link and enter the promo code ZCF to claim $3 trial credit.
SublyxThanks to Sublyx for sponsoring this project! Sublyx is a reliable AI API aggregation gateway, providing unified access to popular models including GPT, Claude, Gemini, Grok, and more through a single API key. It is compatible with Codex, Claude Code, OpenAI SDK, and other common AI development tools. Sublyx offers an exclusive benefit for our users: register via this link and use the promo code ZCF to receive an additional $10 in credit.

💬 Community

Join our Telegram group for support, discussions, and updates:

Telegram

🙏 Acknowledgments

This project is inspired by and incorporates work from:

Thanks to these community contributors for sharing!

❤️ Support & Sponsors

If you find this project helpful, please consider sponsoring its development. Your support is greatly appreciated!

ko-fi

AlipayWeChat Pay

Our Sponsors

A huge thank you to all our sponsors for their generous support!

【Corporate Sponsors】

  • 302.AI (first corporate sponsorship 🤠)

  • GLM (first AI model sponsorship 🤖)

  • PackyCode (first API proxy service sponsor 🧝🏻‍♀️)

  • APIKEY.FUN (enterprise AI relay sponsor 🎁)

  • AICodeMirror (official high-stability relay service sponsor 🪞)

  • UUCode (sponsored $100 proxy credits 💰)

  • Crazyrouter (AI API aggregation gateway sponsor 🚀)

  • PatewayAI (official direct-connect relay service sponsor 🛡️)

  • code0 (AI coding workspace sponsor 🎁)

  • Claude API (Claude official API provider sponsor 🎁)

  • AIHub (high-availability AI API relay platform sponsor 🎁)

  • Sublyx (AI API aggregation gateway sponsor 🎁)

【Individual Sponsors】

  • Tc (first sponsor)
  • Argolinhas (first ko-fi sponsor ٩(•̤̀ᵕ•̤́๑))
  • r*r (first anonymous sponsor 🤣)
  • **康 (first KFC sponsor 🍗)
  • *东 (first coffee sponsor ☕️)
  • 炼*3 (first Termux user sponsor 📱)
  • chamo101 (first GitHub issue sponsor 🎉)
  • 初屿贤 (first Codex user sponsor 🙅🏻‍♂️)
  • Protein (first 1688 sponsor 😏)
  • musistudio (first open source project author sponsor, the author of CCR 🤩)
  • *年 (first 100 CNY sponsor 💴)
  • BeatSeat (community expert 😎, provided $1000 Claude credits)
  • wenwen (community expert 🤓, provided daily $100 Claude&GPT credits)
  • 16°C coffee (My best friend 🤪, offered ChatGPT Pro $200 package)

Promotion Thanks

Thanks to the following authors for promoting this project:

📄 License

MIT License


🚀 Contributors



⭐️ Star History

If this project helps you, please give me a ⭐️ Star!

Star History Chart

Files in the repo

Repository payload31 top-level entries
  • .changeset
  • .claude
  • .github
  • .husky
  • .vscode
  • .zcf
  • bin
  • docs
  • src
  • templates
  • tests
  • .gitignore
  • AGENTS.md
  • build.config.ts
  • CHANGELOG.md
  • CLAUDE.md
  • CODE_OF_CONDUCT.md
  • commitlint.config.ts
  • CONTRIBUTING.md
  • cspell.json
  • eslint.config.ts
  • LICENSE
  • package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml
  • README_ja-JP.md
  • README_zh-CN.md
  • README.md
  • tsconfig.build.json
  • tsconfig.json
  • vitest.config.ts

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More tools

JuliusBrussee/
caveman

🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman

105k
1 add
MemPalace/
mempalace

The best-benchmarked open-source AI memory system. And it's free.

59k
stablyai/
orca

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

66k

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

132k

Never stop coding. Free MIT AI gateway: one endpoint, 352 providers (150+ free), 1200+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 550+ contributors

64k
headroomlabs-ai/
headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

71k