Key insight: Zero runtime dependencies — everything bundled into single cli.js. Optional: @img/sharp-* for image processing. Source code is closed — "Want to see the unminified source? We're hiring!"Không có phụ thuộc runtime — mọi thứ đóng gói vào 1 file cli.js. Tùy chọn: @img/sharp-* để xử lý ảnh. Mã nguồn không công khai — "Muốn xem mã nguồn gốc? Chúng tôi đang tuyển dụng!"
policySettings > flagSettings > localSettings > projectSettings > userSettings
disableAllHooks, allowManagedHooksOnly
"toolName": "allow|deny|ask"
dangerouslyDisableSandbox: true
| MethodPhương thức | DetailChi tiết |
|---|---|
| API Key | Direct Anthropic API keyKhóa API Anthropic trực tiếp |
| OAuth Token | CLAUDE_CODE_OAUTH_TOKEN env var |
| Token File | CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR |
| Interactive | claude auth login (browser OAuth flow)Đăng nhập qua trình duyệt |
| Setup | claude setup-token |
| FeatureTính năng | DetailChi tiết |
|---|---|
| Context | Fresh context (no history inherited from parent)Ngữ cảnh mới (không kế thừa lịch sử từ agent cha) |
| Model Selection | sonnet | opus | haiku per-agentChọn model cho mỗi agent |
| Isolation | Git worktree (isolation: "worktree")Cách ly bằng Git worktree |
| Execution | Sync (foreground) or Async (background)Đồng bộ (foreground) hoặc Bất đồng bộ (background) |
| Communication | SendMessage between agents (by name)Gửi tin nhắn giữa các agent (theo tên) |
| Permission | acceptEdits | bypassPermissions | plan | dontAsk |
| Team | team_name for multi-team orchestrationĐiều phối nhiều nhóm agent |
| Tracking | Token usage, duration, tool count per agentSố token, thời gian, số lần gọi công cụ mỗi agent |
| PriorityƯu tiên | LevelCấp độ | LocationVị trí | ScopePhạm vi |
|---|---|---|---|
| 1 (highest) | Policy (Managed) | Organization policy | Overrides everythingGhi đè mọi thứ |
| 2 | CLI Flags | Command-line arguments | Session |
| 3 | Local | .claude/settings.local.json | Project (gitignored) |
| 4 | Project | .claude/settings.json | Project (shared) |
| 5 (lowest) | User | ~/.claude/settings.json | Global |
| Command | DescriptionMô tả |
|---|---|
claude | Interactive REPL modeChế độ tương tác REPL |
claude --bare | Simple mode (CLAUDE_CODE_SIMPLE=1)Chế độ đơn giản |
claude remote-control | Remote control / bridge modeChế độ điều khiển từ xa |
claude computer-use | MCP computer vision integrationTích hợp computer vision qua MCP |
claude --tmux | Terminal multiplexer modeChế độ chia terminal |
claude --worktree | Git worktree workspace modeChế độ workspace worktree |
claude --update | Self-update mechanismTự cập nhật |
claude auth login | Browser OAuth flowĐăng nhập qua trình duyệt |
claude setup-token | API key setupThiết lập khóa API |