# ycbuddy-config.json
yCrash reads its AI settings from a file named ycbuddy-config.json. Create that file in the upload directory (opens new window). Restart yCrash after you change it.
Each provider page shows the few properties you need to connect. This page lists every property the file accepts.
In the Optional column:
- Yes means you can leave the property out. yCrash uses the default.
- No means yCrash needs a value before it can call the provider. You can put that value in the file, or in the environment variable named in the description.
- A property that is required for one provider can be left out for the others.
| Property | Optional? | Default | Description |
|---|---|---|---|
llmProvider | Yes | gemini | Which provider yCrash calls. Use gemini, openai, azure-openai, claude, copilot, litellm, or bedrock. anthropic is accepted as claude. |
llmApiKey | No | None | The key for the provider. For Bedrock this is the AWS access key id. If the field is empty, yCrash reads LLM_API_KEY from environment variables. Copilot also reads COPILOT_GITHUB_TOKEN and GH_TOKEN. Bedrock also reads AWS_ACCESS_KEY_ID. |
llmEndpoint | No for Azure OpenAI and LiteLLM. Yes for the others. | None | Base address of the API, without a path such as /v1. If the field is empty, yCrash reads LLM_ENDPOINT from environment variables. Copilot uses https://api.githubcopilot.com when both are empty. |
llmModelName | Yes | gemini-3.6-flash | Model id yCrash sends. Set the id from your provider page. If you leave it out, yCrash sends gemini-3.6-flash. |
llmEmbeddingModelName | Yes | gemini-embedding-001 | Model used to find related knowledge-base articles. It does not write the summary. Use the name from your provider page. |
maxAllowedTokens | Yes | 20000 for OpenAI, Azure OpenAI, LiteLLM, and Bedrock. The model's context window for Gemini, Claude, and GitHub Copilot. | How much of the incident report yCrash includes. When you leave this property out, OpenAI, Azure OpenAI, LiteLLM, and Bedrock send at most 20,000 tokens. Gemini, Claude, and GitHub Copilot send the context window of the model from yCrash registry. An unknown model name on those three uses 128,000 tokens. |
llmMaxOutputTokens | Yes | 4096 for every provider | How long the answer is allowed to be. When you leave this property out, every provider uses 4,096. If you set a higher number and yCrash knows the model, it will not ask for more than that model's max output. The highest number this property accepts is 128000. |
allowContextAboveRegistry | Yes | false | Set to true to keep a maxAllowedTokens value larger than the context window of a model yCrash already knows. An unknown model name does not need this. |
llmTemperature | Yes | 0.2 | How much the answer is allowed to vary, from 0 to 2.0. Claude and Bedrock are kept at or below 1.0. |
llmReasoningEffort | Yes | none | How much reasoning the model should spend. Values are none, minimal, low, medium, high, xhigh, and max. For Claude, none and minimal are sent as low. |
llmSupportsImages | Yes | true | Screenshots can be sent with the chat request. Set false when the model accepts text only. |
llmStreamingEnabled | Yes | true | The answer is returned as it is generated. Set false to wait for the full answer. |
llmStreamingFormat | Yes | chunked | How a streamed answer is framed. Use chunked or sse. |
llmMaxRetries | Yes | 3 | How many times yCrash retries a failed request. |
llmTimeoutMs | Yes | 30000 | yCrash accepts this property and stores it. The current server does not use it to change how long a request waits. |
llmApiVersion | Yes | 2024-08-01-preview for Azure OpenAI | Azure OpenAI REST version. If the field is empty, yCrash reads LLM_API_VERSION, then uses 2024-08-01-preview. Leave it out for other providers. |
llmSecretKey | No for Bedrock. Yes for the others. | None | AWS secret access key when llmProvider is bedrock. If the field is empty, yCrash reads LLM_SECRET_KEY or AWS_SECRET_ACCESS_KEY. |
llmRegion | No for Bedrock. Yes for the others. | None | AWS region for Bedrock, such as us-west-2. If the field is empty, yCrash reads LLM_REGION, AWS_REGION, or AWS_DEFAULT_REGION. |
llmSessionToken | Yes | None | Temporary AWS session token for Bedrock. If the field is empty, yCrash reads LLM_SESSION_TOKEN or AWS_SESSION_TOKEN. |
memoryMaxMessages | Yes | 50 | yCrash accepts this property and stores it. The number of earlier messages included in the next request is llmChatHistoryMaxMessages. |
memoryStrategy | Yes | hybrid | Accepted values are hybrid, simple, token-window, and semantic. The current server stores the value and does not use it to change a request. |
enhancedMemoryEnabled | Yes | true | yCrash accepts this property and stores it. The current server does not use it to change a request. |
smartContextEnabled | Yes | true | yCrash accepts this property and stores it. The current server does not use it to change a request. |
advancedSummaryEnabled | Yes | true | yCrash accepts this property and stores it. The current server does not use it to change a request. |
advancedCompressionEnabled | Yes | true | yCrash accepts this property and stores it. The current server does not use it to change a request. |
autoOptimizeEnabled | Yes | true | yCrash accepts this property and stores it. The current server does not use it to change a request. |
optimizationIntervalMinutes | Yes | 60 | yCrash accepts this property and stores it. The current server does not use it to change a request. |
similarityThreshold | Yes | 0.7 | How close a knowledge-base article must be to the question before yCrash includes it. A higher number keeps fewer, closer articles. |
maxContextDocuments | Yes | 6 | How many knowledge-base articles yCrash may add to one request. |
chunkSize | Yes | 1000 | Size of each piece when yCrash splits a knowledge-base article for search. |
chunkOverlap | Yes | 200 | How much text neighboring pieces share, so a sentence is less likely to be cut in half. |
ragMaxSearchPasses | Yes | 1 | How many times yCrash searches the knowledge base for one question. 1 uses the question as typed. 2 searches again with a cleaned-up question. 3 also searches with a lower similarity threshold. |
llmChatHistoryMaxMessages | Yes | 12 | How many earlier user and assistant messages are included in the next request. |
geminiMinimizeThinking | Yes | true | Used when llmProvider is gemini. Gemini 2.5 is sent a thinking budget of 0. Gemini 3.6 and earlier Flash are sent minimal. Gemini 3.7 and 3.8 are sent low. |
geminiThinkingLevel | Yes | None | Used when llmProvider is gemini. Values are minimal, low, medium, and high. A value set here is sent even when geminiMinimizeThinking is false. |
httpClientPoolMaxTotal | Yes | 128 | Maximum open HTTP connections from the yCrash server to all hosts. |
httpClientPoolMaxPerRoute | Yes | 32 | Maximum open HTTP connections to one host. |
analysisTimeoutMs | Yes | 30000 | How long yCrash waits while analyzing an uploaded diagnostic file, in milliseconds. |
fileUploadMaxBytes | Yes | 104857600 | Largest chat file yCrash accepts, in bytes. 104857600 is 100 MB. |
pastedDiagnosticAnalysisEnabled | Yes | true | A pasted GC, thread, or heap dump in the chat box is analyzed the same way as an uploaded file. |
imageRelevanceCheckEnabled | Yes | true | yCrash checks a screenshot before accepting it. Photos that are not about the incident are rejected. |
imageRelevanceFailOpen | Yes | true | When the image check fails because of a timeout or an API error, yCrash still accepts the image. Set false to reject it. |
restAnalyzedRawExcerptPolicy | Yes | on_request | When a raw excerpt of a GC, thread, or heap file is added. never leaves it out. on_request adds it when the user asks to read the file. always adds it every time. |
restAnalyzedRawExcerptBytes | Yes | 16384 | Largest raw excerpt yCrash adds, in bytes. 16384 is 16 KB. |
quotaEnabled | Yes | false | Turns on the monthly request and token quotas below. |
quotaFreeMaxRequestsPerMonth | Yes | 300 | Monthly request limit for a free team when quotaEnabled is true. |
quotaFreeMaxTokensPerMonth | Yes | 300000 | Monthly token limit for a free team when quotaEnabled is true. |
quotaPremiumMaxRequestsPerMonth | Yes | 3000 | Monthly request limit for a premium team when quotaEnabled is true. |
quotaPremiumMaxTokensPerMonth | Yes | 1500000 | Monthly token limit for a premium team when quotaEnabled is true. |
securityAllowlistedDomains | Yes | None | Extra hostnames, separated by commas, that chat messages are allowed to mention. The built-in yCrash host list is always included. |
securityUrlHostCheckMode | Yes | relaxed | relaxed allows pasted links and blocks high-risk hosts. strict allows a link only when its host is on the allowlist. |