Back to onyxcode.app
Documentation

Settings reference for Onyx Code

Every Onyx setting, grouped by what it controls, with its default.

Applies to the current releaseReference

Where Onyx settings live

Every setting lives under the unified Onyx Codeparent 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.
onyx.privacy.activityLog.enabledtrueMaster toggle for the audit log.
onyx.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 promptSanitizersettings 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~/.onyxcode/models/Where downloaded GGUF files live.
onyxcode.ai.port12345Bundled chat server port.
onyxcode.ai.embeddingPort12346Bundled embedding server port.
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.
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.
onyxcode.ai.rag.enabledtrue
onyxcode.ai.rag.excludePatterns(see code)Default excludes node_modules etc.

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.enabledtrue
onyxcode.index.maxFileSizeKB512
onyxcode.index.maxTotalFiles5000
onyxcode.index.concurrency4
onyxcode.index.persistEnabledtrue
onyxcode.index.watchEnabledtrue
onyxcode.index.excludeGlobs{}

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.