CodeWork
Customize

Settings

The keys of settings.jsonc, where CodeWork looks for it, and how user and project settings combine.

You configure CodeWork with settings.jsonc files. Comments and trailing commas are allowed. When there’s no .jsonc file, CodeWork reads a plain settings.json.

Where settings live

LayerFileUse it for
User~/.codework/settings.jsoncYour defaults in every project
Project.codework/settings.jsoncWhat the whole team should get. Commit this file.

The project is the first folder with a .codework folder inside, even an empty one, starting from the session’s folder on your machine and moving up. CodeWork reads only that folder’s settings file and doesn’t search further up. ~/.codework never counts as a project. A session with no folder on your machine reads only the user layer.

The project layer is applied over the user layer. For model and retry fields, the project wins. The plugins and models lists from both layers are combined, user first.

CodeWork reads settings again before each model call, so a change applies without a restart. If a file exists but CodeWork can’t use it, CodeWork doesn’t skip it. It stops with an error that names the file and the key it didn’t accept.

--home moves the user layer along with the rest of the CodeWork home. --user-config-dir <dir> replaces just the user settings.jsonc and mcp.json with the ones in <dir>.

Example

.codework/settings.jsonc
{
	// Default model for every session in this project
	"model": {
		"provider": "openrouter",
		"id": "deepseek/deepseek-v4.1-flash",
		"thinkingLevel": "medium",
	},

	// Turn on the opt-in search tools and add a team plugin
	"plugins": [
		{ "plugin": "codework.tool.grep", "enabled": true },
		{ "plugin": "codework.tool.find", "enabled": true },
		"@acme/codework-tool-proc@1.2.0",
	],

	// Retry rate limits and outages a little longer than the default
	"retry": { "maxRetries": 5 },
}

Top-level keys

KeyTypeDescription
modelobjectThe default model and how to call it. See model.
modelsarrayExtra catalog entries. See Custom models.
pluginsarrayPlugins to load and configure. See Configure plugins.
retryobjectRetries for failed model requests. See retry.

MCP servers have their own file, mcp.json.

model

KeyDefaultDescription
provideropenaiProvider ID from the catalog
idgpt-5.6-lunaModel ID
thinkingLevelmediumoff, minimal, low, medium, high, xhigh, or max
toolExecutionsequentialparallel runs the tool calls from one model response at the same time
thinkingBudgetsThinking tokens per level, for models that take a token budget
optionsRequest options, below
providerOptionsOptions for one provider or model, below

Without any settings, CodeWork uses OpenAI’s gpt-5.6-luna with medium thinking. Each model supports only some of the thinking levels. See Thinking levels.

--provider, --model, and --thinking on codework run, and the pickers in your editor, override these for one session.

model.options

KeyDefaultDescription
temperatureSampling temperature, for models that accept it
maxTokensCap on output tokens per response
timeoutMs3600000Longest a single request may take
idleTimeoutMs300000Abort a response stream that sends nothing for this long, and retry it
maxRetries0Retries inside the provider’s SDK. Leave at 0 and use retry instead.
cacheRetentionPrompt caching: none, short, or long, on providers that support it
headersExtra HTTP headers sent with each request
baseURLSend requests to a different endpoint, such as a proxy
apiKeyThe environment variable holding the key, written "${NAME}". Never a literal key.
contextWindowCorrect the catalog’s context window for this model
protocolCorrect the wire protocol the catalog lists, such as openai-compatible

Any other key is passed to the provider as a provider-specific request option.

model.providerOptions

Options for one provider. Key them by provider ID, then by model: * for every model, a pattern with *, or an exact model ID. Each one takes the keys of model.options, plus thinkingLevel and toolExecution.

settings.jsonc
{
	"model": {
		"providerOptions": {
			"openrouter": {
				"*": { "cacheRetention": "long" },
				"deepseek/*": { "temperature": 0.6 },
				"deepseek/deepseek-v4.1-flash": { "thinkingLevel": "high" },
			},
		},
	},
}

They apply over model.options in that order: *, then patterns, then the exact ID, so the most specific one wins.

retry

When a request fails with a rate limit, an overload, a server error, a timeout, or a dropped connection, CodeWork waits and tries it again. Quota and billing errors are never retried.

KeyDefaultDescription
maxRetries3Attempts after the first. 0 turns retries off.
baseDelayMs2000Wait before the first retry; doubles after each one
maxDelayMs60000Longest wait. A server asking for longer fails the turn.