컨텐츠로 건너뛰기

개인화

취향과 워크플로에 맞춰 OpenCode를 사용자화하세요. 아래 설정은 이를 담고 있는 파일별로 정리되어 있습니다.

인터페이스 설정 → tui.json

터미널 UI에는 자체 설정 파일이 있습니다. ~/.config/opencode/tui.json(또는 tui.jsonc)을 만들고 필요한 키를 설정하세요.

테마

{
  "$schema": "https://opencode.ai/tui.json",
  "theme": "tokyonight"
}

Built-in themes include system, tokyonight, everforest, ayu, catppuccin, catppuccin-macchiato, gruvbox, kanagawa, nord, matrix, and one-dark. Custom themes are JSON files — see Themes.

키바인딩

{
  "$schema": "https://opencode.ai/tui.json",
  "keybinds": {
    "leader": "ctrl+x",
    "command_list": "ctrl+p",
    "theme_list": "<leader>t"
  }
}

Disable a binding with "none". See Keybinds for the full list.

알림·커서·스크롤

{
  "$schema": "https://opencode.ai/tui.json",
  "attention": {
    "enabled": true,
    "notifications": true,
    "sound": true,
    "volume": 0.4
  },
  "cursor": {
    "style": "blink",
    "blink": true
  },
  "scroll_speed": 3
}

에이전트와 런타임 설정 → opencode.json

기본 모델과 에이전트

{
  "$schema": "https://opencode.ai/config.json",
  "model": "anthropic/claude-sonnet-5-5",
  "small_model": "anthropic/claude-haiku-5-5",
  "default_agent": "build"
}

커스텀 에이전트

{
  "$schema": "https://opencode.ai/config.json",
  "agent": {
    "reviewer": {
      "description": "Reviews code for correctness",
      "model": "anthropic/claude-sonnet-5-5",
      "prompt": "You are a code reviewer.",
      "tools": { "write": false, "edit": false }
    }
  }
}

권한

{
  "$schema": "https://opencode.ai/config.json",
  "permission": {
    "edit": "ask",
    "bash": "ask",
    "webfetch": "allow"
  }
}

포매터와 LSP 서버

{
  "$schema": "https://opencode.ai/config.json",
  "formatter": true,
  "lsp": true
}

지시문·참조·워처

{
  "$schema": "https://opencode.ai/config.json",
  "instructions": ["CONTRIBUTING.md", ".cursor/ko/rules/*.md"],
  "watcher": {
    "ignore": ["**/generated/**"]
  }
}

ignore는 watcher 하위 항목이며 최상위 키가 아닙니다.

다음 단계

바꾸고 싶은 것파일페이지
색상과 커스텀 테마tui.jsonThemes
키보드 단축키tui.jsonKeybinds
모델·프로바이더·자격 증명opencode.jsonModels, Providers
에이전트와 프롬프트opencode.jsonAgents
도구 권한opencode.jsonPermissions
저장 시 자동 포맷opencode.jsonFormatters
언어 서버opencode.jsonLSP
MCP 서버opencode.jsonMCP servers
프로젝트 규칙AGENTS.mdRules