Step 1: Installing Factory Droid
macOS / Linux:Step 2: Configuring Z.AI GLM Models
1. Get Your Z.AI API Key
- Visit the Z.AI API Console
- Create an API key if you don’t have one
2. Configure Custom Models
Factory Droid uses BYOK (Bring Your Own Key) to connect with Z.AI’s GLM models. Configuration file location- macOS/Linux:
~/.factory/config.json - Windows:
%USERPROFILE%\.factory\config.json
- GLM Coding Plan users must use the Coding API endpoint:
https://api.z.ai/api/coding/paas/v4 - Standard plan users use the common API endpoint:
https://api.z.ai/api/paas/v4 - Replace
YOUR_ZAI_API_KEYwith your actual API key - API keys are stored locally and never uploaded to Factory servers
Step 3: Start Using Factory Droid
1. Launch Droid
Navigate to your project directory and start droid:2. Select Your Z.AI Model
Once droid is running, use the/model command to select your Z.AI GLM model:
3. Start Coding
Use droid for tasks like analyzing code, implementing features, fixing bugs, reviewing changes, and more.Key Features
Specification Mode- Press Shift+Tab to activate
- Describe features in plain language
- Get automatic planning before implementation
- Approve plans before any code changes
- Low: Edits and read-only commands
- Medium: Reversible commands (package installs, builds, local git, etc.)
- High: All commands except explicitly dangerous ones
- Cycle modes with Shift+Tab
- VS Code/Cursor/Windsurf: Auto-installs when you run
droid - JetBrains: Install plugin from marketplace
- Features: Interactive diffs, auto-shares current file/selection, quick launch
- Cost tracking with
/costcommand - SOC-2 compliant with enterprise deployment options
- Integrations: Jira, Notion, Slack, GitHub
- MCP (Model Context Protocol) support
- Transparent review workflow for every change
Resources
- Documentation: docs.factory.ai
- BYOK Configuration: docs.factory.ai/cli/byok/overview
- Support: support@factory.ai