Skip to main content
Reference

Configurations, Environment Variables, and File Paths

Comprehensive reference of all Qoder CLI configuration items, default values, environment variables, and file paths

This page lists all configuration groups, key fields, default values, and restart requirements for settings.json, along with supported environment variables. For configuration file layering and merging rules, see Configuration Files and Application Order. Configuration file locations:
LevelPath
User Level~/.qoder/settings.json
Project-Level<project>/.qoder/settings.json
Local Level<project>/.qoder/settings.local.json
JSON Schema is available for editor auto-completion, located in the project schemas/settings.schema.json.

Top-Level Configurations

Configuration ItemTypeDefaultRestartDescription
mcpServersobject{}YesMCP server configuration. See MCP reference.
outputStylestringNoneYesActive output style name. Compatible with general.outputStyle syntax, top-level takes precedence.
languagestringNoneYesPreferred language for AI responses (e.g., "Chinese").
vpcInstanceNamestringNoneYesVPC Private Deployment instance name (CN edition only).
agentstringNoneYesAgent name used by the main thread.
enabledPluginsobject{}YesPlugin enablement mapping (plugin ID → true/false). See Plugins.
hooksobject{}NoEvent-based Hooks configuration. See Hooks reference.

general (General)

Configuration ItemTypeDefaultRestartDescription
general.preferredEditorstringNoneNoPreferred editor for opening files.
general.vimModebooleanfalseNoEnable Vim Keybindings.
general.defaultPermissionModeenumdefaultNoDefault Permission Mode: default/accept_edits/plan/auto/bypass_permissions/dont_ask.
general.enableAutoUpdatebooleantrueNoEnable auto-updates.
general.enableNotificationsbooleanfalseNoEnable run event notifications.
general.maxAttemptsnumber10NoMaximum retry attempts for main conversational model requests (up to 10).
general.retryFetchErrorsbooleantrueNoAuto-retry on network request exceptions such as fetch failed.
general.fileCheckpointing.enabledbooleantrueYesEnable file checkpoints (code rollback).
general.plan.enabledbooleantrueYesEnable Plan Mode.
general.plan.directorystringSystem temp directoryYesDirectory for storing plan artifacts.
general.plan.modelRoutingbooleantrueNoAuto-switch models during Plan/implementation phases.
general.sessionRetention.enabledbooleantrueNoEnable automatic session cleanup.
general.sessionRetention.maxAgestring30dNoAutomatically delete sessions older than this duration.
general.sessionRetention.minRetentionstring1dNoMinimum retention period (safety lower bound).

output (Output)

Configuration ItemTypeDefaultDescription
output.formatenumtextCLI output format: text or json.

ui (UI)

Configuration ItemTypeDefaultRestartDescription
ui.themestringNoneNoColor theme name.
ui.autoThemeSwitchingbooleantrueNoAuto-switch Light and Dark Theme based on terminal background.
ui.terminalBackgroundPollingIntervalnumber60NoTerminal background color polling interval (seconds).
ui.customThemesobject{}NoCustom theme definitions.
ui.inlineThinkingModeenumfullNoinline thinking display: off/full.
ui.dynamicWindowTitlebooleantrueNoUpdate window title with Status Icon.
ui.hideBannerbooleanfalseNoHide Startup banner.
ui.hideFooterbooleanfalseNoHide Footer.
ui.hideTipsbooleanfalseNoHide prompts.
ui.showLineNumbersbooleantrueNoShow Line number in conversations.
ui.compactToolOutputbooleantrueNoCompact display for tool output.
ui.copyFullResponsebooleanfalseNo/copy always copies the full response.
ui.loadingPhrasesenumoffNoLoading display: tips/witty/all/off.
ui.errorVerbosityenumlowNoRecoverable error verbosity: low/full.
ui.customWittyPhrasesstring[][]NoCustom loading phrases.
ui.footer.*object{}NoFooter item configuration (items/showLabels/hideCWD/hideModelInfo, etc.).
ui.rotatingInfoLine.enabledbooleantrueNoCarousel info line above the input box.
ui.rotatingInfoLine.intervalMsnumber4000NoCarousel interval in milliseconds.
ui.useAlternateBufferbooleanfalseYesUse alternate buffer.
ui.accessibility.screenReaderbooleanfalseYesScreen Reader Mode, outputs plain text.
ui.showMemoryUsagebooleanfalseNoDisplay memory usage information in the UI.
ui.showSpinnerbooleantrueNoShow loading animation during operations.
ui.terminalBufferbooleantrueYesUse the new Terminal Buffer architecture for rendering.
ui.renderProcessbooleantrueYesEnable Ink Render Process.
ui.incrementalRenderingbooleantrueYesincremental rendering, reduces flickering but may cause rendering artifacts; only supported when ui.useAlternateBuffer is enabled.

