Hướng dẫn cấu hình settings.json của Claude Code
Hướng dẫn chi tiết cấu hình settings.json của Claude Code: env vars, permissions, hooks, plugins và các tùy chọn nâng cao cho developer.
Vị trí file settings.json
~/.claude/settings.json.claude/settings.json$schema và cấu trúc tổng quan
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"env": {},
"permissions": {},
"hooks": {},
"enabledPlugins": [],
"extraKnownMarketplaces": [],
"model": "",
"outputStyle": "concise",
"verbose": false
}Env Variables (env)
Các env vars phổ biến
Giải thích từng biến
Permissions (permissions)
Allow list
Deny list
Hooks (hooks)
Các lifecycle events
Event
Khi nào chạy
Cấu trúc hooks
Giải thích matcher
Plugins (enabledPlugins)
Các plugin phổ biến
Third-party marketplace
Các tùy chọn khác
Model và output
Tính năng
Hệ thống
Ví dụ thực chiến
Cấu hình tối thiểu cho developer
Cấu hình đầy đủ (full featured)
Tài liệu tham khảo
TrướcQuy tắc Permission và Bảo mật trong Claude CodeTiếp theoMở rộng Claude Code — Skills, Hooks, Subagents và MCP
Cập nhật lần cuối