Back to onyxcode.app
Documentation

Settings reference for Onyx Code

The main Onyx settings, grouped by what they control, with their defaults.

Applies to the current releaseReference

Where Onyx settings live

Every setting lives under the unified Onyx Code parent in the Settings Editor's left tree.

Privacy settings

KeyDefaultNotes
onyx.privacy.airGapModefalseBlock Onyx Code's own outbound network traffic. Extensions, the terminal and tasks, and stdio MCP servers are not covered.
onyx.privacy.workspaceAiDisabledfalseResource-scoped kill switch.
security.allowedUNCHosts[]Windows: the computers whose shares Onyx Code may reach, through a symbolic link in your project too. Any other such link shows in the Explorer and is not followed. Restart after changing it.
onyxcode.privacy.activityLog.enabledtrueMaster toggle for the audit log.
onyxcode.privacy.activityLog.retentionDays3651-3650.
onyxcode.privacy.promptSanitizer.enabledtruePre-send secret scan.
onyxcode.privacy.promptSanitizer.patterns{}Per-id overrides.
onyxcode.privacy.promptSanitizer.customPatterns[]User-defined regex patterns.
onyxcode.privacy.promptSanitizer.entropyThreshold4.5Shannon entropy threshold for the high-entropy fallback.
onyxcode.privacy.promptSanitizer.highEntropyFallbacktrueToggle the entropy fallback.

The five promptSanitizer settings wait for trust: a folder you haven't trusted can't set them in its own .vscode/settings.json, so a repository you clone can't turn the secret scan down. Your own settings apply until you trust it.

AI settings

KeyDefaultNotes
onyxcode.ai.modelsPath(empty)Where new model downloads go; empty is the onyxcode/models folder of the data folder. A full path: ~ is not expanded.
onyxcode.ai.embeddingModelPath(blank)Advanced override; auto-discover.
onyxcode.ai.embeddingPoolingModeper modelmean / cls / last.
onyxcode.ai.activeBackend(UI managed)Do not hand-edit. User settings only.
onyxcode.ai.externalServer.enabledfalseUse an external server instead of the bundled engine. User settings only: a project's settings can't set it.
onyxcode.ai.externalServer.urlhttp://localhost:11434The external server's address. User settings only.
onyxcode.ai.fimTemplateautoauto / qwen / deepseek / starcoder / codestral. A mode you name is the one autocomplete sends, for a renamed file or a fine-tune whose name matches none.
onyxcode.ai.speculativeDecoding.enabledtrue
onyxcode.ai.draftModelPath(blank)Auto-discover when blank.
onyxcode.ai.draftMax82-16 speculative tokens.
onyxcode.ai.inferenceBackendautoAI processor: auto / gpu / cpu.
onyxcode.ai.engineUpdatesautoEngine updates between releases: auto / notify / off. Never runs in Air-Gap Mode.
onyxcode.ai.gpuLayersautoAdvanced: number of layers to offload to GPU.

Chat settings

KeyDefaultNotes
onyxcode.chat.enabledtrueShow the panel.
onyxcode.chat.maxTokens4096Max response length.
onyxcode.chat.temperature0.70-2.
onyxcode.chat.repeatPenalty1.11.0 disables.
onyxcode.chat.warnOnLightModeltrueOnce-per-session notice.
onyxcode.chat.applyModeautoauto (diff editor) / manual (buttons).
onyxcode.chat.contextWindowautoauto or numeric override.
onyxcode.chat.gitDiffModeautoauto / never.
onyxcode.chat.gitDiffMaxBytes4096Cap on the injected git diff.
onyxcode.chat.autoSummarizetrueAuto-condense old turns at ~70% context.
onyxcode.chat.instructionsFile.onyx/instructions.mdPath probed for project instructions.
onyxcode.chat.instructionsMaxBytes4096Cap on the injected instructions file, in characters (comments left out).

Agent settings

KeyDefaultNotes
onyxcode.agent.modeaskplan / ask / editAuto / auto.
onyxcode.agent.alwaysAllow.fileReadtrue
onyxcode.agent.alwaysAllow.fileWritefalse
onyxcode.agent.alwaysAllow.shellExecfalse
onyxcode.agent.alwaysAllow.mcp[]Strings of <server>:<tool>.

All five wait for trust: a folder you haven't trusted can't set them in its own .vscode/settings.json, so a repository you clone can't choose the agent mode or add a tool that runs without asking. Your own settings apply until you trust it.

Autocomplete settings

KeyDefaultNotes
onyxcode.autocomplete.enabledtrue
onyxcode.autocomplete.multiLinetrue
onyxcode.autocomplete.crossFileContexttrue
onyxcode.autocomplete.smartTriggertrue
onyxcode.autocomplete.predictiveEditstrue
onyxcode.autocomplete.debounceMs400
onyxcode.autocomplete.maxTokens128Provider also stops at \n\n.
onyxcode.autocomplete.temperature0.1
onyxcode.autocomplete.nextEditPrediction.enabledtrueMaster toggle for Zeta next-edit predictions.
onyxcode.autocomplete.nextEditPrediction.modelPath(blank)Explicit Zeta GGUF path; auto-discover when blank.

Codebase Index settings

KeyDefaultNotes
onyxcode.index.enabledtrueOff, nothing is indexed and chat gets no code by semantic search; it can still read and search your files with its tools (.onyxnoai keeps a file from AI). Takes effect at once: off, the index leaves memory; on again, a run starts.
onyxcode.index.maxFileSizeKB512
onyxcode.index.maxTotalFiles5000
onyxcode.index.concurrency4
onyxcode.index.persistEnabledtrue
onyxcode.index.watchEnabledtrue
onyxcode.index.excludeGlobs{}Paths to leave out of the index, on top of .gitignore, including when a file is saved.

Git Helpers settings

KeyDefaultNotes
onyxcode.git.commitMessageFormatconventionalOr freeform.
onyxcode.git.maxDiffBytes327681 KB - 256 KB.
onyxcode.git.appendSignaturetrueAppend "Drafted with Onyx Code".

Change nothing and it still works

Defaults are chosen so the private option is the one you get without configuring anything.

Free tier, no account, no sign-up, no telemetry. macOS, Windows and Linux.