model / modelConfigs (Models)

Configuration ItemTypeDefaultRestartDescription
model.namestringNoneNoconversational model.
model.reasoningEffortenumNoneNoReasoning Effort: disabled/off/none/low/medium/high/xhigh/max.
model.contextWindownumberNoneNoExplicit Context Window (tokens).
model.maxSessionTurnsnumber-1NoMaximum turns to retain in session, -1 for unlimited.
model.summarizeToolOutputobjectNoneNoSet output summary token budget per tool.
modelConfigs.aliasesobjectBuilt-inNoModel Configuration Alias presets.
modelConfigs.customAliasesobject{}NoCustom aliases, merged to override built-in ones.
modelConfigs.overridesarray[]NoApply configuration overrides based on matching conditions (primary key is model or alias); the most specific match takes effect.
modelConfigs.customOverridesarray[]NoCustom overrides, merged and appended with built-in overrides.
modelConfigs.customModelsarray[]YesBYOK Custom Models. See Custom Models.

context (Context)

Configuration ItemTypeDefaultRestartDescription
context.fileNamestring/string[]AGENTS.mdNoContext file names loaded into memory.
context.importFormatenumNoneNoMemory import format: tree/flat.
context.discoveryMaxDirsnumber200NoMaximum number of directories for Memory discovery.
context.memoryBoundaryMarkersstring[]['.git']YesBoundary markers for upward memory discovery.
context.loadMemoryFromIncludeDirectoriesbooleanfalseNoLoad memory from Additional trusted directories.
context.fileFiltering.respectGitIgnorebooleantrueYesFollow .gitignore during search.
context.fileFiltering.enableRecursiveFileSearchbooleantrueYesRecursive search during @ reference completion.
agentsMdExcludesstring[][]YesExclude project-level / local-level memory files by glob. Top-level key, supports manual configuration only.

tools (Tools)

Configuration ItemTypeDefaultRestartDescription
tools.sandboxboolean/string/objectNoneYesSandbox Execution Environment. See Sandbox.
tools.sandboxAllowedPathsstring[][]YesAdditional accessible paths for the sandbox.
tools.sandboxNetworkAccessbooleanfalseYesWhether the sandbox is allowed network access.
tools.shell.pagerstringcatNoShell output paging command.
tools.shell.inactivityTimeoutnumber300NoShell no-output timeout in seconds.
tools.corestring[]NoneYesBuilt-in tool Allowlist.
tools.excludestring[]NoneYesTool names excluded from discovery.
tools.useRipgrepbooleantrueNoUse ripgrep for content search.
tools.disableLLMCorrectionbooleantrueYesDisable LLM error correction for editing tools.

mcp (MCP)

Configuration ItemTypeDefaultRestartDescription
mcp.allowedstring[]NoneYesAllowed MCP server list.
mcp.excludedstring[]NoneYesExcluded MCP server list.
mcp.enableAllProjectMcpServersbooleanfalseYesAuto-approve all project-level MCP servers.
mcp.enabledProjectMcpServersstring[][]YesList of individually approved project-level MCP server names.
mcp.lazyLoadbooleanfalseYesLazy load MCP tools (exposes Meta Tool).

security (Security)

Configuration ItemTypeDefaultRestartDescription
security.folderTrust.enabledbooleantrueYesEnable Folder Trust.
security.toolSandboxingbooleanfalseYestool-level sandbox isolation.
security.disableYoloModebooleanfalseYesDisable bypass_permissions (YOLO) Permission Mode.
security.blockGitExtensionsbooleanfalseYesBlock installing/loading extensions from Git.
security.allowedExtensionsstring[][]YesExtension source regex Allowlist.
security.environmentVariableRedaction.enabledbooleanfalseYesEnable Environment Variable Masking for variables that may contain secrets.
security.enableConsecabooleanfalseYesEnable context-aware security check.

