Documentation Index
Fetch the complete documentation index at: https://mintlify.com/GuaiZai233/FrostAgent/llms.txt
Use this file to discover all available pages before exploring further.
SettingsService lets you read and update FrostAgent’s environment variables at runtime through the management UI or directly via ConnectRPC, without restarting the process for variables that do not require a restart. Changes are persisted atomically to the .env file on disk and, where applicable, applied immediately to the running process via os.Setenv. The service is accessible under /frostagent.v1.SettingsService/.
Service base path
ListEnvVars
Returns the current values of all known environment variables. Secret values are automatically masked — all but the last four characters are replaced with* before the value is returned.
Request: ListEnvVarsRequest
No fields. Send {}.
Response: ListEnvVarsResponse
Array of all registered environment variables.
UpdateEnvVar
Updates a single environment variable in the.env file and sets it in the running process immediately. If the key already exists in .env, its line is updated in place; otherwise a new line is appended.
Request: UpdateEnvVarRequest
The environment variable name to update. Must not be empty.
The new value to set.
Whether the value should be treated as a secret. This field is informational; masking is determined by the server-side registry, not this flag.
UpdateEnvVarResponse
true if the update was written and applied successfully.Non-empty if
success is false, containing a human-readable error description.DeleteEnvVar
Removes a key from the.env file atomically and unsets it from the running process.
Request: DeleteEnvVarRequest
The environment variable name to remove. Must not be empty.
DeleteEnvVarResponse
true if the key was removed (or was already absent).Non-empty on failure.
GetRawEnvFile
Returns the complete, raw contents of the.env file as a single string. Useful for displaying or downloading the full configuration. If the file does not exist, content is an empty string.
Request: GetRawEnvFileRequest
No fields. Send {}.
Response: GetRawEnvFileResponse
The raw text of the
.env file, including comments and blank lines, exactly as stored on disk.UpdateRawEnvFile
Overwrites the entire.env file atomically with the provided content. The write is first made to a .env.tmp file and then renamed into place, guaranteeing that no partial writes are visible to other readers. In-process environment variables are not automatically reloaded; restart-required settings only take effect after a restart.
Request: UpdateRawEnvFileRequest
The complete new content of the
.env file. Use \n as the line separator.UpdateRawEnvFileResponse
true if the file was written successfully.Non-empty on failure, e.g. a filesystem permission error.
Managed environment variables
The following variables are registered in the server-sideknownEnvVars registry and are surfaced by ListEnvVars. Variables marked restart required are written to .env by UpdateEnvVar but only take effect after the process is restarted.
| Variable | Secret | Restart required | Description |
|---|---|---|---|
UPSTREAM_ENDPOINT | No | Yes | Upstream API endpoint URL (OpenAI-compatible) |
UPSTREAM_API_KEY | Yes | Yes | Upstream API authentication key |
CODER_API_KEY | Yes | Yes | Coder sub-agent API key |
LISTEN_ADDR | No | Yes | HTTP server listen address (default :8080) |
WS_LISTEN_ADDR | No | Yes | WebSocket server listen address (default 0.0.0.0:1234) |
SYSTEM_PROMPT | No | No | System prompt prepended to every conversation |
MODEL_NAME | No | Yes | Primary LLM model name |
VISUAL_MODEL_NAME | No | Yes | Vision model name (falls back to MODEL_NAME if empty) |
MAX_CONTEXT_MESSAGES | No | No | Maximum number of messages retained in context |
MAX_CONTEXT_CHARS | No | No | Approximate character limit for context before trimming |
WS_ALLOWED_ORIGINS | No | Yes | Allowed WebSocket Origin header values |
ENABLE_AT_IN_GROUP_MSG | No | No | Whether to prefix group replies with an @ mention |
Variables marked restart required — including
UPSTREAM_ENDPOINT, UPSTREAM_API_KEY, CODER_API_KEY, LISTEN_ADDR, WS_LISTEN_ADDR, MODEL_NAME, VISUAL_MODEL_NAME, and WS_ALLOWED_ORIGINS — are persisted to .env immediately, but the running engine reads them only at startup. Restart FrostAgent after changing any of these for the new values to take effect.