Nbility logoNbility Docs

Search documentation

Search guides and API reference content

ZCF is an enhancement tool for Claude Code and Codex. Its goal is to consolidate initial API setup, workflow templates, and MCP service integration into one command as much as possible.

If you do not have an active Nbility account and token yet, complete the Beginner's Guide first, then continue with this configuration.

What ZCF Can Do

Common uses include:

  • Quickly writing API provider configuration
  • Installing common development workflows
  • Connecting MCP services
  • Unifying language, templates, and output style

For users who want less manual configuration, this approach is more convenient.

Common Initialization Options

API Options

OptionPurpose
-p customUse a custom provider, commonly used for Nbility
-t api_keyEquivalent to the above method; use API Key auth
-k "sk-xxx"Pass your token
-u "https://api.nbility.dev/"Set the Nbility base URL
-M "claude-sonnet-4-5-20250929"Set the main model
-H "claude-haiku-4-5-20251001"Set the fast model

Example:

npx zcf i -s -t api_key -k "sk-xxx" -u "https://api.nbility.dev/" \
  -M "claude-sonnet-4-5-20250929" \
  -H "claude-haiku-4-5-20251001"

Workflow Options

OptionPurpose
-w allInstall all workflows
-w sixStepsWorkflow,gitWorkflowInstall only selected workflows
-w skipDo not install workflows

Typical options include commonTools, sixStepsWorkflow, featPlanUx, gitWorkflow, and bmadWorkflow.

MCP Service Options

OptionPurpose
-m allInstall all MCP services
-m context7,open-websearchInstall selected services only
-m skipSkip MCP configuration

Available services include context7, open-websearch, spec-workflow, mcp-deepwiki, Playwright, exa, and serena.

Other Common Options

OptionPurpose
-g zh-CNUse Chinese UI and Chinese output
-sDisable interactive prompts; useful for scripts
-r backupDecide how existing configuration is handled
-x falseDo not install extra status bar capability

Typical Command

For a quick initialization, start with:

npx zcf i -s -t api_key -k "sk-xxx" -u "https://api.nbility.dev/" -g zh-CN

Replace sk-xxx with the real token you got from /console/token.

Available Workflow Commands

After installation, these slash commands are usually available in Claude Code:

CommandPurpose
/zcf:workflowSix-stage development workflow
/zcf:featPlan and implement new features
/zcf:git-commitGenerate commit messages
/zcf:git-rollbackRoll back history
/zcf:git-worktreeManage worktrees
/zcf:bmad-initStart a more complete agile workflow

MCP Service Overview

MCP lets coding tools connect to external docs, search, and automation capabilities. ZCF includes these services:

ServiceDescriptionRequires extra key
context7Query latest library docs and examplesNo
open-websearchPerform web searchNo
spec-workflowOrganize work as requirements, design, and implementationNo
mcp-deepwikiView GitHub repository informationNo
PlaywrightBrowser automation and screenshotsNo
exaSemantic searchYes
serenaIDE-like code search experienceNo

Common uses:

  • context7: check latest API docs and avoid stale model suggestions
  • open-websearch: run web searches without connecting your own API
  • spec-workflow: break requirements and implementation into structured steps
  • Playwright: automate pages, fill forms, or capture screenshots

If you use exa, set this separately:

export EXA_API_KEY="your-api-key"

Configuration File Location

After installation, MCP configuration is usually written into ~/.claude/settings.json, with a structure like this:

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@context-labs/context7"]
    },
    "open-websearch": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-open-websearch"]
    }
  }
}

Tip: If you encounter MCP path or connection issues on Windows, run npx zcf again and enter the MCP configuration options so the tool can repair them automatically.

Update ZCF

To sync the latest workflow templates later, run:

npx zcf update

Or:

npx zcf u -s -g zh-CN

Updates mainly sync workflows and prompt templates. They usually do not overwrite your existing API integration settings.

FAQ

Will an Existing settings.json Be Overwritten?

ZCF creates a backup first and provides several handling strategies:

npx zcf i -s -r backup
npx zcf i -s -r merge
npx zcf i -s -r docs-only
npx zcf i -s -r skip

How Do I Switch Back to Manual Configuration?

ZCF-generated configuration is still standard file-based configuration. You can edit it manually. For the basic setup, review Getting Started.

What Node.js Version Is Required?

Confirm your local version is at least 18:

node --version