Chuyển đến nội dung chính
Factory Droid là enterprise-grade AI coding agent chạy trong terminal và xử lý end-to-end development workflows. Hoạt động liền mạch với Coding Plan của VibeCodeCheap cho high-performance models với giá trị exceptional.

Bước 1: Cài đặt Factory Droid

curl -fsSL https://app.factory.ai/cli | sh

Bước 2: Cấu hình VibeCodeCheap Models

1. Lấy VibeCodeCheap API Key

  1. Truy cập VibeCodeCheap API Console
  2. Tạo API key nếu bạn chưa có

2. Configure Custom Models

Factory Droid sử dụng BYOK (Bring Your Own Key) để kết nối với models của VibeCodeCheap. Configuration file location:
  • macOS/Linux: ~/.factory/config.json
  • Windows: %USERPROFILE%\.factory\config.json
{
  "custom_models": [
    {
      "model_display_name": "claude-opus-4-5",
      "model": "claude-opus-4-5-20251101",
      "base_url": "https://api.vibecodecheap.com/v1/ai",
      "api_key": "your_api_key",
      "provider": "anthropic",
      "max_tokens": 64000
    },
    {
      "model_display_name": "claude-sonnet-4-5",
      "model": "claude-sonnet-4-5-20250929",
      "base_url": "https://api.vibecodecheap.com/v1/ai",
      "api_key": "your_api_key",
      "provider": "anthropic",
      "max_tokens": 64000
    }
  ]
}
Important notes:
  • Thay thế your_api_key bằng actual API key của bạn
  • API keys được stored locally và không bao giờ upload lên Factory servers

Bước 3: Bắt đầu sử dụng Factory Droid

1. Khởi chạy Droid

Navigate đến project directory và start droid:
cd /path/to/your/project
droid
Khi khởi chạy lần đầu, bạn sẽ được prompt sign in qua browser để kết nối với Factory’s services.

2. Chọn VibeCodeCheap Model

Khi droid đang chạy, sử dụng lệnh /model để chọn model của VibeCodeCheap:
/model
Custom VibeCodeCheap models của bạn sẽ xuất hiện trong section “Custom models” riêng biệt. Chọn model bạn đã cấu hình.

3. Bắt đầu Coding

Sử dụng droid cho các tasks như analyzing code, implementing features, fixing bugs, reviewing changes và nhiều hơn nữa.

Key Features

Specification Mode

  • Nhấn Shift+Tab để activate
  • Describe features bằng plain language
  • Get automatic planning trước khi implementation
  • Approve plans trước khi có bất kỳ code changes nào

Auto-Run Mode

  • Low: Edits và read-only commands
  • Medium: Reversible commands (package installs, builds, local git, etc.)
  • High: All commands ngoại trừ explicitly dangerous ones
  • Cycle modes với Shift+Tab

IDE Integration

  • VS Code/Cursor/Windsurf: Auto-installs khi bạn chạy droid
  • JetBrains: Install plugin từ marketplace
  • Features: Interactive diffs, auto-shares current file/selection, quick launch

AGENTS.md — Project Conventions

Document workflow của bạn tại repo root:
# Build & Test
- Test: `npm test`
- Build: `npm run build`

# Conventions
- TypeScript strict mode
- 100-char line limit
- Tests required for features
Droid tự động follow practices của team bạn.

Additional Features

  • Cost tracking với lệnh /cost
  • SOC-2 compliant với enterprise deployment options
  • Integrations: Jira, Notion, Slack, GitHub
  • MCP (Model Context Protocol) support
  • Transparent review workflow cho mọi change

Resources