permissions (Permissions)

Configuration ItemTypeDefaultRestartDescription
permissions.allowstring[][]NoList of automatically allowed permission rules. For rule syntax, see Permissions and Directory Trust.
permissions.askstring[][]NoList of permission rules requiring confirmation.
permissions.denystring[][]NoList of always denied permission rules.
permissions.additionalDirectoriesstring[][]NoAdditional trusted directories added to workspace context (corresponding to /add-dir).
permissions.trustDirectoriesstring[][]NoDirectories explicitly trusted by the user; stored in user-level configuration and not overridden by project-level configuration.
autoModeobject{}NoAuto mode classifier soft-steering rules (allow/soft_deny/environment). Top-level key, read only from user-level and local configurations.
allowManagedPermissionRulesOnlybooleanfalseNoUse only Managed Policy permission rules. Top-level key, primarily used for organizational managed policies.

privacy / aiCodeStatistics (Privacy)

Configuration ItemTypeDefaultRestartDescription
privacy.usageStatisticsEnabledbooleantrueNoShare usage data; turn off to enter Privacy mode.
aiCodeStatistics.enabledbooleantrueYesRecord and report AI-generated code statistics.

advanced (Advanced)

Configuration ItemTypeDefaultRestartDescription
advanced.autoConfigureMemorybooleantrueYesAuto-configure Node.js memory limit.
advanced.dnsResolutionOrderstringNoneYesDNS resolution order.
advanced.excludedEnvVarsstring[]['DEBUG','DEBUG_MODE']NoEnvironment variables excluded from project context.
agents.overridesobject{}YesOverride configuration by Agent name (enablement, tools, models, run limits, etc.). For fields, see Subagent.

statusLine (Status Bar)

Configuration ItemTypeDefaultDescription
statusLine.typestringcommandStatus bar type.
statusLine.commandstring""Shell command to generate the status bar, receives session data JSON via stdin.
statusLine.paddingnumber0Number of horizontal padding characters.
statusLine.colorsobject{}Custom paragraph colors for the built-in default status bar (e.g., model, branch, separator).

Environment Variables

Environment VariableDescription
QODER_PERSONAL_ACCESS_TOKENPersonal Access Token (PAT). When set, PAT authentication is used automatically.
QODER_CONFIG_DIRUser configuration directory location (default: ~/.qoder).
QODER_MODELSpecifies the model to use.
QODER_WORKING_DIRWorking Directory.
QODER_SESSION_IDSession ID.
QODER_SESSION_NAMESession name.
QODER_PERMISSION_MODEPermission Mode.
QODER_APPEND_SYSTEM_PROMPTAppends to the System Prompt.
QODER_MCP_LAZYEnables MCP Lazy Loading when set to 1.
QODER_SANDBOXSandbox command or flag.
QODER_SANDBOX_IMAGECustom Sandbox Image.
QODER_SANDBOX_IMAGE_DEFAULTDefault Sandbox Image.
QODER_SANDBOX_PROXY_COMMANDInternal proxy command for the sandbox.
SANDBOXInjected by the sandbox environment to detect if already inside a sandbox to avoid nesting (usually does not need to be set manually).
QODER_ASR_URLSpeech recognition service URL.
QODER_SUBAGENT_MODELModel used by Subagents.
QODER_MEMORYEnables Auto-memory when set to 1 (only applies to interactive sessions).
QODER_MEMORY_USEREnables user-level Auto-memory when set to 1; only takes effect when QODER_MEMORY is enabled.

Network and Proxy

Environment VariableDescription
HTTP_PROXY / http_proxyProxy address for HTTP requests.
HTTPS_PROXY / https_proxyProxy address for HTTPS requests.
NO_PROXY / no_proxyComma-separated list of hosts to bypass the proxy.
NODE_EXTRA_CA_CERTSPath to an additional CA certificate file (PEM format).
SSL_CERT_FILESpecifies the path to a trusted certificate file for Self-Signed Certificate or Enterprise root certificate environments.

Next Steps