# ~/.grok/config.toml — Grok Build user configuration # # Resolution order, highest priority first: # CLI flags → environment → requirements.toml/MDM → GROK_CONFIG overlay # → this file → managed_config.toml → built-in defaults # # Run `grok inspect` in a repository to see what was actually discovered. [models] # Set this deliberately. Leaving it unset is how a routine session ends up # on a model you did not intend to pay for. default = "grok-4.6" # recommended for coding; 500k context # web_search = "grok-4.3" # model used by the web_search tool [ui] # Baseline approval behaviour. Allow/ask/deny rules still apply on top. # ask (default) · acceptEdits · auto · dontAsk · bypassPermissions permission_mode = "auto" # Remember per-command approvals instead of re-asking every time. remember_tool_approvals = true # Which row is preselected on the first approval prompt. Leaving this on # "always_allow_all_sessions" makes it very easy to approve everything by # reflex — "allow_once" is the more considered default. default_selected_permission = "allow_once" screen_mode = "fullscreen" # or "minimal" simple_mode = true # readline editing; false gives vim keys [session] # Auto-compaction fires at this percentage of the context window. # Note this interacts with pricing: on a 500k-context model, 85% is 425k — # far past the 200k threshold where the whole request is billed at the # higher rate. Lower it if you care about the cliff more than the window. auto_compact_threshold_percent = 60 [memory] # Experimental, off by default. Stored as markdown under ~/.grok/memory/. # Workspace identity is the origin remote, so clones share a memory dir. enabled = false # [skills] # paths = ["~/work/shared-skills"] # [[marketplace.sources]] # name = "internal" # url = "https://example.internal/grok-marketplace.json" # A custom or self-hosted model, OpenAI-compatible: # [model.local] # model = "some-model-id" # base_url = "http://localhost:11434/v1" # api_key = "..."