{
  "ok": true,
  "result": {
    "schema": {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "type": "object",
      "properties": {
        "meta": {
          "type": "object",
          "properties": {
            "lastTouchedVersion": {
              "type": "string"
            },
            "lastTouchedAt": {
              "anyOf": [
                {
                  "type": "string"
                },
                {}
              ]
            }
          },
          "additionalProperties": false
        },
        "env": {
          "type": "object",
          "properties": {
            "shellEnv": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "timeoutMs": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "additionalProperties": false
            },
            "vars": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "string"
              }
            }
          },
          "additionalProperties": {
            "type": "string"
          }
        },
        "wizard": {
          "type": "object",
          "properties": {
            "lastRunAt": {
              "type": "string"
            },
            "lastRunVersion": {
              "type": "string"
            },
            "lastRunCommit": {
              "type": "string"
            },
            "lastRunCommand": {
              "type": "string"
            },
            "lastRunMode": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "local"
                },
                {
                  "type": "string",
                  "const": "remote"
                }
              ]
            }
          },
          "additionalProperties": false
        },
        "diagnostics": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "flags": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "otel": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "endpoint": {
                  "type": "string"
                },
                "protocol": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "http/protobuf"
                    },
                    {
                      "type": "string",
                      "const": "grpc"
                    }
                  ]
                },
                "headers": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "string"
                  }
                },
                "serviceName": {
                  "type": "string"
                },
                "traces": {
                  "type": "boolean"
                },
                "metrics": {
                  "type": "boolean"
                },
                "logs": {
                  "type": "boolean"
                },
                "sampleRate": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "flushIntervalMs": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "additionalProperties": false
            },
            "cacheTrace": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "filePath": {
                  "type": "string"
                },
                "includeMessages": {
                  "type": "boolean"
                },
                "includePrompt": {
                  "type": "boolean"
                },
                "includeSystem": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "logging": {
          "type": "object",
          "properties": {
            "level": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "silent"
                },
                {
                  "type": "string",
                  "const": "fatal"
                },
                {
                  "type": "string",
                  "const": "error"
                },
                {
                  "type": "string",
                  "const": "warn"
                },
                {
                  "type": "string",
                  "const": "info"
                },
                {
                  "type": "string",
                  "const": "debug"
                },
                {
                  "type": "string",
                  "const": "trace"
                }
              ]
            },
            "file": {
              "type": "string"
            },
            "maxFileBytes": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "consoleLevel": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "silent"
                },
                {
                  "type": "string",
                  "const": "fatal"
                },
                {
                  "type": "string",
                  "const": "error"
                },
                {
                  "type": "string",
                  "const": "warn"
                },
                {
                  "type": "string",
                  "const": "info"
                },
                {
                  "type": "string",
                  "const": "debug"
                },
                {
                  "type": "string",
                  "const": "trace"
                }
              ]
            },
            "consoleStyle": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "pretty"
                },
                {
                  "type": "string",
                  "const": "compact"
                },
                {
                  "type": "string",
                  "const": "json"
                }
              ]
            },
            "redactSensitive": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "off"
                },
                {
                  "type": "string",
                  "const": "tools"
                }
              ]
            },
            "redactPatterns": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false
        },
        "update": {
          "type": "object",
          "properties": {
            "channel": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "stable"
                },
                {
                  "type": "string",
                  "const": "beta"
                },
                {
                  "type": "string",
                  "const": "dev"
                }
              ]
            },
            "checkOnStart": {
              "type": "boolean"
            },
            "auto": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "stableDelayHours": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 168
                },
                "stableJitterHours": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 168
                },
                "betaCheckIntervalHours": {
                  "type": "number",
                  "exclusiveMinimum": 0,
                  "maximum": 24
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "browser": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "evaluateEnabled": {
              "type": "boolean"
            },
            "cdpUrl": {
              "type": "string"
            },
            "remoteCdpTimeoutMs": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "remoteCdpHandshakeTimeoutMs": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "color": {
              "type": "string"
            },
            "executablePath": {
              "type": "string"
            },
            "headless": {
              "type": "boolean"
            },
            "noSandbox": {
              "type": "boolean"
            },
            "attachOnly": {
              "type": "boolean"
            },
            "defaultProfile": {
              "type": "string"
            },
            "snapshotDefaults": {
              "type": "object",
              "properties": {
                "mode": {
                  "type": "string",
                  "const": "efficient"
                }
              },
              "additionalProperties": false
            },
            "ssrfPolicy": {
              "type": "object",
              "properties": {
                "allowPrivateNetwork": {
                  "type": "boolean"
                },
                "dangerouslyAllowPrivateNetwork": {
                  "type": "boolean"
                },
                "allowedHostnames": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "hostnameAllowlist": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "additionalProperties": false
            },
            "profiles": {
              "type": "object",
              "propertyNames": {
                "type": "string",
                "pattern": "^[a-z0-9-]+$"
              },
              "additionalProperties": {
                "type": "object",
                "properties": {
                  "cdpPort": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 65535
                  },
                  "cdpUrl": {
                    "type": "string"
                  },
                  "driver": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "clawd"
                      },
                      {
                        "type": "string",
                        "const": "extension"
                      }
                    ]
                  },
                  "color": {
                    "type": "string",
                    "pattern": "^#?[0-9a-fA-F]{6}$"
                  }
                },
                "required": [
                  "color"
                ],
                "additionalProperties": false
              }
            }
          },
          "additionalProperties": false
        },
        "ui": {
          "type": "object",
          "properties": {
            "seamColor": {
              "type": "string",
              "pattern": "^#?[0-9a-fA-F]{6}$"
            },
            "assistant": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "maxLength": 50
                },
                "avatar": {
                  "type": "string",
                  "maxLength": 200
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "secrets": {
          "type": "object",
          "properties": {
            "providers": {
              "type": "object",
              "properties": {},
              "additionalProperties": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "source": {
                        "type": "string",
                        "const": "env"
                      },
                      "allowlist": {
                        "maxItems": 256,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Z][A-Z0-9_]{0,127}$"
                        }
                      }
                    },
                    "required": [
                      "source"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "source": {
                        "type": "string",
                        "const": "file"
                      },
                      "path": {
                        "type": "string",
                        "minLength": 1
                      },
                      "mode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "singleValue"
                          },
                          {
                            "type": "string",
                            "const": "json"
                          }
                        ]
                      },
                      "timeoutMs": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 120000
                      },
                      "maxBytes": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 20971520
                      }
                    },
                    "required": [
                      "source",
                      "path"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "source": {
                        "type": "string",
                        "const": "exec"
                      },
                      "command": {
                        "type": "string",
                        "minLength": 1
                      },
                      "args": {
                        "maxItems": 128,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 1024
                        }
                      },
                      "timeoutMs": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 120000
                      },
                      "noOutputTimeoutMs": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 120000
                      },
                      "maxOutputBytes": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 20971520
                      },
                      "jsonOnly": {
                        "type": "boolean"
                      },
                      "env": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      "passEnv": {
                        "maxItems": 128,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Z][A-Z0-9_]{0,127}$"
                        }
                      },
                      "trustedDirs": {
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "allowInsecurePath": {
                        "type": "boolean"
                      },
                      "allowSymlinkCommand": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "source",
                      "command"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "defaults": {
              "type": "object",
              "properties": {
                "env": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_-]{0,63}$"
                },
                "file": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_-]{0,63}$"
                },
                "exec": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_-]{0,63}$"
                }
              },
              "additionalProperties": false
            },
            "resolution": {
              "type": "object",
              "properties": {
                "maxProviderConcurrency": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 16
                },
                "maxRefsPerProvider": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 4096
                },
                "maxBatchBytes": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 5242880
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "auth": {
          "type": "object",
          "properties": {
            "profiles": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "object",
                "properties": {
                  "provider": {
                    "type": "string"
                  },
                  "mode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "api_key"
                      },
                      {
                        "type": "string",
                        "const": "oauth"
                      },
                      {
                        "type": "string",
                        "const": "token"
                      }
                    ]
                  },
                  "email": {
                    "type": "string"
                  }
                },
                "required": [
                  "provider",
                  "mode"
                ],
                "additionalProperties": false
              }
            },
            "order": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "cooldowns": {
              "type": "object",
              "properties": {
                "billingBackoffHours": {
                  "type": "number",
                  "exclusiveMinimum": 0
                },
                "billingBackoffHoursByProvider": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  }
                },
                "billingMaxHours": {
                  "type": "number",
                  "exclusiveMinimum": 0
                },
                "failureWindowHours": {
                  "type": "number",
                  "exclusiveMinimum": 0
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "acp": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "dispatch": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            },
            "backend": {
              "type": "string"
            },
            "defaultAgent": {
              "type": "string"
            },
            "allowedAgents": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "maxConcurrentSessions": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "stream": {
              "type": "object",
              "properties": {
                "coalesceIdleMs": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "maxChunkChars": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "additionalProperties": false
            },
            "runtime": {
              "type": "object",
              "properties": {
                "ttlMinutes": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "installCommand": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "models": {
          "type": "object",
          "properties": {
            "mode": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "merge"
                },
                {
                  "type": "string",
                  "const": "replace"
                }
              ]
            },
            "providers": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "object",
                "properties": {
                  "baseUrl": {
                    "type": "string",
                    "minLength": 1
                  },
                  "apiKey": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "const": "env"
                              },
                              "provider": {
                                "type": "string",
                                "pattern": "^[a-z][a-z0-9_-]{0,63}$"
                              },
                              "id": {
                                "type": "string",
                                "pattern": "^[A-Z][A-Z0-9_]{0,127}$"
                              }
                            },
                            "required": [
                              "source",
                              "provider",
                              "id"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "const": "file"
                              },
                              "provider": {
                                "type": "string",
                                "pattern": "^[a-z][a-z0-9_-]{0,63}$"
                              },
                              "id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "source",
                              "provider",
                              "id"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "const": "exec"
                              },
                              "provider": {
                                "type": "string",
                                "pattern": "^[a-z][a-z0-9_-]{0,63}$"
                              },
                              "id": {
                                "type": "string",
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$"
                              }
                            },
                            "required": [
                              "source",
                              "provider",
                              "id"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      }
                    ]
                  },
                  "auth": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "api-key"
                      },
                      {
                        "type": "string",
                        "const": "aws-sdk"
                      },
                      {
                        "type": "string",
                        "const": "oauth"
                      },
                      {
                        "type": "string",
                        "const": "token"
                      }
                    ]
                  },
                  "api": {
                    "type": "string",
                    "enum": [
                      "openai-completions",
                      "openai-responses",
                      "openai-codex-responses",
                      "anthropic-messages",
                      "google-generative-ai",
                      "github-copilot",
                      "bedrock-converse-stream",
                      "ollama"
                    ]
                  },
                  "headers": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "authHeader": {
                    "type": "boolean"
                  },
                  "models": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "api": {
                          "type": "string",
                          "enum": [
                            "openai-completions",
                            "openai-responses",
                            "openai-codex-responses",
                            "anthropic-messages",
                            "google-generative-ai",
                            "github-copilot",
                            "bedrock-converse-stream",
                            "ollama"
                          ]
                        },
                        "reasoning": {
                          "type": "boolean"
                        },
                        "input": {
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "string",
                                "const": "text"
                              },
                              {
                                "type": "string",
                                "const": "image"
                              }
                            ]
                          }
                        },
                        "cost": {
                          "type": "object",
                          "properties": {
                            "input": {
                              "type": "number"
                            },
                            "output": {
                              "type": "number"
                            },
                            "cacheRead": {
                              "type": "number"
                            },
                            "cacheWrite": {
                              "type": "number"
                            }
                          },
                          "additionalProperties": false
                        },
                        "contextWindow": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "maxTokens": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "headers": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "string"
                          }
                        },
                        "compat": {
                          "type": "object",
                          "properties": {
                            "supportsStore": {
                              "type": "boolean"
                            },
                            "supportsDeveloperRole": {
                              "type": "boolean"
                            },
                            "supportsReasoningEffort": {
                              "type": "boolean"
                            },
                            "supportsUsageInStreaming": {
                              "type": "boolean"
                            },
                            "supportsStrictMode": {
                              "type": "boolean"
                            },
                            "maxTokensField": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "const": "max_completion_tokens"
                                },
                                {
                                  "type": "string",
                                  "const": "max_tokens"
                                }
                              ]
                            },
                            "thinkingFormat": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "const": "openai"
                                },
                                {
                                  "type": "string",
                                  "const": "zai"
                                },
                                {
                                  "type": "string",
                                  "const": "qwen"
                                }
                              ]
                            },
                            "requiresToolResultName": {
                              "type": "boolean"
                            },
                            "requiresAssistantAfterToolResult": {
                              "type": "boolean"
                            },
                            "requiresThinkingAsText": {
                              "type": "boolean"
                            },
                            "requiresMistralToolIds": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "baseUrl",
                  "models"
                ],
                "additionalProperties": false
              }
            },
            "bedrockDiscovery": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "region": {
                  "type": "string"
                },
                "providerFilter": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "refreshInterval": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "defaultContextWindow": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "defaultMaxTokens": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "nodeHost": {
          "type": "object",
          "properties": {
            "browserProxy": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "allowProfiles": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "agents": {
          "type": "object",
          "properties": {
            "defaults": {
              "type": "object",
              "properties": {
                "model": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "primary": {
                          "type": "string"
                        },
                        "fallbacks": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                },
                "imageModel": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "primary": {
                          "type": "string"
                        },
                        "fallbacks": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                },
                "models": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "alias": {
                        "type": "string"
                      },
                      "params": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      "streaming": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "workspace": {
                  "type": "string"
                },
                "repoRoot": {
                  "type": "string"
                },
                "skipBootstrap": {
                  "type": "boolean"
                },
                "bootstrapMaxChars": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "bootstrapTotalMaxChars": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "userTimezone": {
                  "type": "string"
                },
                "timeFormat": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "auto"
                    },
                    {
                      "type": "string",
                      "const": "12"
                    },
                    {
                      "type": "string",
                      "const": "24"
                    }
                  ]
                },
                "envelopeTimezone": {
                  "type": "string"
                },
                "envelopeTimestamp": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "on"
                    },
                    {
                      "type": "string",
                      "const": "off"
                    }
                  ]
                },
                "envelopeElapsed": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "on"
                    },
                    {
                      "type": "string",
                      "const": "off"
                    }
                  ]
                },
                "contextTokens": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "cliBackends": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "command": {
                        "type": "string"
                      },
                      "args": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "output": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "json"
                          },
                          {
                            "type": "string",
                            "const": "text"
                          },
                          {
                            "type": "string",
                            "const": "jsonl"
                          }
                        ]
                      },
                      "resumeOutput": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "json"
                          },
                          {
                            "type": "string",
                            "const": "text"
                          },
                          {
                            "type": "string",
                            "const": "jsonl"
                          }
                        ]
                      },
                      "input": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "arg"
                          },
                          {
                            "type": "string",
                            "const": "stdin"
                          }
                        ]
                      },
                      "maxPromptArgChars": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "env": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      "clearEnv": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "modelArg": {
                        "type": "string"
                      },
                      "modelAliases": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      "sessionArg": {
                        "type": "string"
                      },
                      "sessionArgs": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "resumeArgs": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "sessionMode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "always"
                          },
                          {
                            "type": "string",
                            "const": "existing"
                          },
                          {
                            "type": "string",
                            "const": "none"
                          }
                        ]
                      },
                      "sessionIdFields": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "systemPromptArg": {
                        "type": "string"
                      },
                      "systemPromptMode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "append"
                          },
                          {
                            "type": "string",
                            "const": "replace"
                          }
                        ]
                      },
                      "systemPromptWhen": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "first"
                          },
                          {
                            "type": "string",
                            "const": "always"
                          },
                          {
                            "type": "string",
                            "const": "never"
                          }
                        ]
                      },
                      "imageArg": {
                        "type": "string"
                      },
                      "imageMode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "repeat"
                          },
                          {
                            "type": "string",
                            "const": "list"
                          }
                        ]
                      },
                      "serialize": {
                        "type": "boolean"
                      },
                      "reliability": {
                        "type": "object",
                        "properties": {
                          "watchdog": {
                            "type": "object",
                            "properties": {
                              "fresh": {
                                "type": "object",
                                "properties": {
                                  "noOutputTimeoutMs": {
                                    "type": "integer",
                                    "minimum": 1000,
                                    "maximum": 9007199254740991
                                  },
                                  "noOutputTimeoutRatio": {
                                    "type": "number",
                                    "minimum": 0.05,
                                    "maximum": 0.95
                                  },
                                  "minMs": {
                                    "type": "integer",
                                    "minimum": 1000,
                                    "maximum": 9007199254740991
                                  },
                                  "maxMs": {
                                    "type": "integer",
                                    "minimum": 1000,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "additionalProperties": false
                              },
                              "resume": {
                                "type": "object",
                                "properties": {
                                  "noOutputTimeoutMs": {
                                    "type": "integer",
                                    "minimum": 1000,
                                    "maximum": 9007199254740991
                                  },
                                  "noOutputTimeoutRatio": {
                                    "type": "number",
                                    "minimum": 0.05,
                                    "maximum": 0.95
                                  },
                                  "minMs": {
                                    "type": "integer",
                                    "minimum": 1000,
                                    "maximum": 9007199254740991
                                  },
                                  "maxMs": {
                                    "type": "integer",
                                    "minimum": 1000,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "command"
                    ],
                    "additionalProperties": false
                  }
                },
                "memorySearch": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "sources": {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "memory"
                          },
                          {
                            "type": "string",
                            "const": "sessions"
                          }
                        ]
                      }
                    },
                    "extraPaths": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "experimental": {
                      "type": "object",
                      "properties": {
                        "sessionMemory": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "provider": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "openai"
                        },
                        {
                          "type": "string",
                          "const": "local"
                        },
                        {
                          "type": "string",
                          "const": "gemini"
                        },
                        {
                          "type": "string",
                          "const": "voyage"
                        },
                        {
                          "type": "string",
                          "const": "mistral"
                        }
                      ]
                    },
                    "remote": {
                      "type": "object",
                      "properties": {
                        "baseUrl": {
                          "type": "string"
                        },
                        "apiKey": {
                          "type": "string"
                        },
                        "headers": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "string"
                          }
                        },
                        "batch": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean"
                            },
                            "wait": {
                              "type": "boolean"
                            },
                            "concurrency": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "pollIntervalMs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "timeoutMinutes": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "fallback": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "openai"
                        },
                        {
                          "type": "string",
                          "const": "gemini"
                        },
                        {
                          "type": "string",
                          "const": "local"
                        },
                        {
                          "type": "string",
                          "const": "voyage"
                        },
                        {
                          "type": "string",
                          "const": "mistral"
                        },
                        {
                          "type": "string",
                          "const": "none"
                        }
                      ]
                    },
                    "model": {
                      "type": "string"
                    },
                    "local": {
                      "type": "object",
                      "properties": {
                        "modelPath": {
                          "type": "string"
                        },
                        "modelCacheDir": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "store": {
                      "type": "object",
                      "properties": {
                        "driver": {
                          "type": "string",
                          "const": "sqlite"
                        },
                        "path": {
                          "type": "string"
                        },
                        "vector": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean"
                            },
                            "extensionPath": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "chunking": {
                      "type": "object",
                      "properties": {
                        "tokens": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "overlap": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "additionalProperties": false
                    },
                    "sync": {
                      "type": "object",
                      "properties": {
                        "onSessionStart": {
                          "type": "boolean"
                        },
                        "onSearch": {
                          "type": "boolean"
                        },
                        "watch": {
                          "type": "boolean"
                        },
                        "watchDebounceMs": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "intervalMinutes": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "sessions": {
                          "type": "object",
                          "properties": {
                            "deltaBytes": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "deltaMessages": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "query": {
                      "type": "object",
                      "properties": {
                        "maxResults": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "minScore": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "hybrid": {
                          "type": "object",
                          "properties": {
                            "enabled": {
                              "type": "boolean"
                            },
                            "vectorWeight": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "textWeight": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "candidateMultiplier": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "mmr": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "lambda": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                }
                              },
                              "additionalProperties": false
                            },
                            "temporalDecay": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "halfLifeDays": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "cache": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "maxEntries": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "contextPruning": {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "off"
                        },
                        {
                          "type": "string",
                          "const": "cache-ttl"
                        }
                      ]
                    },
                    "ttl": {
                      "type": "string"
                    },
                    "keepLastAssistants": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "softTrimRatio": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "hardClearRatio": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    },
                    "minPrunableToolChars": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "tools": {
                      "type": "object",
                      "properties": {
                        "allow": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "deny": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "softTrim": {
                      "type": "object",
                      "properties": {
                        "maxChars": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "headChars": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "tailChars": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "additionalProperties": false
                    },
                    "hardClear": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "placeholder": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "compaction": {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "default"
                        },
                        {
                          "type": "string",
                          "const": "safeguard"
                        }
                      ]
                    },
                    "reserveTokens": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "keepRecentTokens": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "reserveTokensFloor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "maxHistoryShare": {
                      "type": "number",
                      "minimum": 0.1,
                      "maximum": 0.9
                    },
                    "memoryFlush": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "softThresholdTokens": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "prompt": {
                          "type": "string"
                        },
                        "systemPrompt": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "embeddedPi": {
                  "type": "object",
                  "properties": {
                    "projectSettingsPolicy": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "trusted"
                        },
                        {
                          "type": "string",
                          "const": "sanitize"
                        },
                        {
                          "type": "string",
                          "const": "ignore"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                "thinkingDefault": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "off"
                    },
                    {
                      "type": "string",
                      "const": "minimal"
                    },
                    {
                      "type": "string",
                      "const": "low"
                    },
                    {
                      "type": "string",
                      "const": "medium"
                    },
                    {
                      "type": "string",
                      "const": "high"
                    },
                    {
                      "type": "string",
                      "const": "xhigh"
                    }
                  ]
                },
                "verboseDefault": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "off"
                    },
                    {
                      "type": "string",
                      "const": "on"
                    },
                    {
                      "type": "string",
                      "const": "full"
                    }
                  ]
                },
                "elevatedDefault": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "off"
                    },
                    {
                      "type": "string",
                      "const": "on"
                    },
                    {
                      "type": "string",
                      "const": "ask"
                    },
                    {
                      "type": "string",
                      "const": "full"
                    }
                  ]
                },
                "blockStreamingDefault": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "off"
                    },
                    {
                      "type": "string",
                      "const": "on"
                    }
                  ]
                },
                "blockStreamingBreak": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "text_end"
                    },
                    {
                      "type": "string",
                      "const": "message_end"
                    }
                  ]
                },
                "blockStreamingChunk": {
                  "type": "object",
                  "properties": {
                    "minChars": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "maxChars": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "breakPreference": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "paragraph"
                        },
                        {
                          "type": "string",
                          "const": "newline"
                        },
                        {
                          "type": "string",
                          "const": "sentence"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                "blockStreamingCoalesce": {
                  "type": "object",
                  "properties": {
                    "minChars": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "maxChars": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "idleMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "additionalProperties": false
                },
                "humanDelay": {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "off"
                        },
                        {
                          "type": "string",
                          "const": "natural"
                        },
                        {
                          "type": "string",
                          "const": "custom"
                        }
                      ]
                    },
                    "minMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "maxMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "additionalProperties": false
                },
                "timeoutSeconds": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "mediaMaxMb": {
                  "type": "number",
                  "exclusiveMinimum": 0
                },
                "imageMaxDimensionPx": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "typingIntervalSeconds": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "typingMode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "never"
                    },
                    {
                      "type": "string",
                      "const": "instant"
                    },
                    {
                      "type": "string",
                      "const": "thinking"
                    },
                    {
                      "type": "string",
                      "const": "message"
                    }
                  ]
                },
                "heartbeat": {
                  "type": "object",
                  "properties": {
                    "every": {
                      "type": "string"
                    },
                    "activeHours": {
                      "type": "object",
                      "properties": {
                        "start": {
                          "type": "string"
                        },
                        "end": {
                          "type": "string"
                        },
                        "timezone": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "model": {
                      "type": "string"
                    },
                    "session": {
                      "type": "string"
                    },
                    "includeReasoning": {
                      "type": "boolean"
                    },
                    "target": {
                      "type": "string"
                    },
                    "directPolicy": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "allow"
                        },
                        {
                          "type": "string",
                          "const": "block"
                        }
                      ]
                    },
                    "to": {
                      "type": "string"
                    },
                    "accountId": {
                      "type": "string"
                    },
                    "prompt": {
                      "type": "string"
                    },
                    "ackMaxChars": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "suppressToolErrorWarnings": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                },
                "maxConcurrent": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "subagents": {
                  "type": "object",
                  "properties": {
                    "maxConcurrent": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "maxSpawnDepth": {
                      "description": "Maximum nesting depth for sub-agent spawning. 1 = no nesting (default), 2 = sub-agents can spawn sub-sub-agents.",
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 5
                    },
                    "maxChildrenPerAgent": {
                      "description": "Maximum number of active children a single agent session can spawn (default: 5).",
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 20
                    },
                    "archiveAfterMinutes": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "model": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "primary": {
                              "type": "string"
                            },
                            "fallbacks": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    "thinking": {
                      "type": "string"
                    },
                    "runTimeoutSeconds": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "announceTimeoutMs": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "additionalProperties": false
                },
                "sandbox": {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "off"
                        },
                        {
                          "type": "string",
                          "const": "non-main"
                        },
                        {
                          "type": "string",
                          "const": "all"
                        }
                      ]
                    },
                    "workspaceAccess": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "none"
                        },
                        {
                          "type": "string",
                          "const": "ro"
                        },
                        {
                          "type": "string",
                          "const": "rw"
                        }
                      ]
                    },
                    "sessionToolsVisibility": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "spawned"
                        },
                        {
                          "type": "string",
                          "const": "all"
                        }
                      ]
                    },
                    "scope": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "session"
                        },
                        {
                          "type": "string",
                          "const": "agent"
                        },
                        {
                          "type": "string",
                          "const": "shared"
                        }
                      ]
                    },
                    "perSession": {
                      "type": "boolean"
                    },
                    "workspaceRoot": {
                      "type": "string"
                    },
                    "docker": {
                      "type": "object",
                      "properties": {
                        "image": {
                          "type": "string"
                        },
                        "containerPrefix": {
                          "type": "string"
                        },
                        "workdir": {
                          "type": "string"
                        },
                        "readOnlyRoot": {
                          "type": "boolean"
                        },
                        "tmpfs": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "network": {
                          "type": "string"
                        },
                        "user": {
                          "type": "string"
                        },
                        "capDrop": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "env": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "string"
                          }
                        },
                        "setupCommand": {
                          "type": "string"
                        },
                        "pidsLimit": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "memory": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        },
                        "memorySwap": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        },
                        "cpus": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "ulimits": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "soft": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "hard": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "additionalProperties": false
                              }
                            ]
                          }
                        },
                        "seccompProfile": {
                          "type": "string"
                        },
                        "apparmorProfile": {
                          "type": "string"
                        },
                        "dns": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "extraHosts": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "binds": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "dangerouslyAllowReservedContainerTargets": {
                          "type": "boolean"
                        },
                        "dangerouslyAllowExternalBindSources": {
                          "type": "boolean"
                        },
                        "dangerouslyAllowContainerNamespaceJoin": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "browser": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "image": {
                          "type": "string"
                        },
                        "containerPrefix": {
                          "type": "string"
                        },
                        "network": {
                          "type": "string"
                        },
                        "cdpPort": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "cdpSourceRange": {
                          "type": "string"
                        },
                        "vncPort": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "noVncPort": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "headless": {
                          "type": "boolean"
                        },
                        "enableNoVnc": {
                          "type": "boolean"
                        },
                        "allowHostControl": {
                          "type": "boolean"
                        },
                        "autoStart": {
                          "type": "boolean"
                        },
                        "autoStartTimeoutMs": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "binds": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "prune": {
                      "type": "object",
                      "properties": {
                        "idleHours": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "maxAgeDays": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "list": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "default": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string"
                  },
                  "workspace": {
                    "type": "string"
                  },
                  "agentDir": {
                    "type": "string"
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "primary": {
                            "type": "string"
                          },
                          "fallbacks": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "additionalProperties": false
                      }
                    ]
                  },
                  "skills": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "memorySearch": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "sources": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "memory"
                            },
                            {
                              "type": "string",
                              "const": "sessions"
                            }
                          ]
                        }
                      },
                      "extraPaths": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "experimental": {
                        "type": "object",
                        "properties": {
                          "sessionMemory": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      "provider": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "openai"
                          },
                          {
                            "type": "string",
                            "const": "local"
                          },
                          {
                            "type": "string",
                            "const": "gemini"
                          },
                          {
                            "type": "string",
                            "const": "voyage"
                          },
                          {
                            "type": "string",
                            "const": "mistral"
                          }
                        ]
                      },
                      "remote": {
                        "type": "object",
                        "properties": {
                          "baseUrl": {
                            "type": "string"
                          },
                          "apiKey": {
                            "type": "string"
                          },
                          "headers": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "batch": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "wait": {
                                "type": "boolean"
                              },
                              "concurrency": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              "pollIntervalMs": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "timeoutMinutes": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false
                      },
                      "fallback": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "openai"
                          },
                          {
                            "type": "string",
                            "const": "gemini"
                          },
                          {
                            "type": "string",
                            "const": "local"
                          },
                          {
                            "type": "string",
                            "const": "voyage"
                          },
                          {
                            "type": "string",
                            "const": "mistral"
                          },
                          {
                            "type": "string",
                            "const": "none"
                          }
                        ]
                      },
                      "model": {
                        "type": "string"
                      },
                      "local": {
                        "type": "object",
                        "properties": {
                          "modelPath": {
                            "type": "string"
                          },
                          "modelCacheDir": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      },
                      "store": {
                        "type": "object",
                        "properties": {
                          "driver": {
                            "type": "string",
                            "const": "sqlite"
                          },
                          "path": {
                            "type": "string"
                          },
                          "vector": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "extensionPath": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false
                      },
                      "chunking": {
                        "type": "object",
                        "properties": {
                          "tokens": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "overlap": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "additionalProperties": false
                      },
                      "sync": {
                        "type": "object",
                        "properties": {
                          "onSessionStart": {
                            "type": "boolean"
                          },
                          "onSearch": {
                            "type": "boolean"
                          },
                          "watch": {
                            "type": "boolean"
                          },
                          "watchDebounceMs": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "intervalMinutes": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "sessions": {
                            "type": "object",
                            "properties": {
                              "deltaBytes": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "deltaMessages": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false
                      },
                      "query": {
                        "type": "object",
                        "properties": {
                          "maxResults": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "minScore": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "hybrid": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "vectorWeight": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 1
                              },
                              "textWeight": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 1
                              },
                              "candidateMultiplier": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              "mmr": {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "lambda": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  }
                                },
                                "additionalProperties": false
                              },
                              "temporalDecay": {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "halfLifeDays": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false
                      },
                      "cache": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "maxEntries": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "humanDelay": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "off"
                          },
                          {
                            "type": "string",
                            "const": "natural"
                          },
                          {
                            "type": "string",
                            "const": "custom"
                          }
                        ]
                      },
                      "minMs": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "maxMs": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "additionalProperties": false
                  },
                  "heartbeat": {
                    "type": "object",
                    "properties": {
                      "every": {
                        "type": "string"
                      },
                      "activeHours": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "type": "string"
                          },
                          "end": {
                            "type": "string"
                          },
                          "timezone": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      },
                      "model": {
                        "type": "string"
                      },
                      "session": {
                        "type": "string"
                      },
                      "includeReasoning": {
                        "type": "boolean"
                      },
                      "target": {
                        "type": "string"
                      },
                      "directPolicy": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "allow"
                          },
                          {
                            "type": "string",
                            "const": "block"
                          }
                        ]
                      },
                      "to": {
                        "type": "string"
                      },
                      "accountId": {
                        "type": "string"
                      },
                      "prompt": {
                        "type": "string"
                      },
                      "ackMaxChars": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "suppressToolErrorWarnings": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  "identity": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "theme": {
                        "type": "string"
                      },
                      "emoji": {
                        "type": "string"
                      },
                      "avatar": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  },
                  "groupChat": {
                    "type": "object",
                    "properties": {
                      "mentionPatterns": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "historyLimit": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "additionalProperties": false
                  },
                  "subagents": {
                    "type": "object",
                    "properties": {
                      "allowAgents": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "model": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "primary": {
                                "type": "string"
                              },
                              "fallbacks": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "additionalProperties": false
                          }
                        ]
                      },
                      "thinking": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  },
                  "sandbox": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "off"
                          },
                          {
                            "type": "string",
                            "const": "non-main"
                          },
                          {
                            "type": "string",
                            "const": "all"
                          }
                        ]
                      },
                      "workspaceAccess": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "none"
                          },
                          {
                            "type": "string",
                            "const": "ro"
                          },
                          {
                            "type": "string",
                            "const": "rw"
                          }
                        ]
                      },
                      "sessionToolsVisibility": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "spawned"
                          },
                          {
                            "type": "string",
                            "const": "all"
                          }
                        ]
                      },
                      "scope": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "session"
                          },
                          {
                            "type": "string",
                            "const": "agent"
                          },
                          {
                            "type": "string",
                            "const": "shared"
                          }
                        ]
                      },
                      "perSession": {
                        "type": "boolean"
                      },
                      "workspaceRoot": {
                        "type": "string"
                      },
                      "docker": {
                        "type": "object",
                        "properties": {
                          "image": {
                            "type": "string"
                          },
                          "containerPrefix": {
                            "type": "string"
                          },
                          "workdir": {
                            "type": "string"
                          },
                          "readOnlyRoot": {
                            "type": "boolean"
                          },
                          "tmpfs": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "network": {
                            "type": "string"
                          },
                          "user": {
                            "type": "string"
                          },
                          "capDrop": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "env": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "setupCommand": {
                            "type": "string"
                          },
                          "pidsLimit": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "memory": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              }
                            ]
                          },
                          "memorySwap": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              }
                            ]
                          },
                          "cpus": {
                            "type": "number",
                            "exclusiveMinimum": 0
                          },
                          "ulimits": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "soft": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "hard": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "seccompProfile": {
                            "type": "string"
                          },
                          "apparmorProfile": {
                            "type": "string"
                          },
                          "dns": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "extraHosts": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "binds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "dangerouslyAllowReservedContainerTargets": {
                            "type": "boolean"
                          },
                          "dangerouslyAllowExternalBindSources": {
                            "type": "boolean"
                          },
                          "dangerouslyAllowContainerNamespaceJoin": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      "browser": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "image": {
                            "type": "string"
                          },
                          "containerPrefix": {
                            "type": "string"
                          },
                          "network": {
                            "type": "string"
                          },
                          "cdpPort": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "cdpSourceRange": {
                            "type": "string"
                          },
                          "vncPort": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "noVncPort": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "headless": {
                            "type": "boolean"
                          },
                          "enableNoVnc": {
                            "type": "boolean"
                          },
                          "allowHostControl": {
                            "type": "boolean"
                          },
                          "autoStart": {
                            "type": "boolean"
                          },
                          "autoStartTimeoutMs": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "binds": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "additionalProperties": false
                      },
                      "prune": {
                        "type": "object",
                        "properties": {
                          "idleHours": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "maxAgeDays": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "tools": {
                    "type": "object",
                    "properties": {
                      "profile": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "minimal"
                          },
                          {
                            "type": "string",
                            "const": "coding"
                          },
                          {
                            "type": "string",
                            "const": "messaging"
                          },
                          {
                            "type": "string",
                            "const": "full"
                          }
                        ]
                      },
                      "allow": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "alsoAllow": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "deny": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "byProvider": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "allow": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "alsoAllow": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "deny": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "profile": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "const": "minimal"
                                },
                                {
                                  "type": "string",
                                  "const": "coding"
                                },
                                {
                                  "type": "string",
                                  "const": "messaging"
                                },
                                {
                                  "type": "string",
                                  "const": "full"
                                }
                              ]
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "elevated": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "allowFrom": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          }
                        },
                        "additionalProperties": false
                      },
                      "exec": {
                        "type": "object",
                        "properties": {
                          "host": {
                            "type": "string",
                            "enum": [
                              "sandbox",
                              "gateway",
                              "node"
                            ]
                          },
                          "security": {
                            "type": "string",
                            "enum": [
                              "deny",
                              "allowlist",
                              "full"
                            ]
                          },
                          "ask": {
                            "type": "string",
                            "enum": [
                              "off",
                              "on-miss",
                              "always"
                            ]
                          },
                          "node": {
                            "type": "string"
                          },
                          "pathPrepend": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "safeBins": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "safeBinTrustedDirs": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "safeBinProfiles": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "minPositional": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "maxPositional": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "allowedValueFlags": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "deniedFlags": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "backgroundMs": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "timeoutSec": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "cleanupMs": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "notifyOnExit": {
                            "type": "boolean"
                          },
                          "notifyOnExitEmptySuccess": {
                            "type": "boolean"
                          },
                          "applyPatch": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean"
                              },
                              "workspaceOnly": {
                                "type": "boolean"
                              },
                              "allowModels": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "additionalProperties": false
                          },
                          "approvalRunningNoticeMs": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "additionalProperties": false
                      },
                      "fs": {
                        "type": "object",
                        "properties": {
                          "workspaceOnly": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      "loopDetection": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "historySize": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "warningThreshold": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "criticalThreshold": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "globalCircuitBreakerThreshold": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "detectors": {
                            "type": "object",
                            "properties": {
                              "genericRepeat": {
                                "type": "boolean"
                              },
                              "knownPollNoProgress": {
                                "type": "boolean"
                              },
                              "pingPong": {
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false
                      },
                      "sandbox": {
                        "type": "object",
                        "properties": {
                          "tools": {
                            "type": "object",
                            "properties": {
                              "allow": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "alsoAllow": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "deny": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          },
          "additionalProperties": false
        },
        "tools": {
          "type": "object",
          "properties": {
            "profile": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "minimal"
                },
                {
                  "type": "string",
                  "const": "coding"
                },
                {
                  "type": "string",
                  "const": "messaging"
                },
                {
                  "type": "string",
                  "const": "full"
                }
              ]
            },
            "allow": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "alsoAllow": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "deny": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "byProvider": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "object",
                "properties": {
                  "allow": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "alsoAllow": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "deny": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "profile": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "minimal"
                      },
                      {
                        "type": "string",
                        "const": "coding"
                      },
                      {
                        "type": "string",
                        "const": "messaging"
                      },
                      {
                        "type": "string",
                        "const": "full"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            },
            "web": {
              "type": "object",
              "properties": {
                "search": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "provider": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "brave"
                        },
                        {
                          "type": "string",
                          "const": "perplexity"
                        },
                        {
                          "type": "string",
                          "const": "grok"
                        },
                        {
                          "type": "string",
                          "const": "gemini"
                        },
                        {
                          "type": "string",
                          "const": "kimi"
                        }
                      ]
                    },
                    "apiKey": {
                      "type": "string"
                    },
                    "maxResults": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "timeoutSeconds": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "cacheTtlMinutes": {
                      "type": "number",
                      "minimum": 0
                    },
                    "perplexity": {
                      "type": "object",
                      "properties": {
                        "apiKey": {
                          "type": "string"
                        },
                        "baseUrl": {
                          "type": "string"
                        },
                        "model": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "grok": {
                      "type": "object",
                      "properties": {
                        "apiKey": {
                          "type": "string"
                        },
                        "model": {
                          "type": "string"
                        },
                        "inlineCitations": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "gemini": {
                      "type": "object",
                      "properties": {
                        "apiKey": {
                          "type": "string"
                        },
                        "model": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "kimi": {
                      "type": "object",
                      "properties": {
                        "apiKey": {
                          "type": "string"
                        },
                        "baseUrl": {
                          "type": "string"
                        },
                        "model": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "fetch": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "maxChars": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "maxCharsCap": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "timeoutSeconds": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "cacheTtlMinutes": {
                      "type": "number",
                      "minimum": 0
                    },
                    "maxRedirects": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "userAgent": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "media": {
              "type": "object",
              "properties": {
                "models": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string"
                      },
                      "model": {
                        "type": "string"
                      },
                      "capabilities": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "image"
                            },
                            {
                              "type": "string",
                              "const": "audio"
                            },
                            {
                              "type": "string",
                              "const": "video"
                            }
                          ]
                        }
                      },
                      "type": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "provider"
                          },
                          {
                            "type": "string",
                            "const": "cli"
                          }
                        ]
                      },
                      "command": {
                        "type": "string"
                      },
                      "args": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "maxChars": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "maxBytes": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "prompt": {
                        "type": "string"
                      },
                      "timeoutSeconds": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "language": {
                        "type": "string"
                      },
                      "providerOptions": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean"
                              }
                            ]
                          }
                        }
                      },
                      "deepgram": {
                        "type": "object",
                        "properties": {
                          "detectLanguage": {
                            "type": "boolean"
                          },
                          "punctuate": {
                            "type": "boolean"
                          },
                          "smartFormat": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      "baseUrl": {
                        "type": "string"
                      },
                      "headers": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "string"
                        }
                      },
                      "profile": {
                        "type": "string"
                      },
                      "preferredProfile": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "concurrency": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "image": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "scope": {
                      "type": "object",
                      "properties": {
                        "default": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "allow"
                            },
                            {
                              "type": "string",
                              "const": "deny"
                            }
                          ]
                        },
                        "rules": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "action": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "const": "allow"
                                  },
                                  {
                                    "type": "string",
                                    "const": "deny"
                                  }
                                ]
                              },
                              "match": {
                                "type": "object",
                                "properties": {
                                  "channel": {
                                    "type": "string"
                                  },
                                  "chatType": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "const": "direct"
                                      },
                                      {
                                        "type": "string",
                                        "const": "group"
                                      },
                                      {
                                        "type": "string",
                                        "const": "channel"
                                      },
                                      {
                                        "type": "string",
                                        "const": "dm"
                                      }
                                    ]
                                  },
                                  "keyPrefix": {
                                    "type": "string"
                                  },
                                  "rawKeyPrefix": {
                                    "type": "string"
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "action"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxBytes": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "maxChars": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "prompt": {
                      "type": "string"
                    },
                    "timeoutSeconds": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "language": {
                      "type": "string"
                    },
                    "providerOptions": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            }
                          ]
                        }
                      }
                    },
                    "deepgram": {
                      "type": "object",
                      "properties": {
                        "detectLanguage": {
                          "type": "boolean"
                        },
                        "punctuate": {
                          "type": "boolean"
                        },
                        "smartFormat": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "baseUrl": {
                      "type": "string"
                    },
                    "headers": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "attachments": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "first"
                            },
                            {
                              "type": "string",
                              "const": "all"
                            }
                          ]
                        },
                        "maxAttachments": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "prefer": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "first"
                            },
                            {
                              "type": "string",
                              "const": "last"
                            },
                            {
                              "type": "string",
                              "const": "path"
                            },
                            {
                              "type": "string",
                              "const": "url"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "models": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string"
                          },
                          "model": {
                            "type": "string"
                          },
                          "capabilities": {
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "const": "image"
                                },
                                {
                                  "type": "string",
                                  "const": "audio"
                                },
                                {
                                  "type": "string",
                                  "const": "video"
                                }
                              ]
                            }
                          },
                          "type": {
                            "anyOf": [
                              {
                                "type": "string",
                                "const": "provider"
                              },
                              {
                                "type": "string",
                                "const": "cli"
                              }
                            ]
                          },
                          "command": {
                            "type": "string"
                          },
                          "args": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "maxChars": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "maxBytes": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "prompt": {
                            "type": "string"
                          },
                          "timeoutSeconds": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "language": {
                            "type": "string"
                          },
                          "providerOptions": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              }
                            }
                          },
                          "deepgram": {
                            "type": "object",
                            "properties": {
                              "detectLanguage": {
                                "type": "boolean"
                              },
                              "punctuate": {
                                "type": "boolean"
                              },
                              "smartFormat": {
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": false
                          },
                          "baseUrl": {
                            "type": "string"
                          },
                          "headers": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "profile": {
                            "type": "string"
                          },
                          "preferredProfile": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "audio": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "scope": {
                      "type": "object",
                      "properties": {
                        "default": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "allow"
                            },
                            {
                              "type": "string",
                              "const": "deny"
                            }
                          ]
                        },
                        "rules": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "action": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "const": "allow"
                                  },
                                  {
                                    "type": "string",
                                    "const": "deny"
                                  }
                                ]
                              },
                              "match": {
                                "type": "object",
                                "properties": {
                                  "channel": {
                                    "type": "string"
                                  },
                                  "chatType": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "const": "direct"
                                      },
                                      {
                                        "type": "string",
                                        "const": "group"
                                      },
                                      {
                                        "type": "string",
                                        "const": "channel"
                                      },
                                      {
                                        "type": "string",
                                        "const": "dm"
                                      }
                                    ]
                                  },
                                  "keyPrefix": {
                                    "type": "string"
                                  },
                                  "rawKeyPrefix": {
                                    "type": "string"
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "action"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxBytes": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "maxChars": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "prompt": {
                      "type": "string"
                    },
                    "timeoutSeconds": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "language": {
                      "type": "string"
                    },
                    "providerOptions": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            }
                          ]
                        }
                      }
                    },
                    "deepgram": {
                      "type": "object",
                      "properties": {
                        "detectLanguage": {
                          "type": "boolean"
                        },
                        "punctuate": {
                          "type": "boolean"
                        },
                        "smartFormat": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "baseUrl": {
                      "type": "string"
                    },
                    "headers": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "attachments": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "first"
                            },
                            {
                              "type": "string",
                              "const": "all"
                            }
                          ]
                        },
                        "maxAttachments": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "prefer": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "first"
                            },
                            {
                              "type": "string",
                              "const": "last"
                            },
                            {
                              "type": "string",
                              "const": "path"
                            },
                            {
                              "type": "string",
                              "const": "url"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "models": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string"
                          },
                          "model": {
                            "type": "string"
                          },
                          "capabilities": {
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "const": "image"
                                },
                                {
                                  "type": "string",
                                  "const": "audio"
                                },
                                {
                                  "type": "string",
                                  "const": "video"
                                }
                              ]
                            }
                          },
                          "type": {
                            "anyOf": [
                              {
                                "type": "string",
                                "const": "provider"
                              },
                              {
                                "type": "string",
                                "const": "cli"
                              }
                            ]
                          },
                          "command": {
                            "type": "string"
                          },
                          "args": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "maxChars": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "maxBytes": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "prompt": {
                            "type": "string"
                          },
                          "timeoutSeconds": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "language": {
                            "type": "string"
                          },
                          "providerOptions": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              }
                            }
                          },
                          "deepgram": {
                            "type": "object",
                            "properties": {
                              "detectLanguage": {
                                "type": "boolean"
                              },
                              "punctuate": {
                                "type": "boolean"
                              },
                              "smartFormat": {
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": false
                          },
                          "baseUrl": {
                            "type": "string"
                          },
                          "headers": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "profile": {
                            "type": "string"
                          },
                          "preferredProfile": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "video": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "scope": {
                      "type": "object",
                      "properties": {
                        "default": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "allow"
                            },
                            {
                              "type": "string",
                              "const": "deny"
                            }
                          ]
                        },
                        "rules": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "action": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "const": "allow"
                                  },
                                  {
                                    "type": "string",
                                    "const": "deny"
                                  }
                                ]
                              },
                              "match": {
                                "type": "object",
                                "properties": {
                                  "channel": {
                                    "type": "string"
                                  },
                                  "chatType": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "const": "direct"
                                      },
                                      {
                                        "type": "string",
                                        "const": "group"
                                      },
                                      {
                                        "type": "string",
                                        "const": "channel"
                                      },
                                      {
                                        "type": "string",
                                        "const": "dm"
                                      }
                                    ]
                                  },
                                  "keyPrefix": {
                                    "type": "string"
                                  },
                                  "rawKeyPrefix": {
                                    "type": "string"
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "action"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxBytes": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "maxChars": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "prompt": {
                      "type": "string"
                    },
                    "timeoutSeconds": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "language": {
                      "type": "string"
                    },
                    "providerOptions": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            }
                          ]
                        }
                      }
                    },
                    "deepgram": {
                      "type": "object",
                      "properties": {
                        "detectLanguage": {
                          "type": "boolean"
                        },
                        "punctuate": {
                          "type": "boolean"
                        },
                        "smartFormat": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "baseUrl": {
                      "type": "string"
                    },
                    "headers": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "attachments": {
                      "type": "object",
                      "properties": {
                        "mode": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "first"
                            },
                            {
                              "type": "string",
                              "const": "all"
                            }
                          ]
                        },
                        "maxAttachments": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "prefer": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": "first"
                            },
                            {
                              "type": "string",
                              "const": "last"
                            },
                            {
                              "type": "string",
                              "const": "path"
                            },
                            {
                              "type": "string",
                              "const": "url"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "models": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string"
                          },
                          "model": {
                            "type": "string"
                          },
                          "capabilities": {
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "const": "image"
                                },
                                {
                                  "type": "string",
                                  "const": "audio"
                                },
                                {
                                  "type": "string",
                                  "const": "video"
                                }
                              ]
                            }
                          },
                          "type": {
                            "anyOf": [
                              {
                                "type": "string",
                                "const": "provider"
                              },
                              {
                                "type": "string",
                                "const": "cli"
                              }
                            ]
                          },
                          "command": {
                            "type": "string"
                          },
                          "args": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "maxChars": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "maxBytes": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "prompt": {
                            "type": "string"
                          },
                          "timeoutSeconds": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "language": {
                            "type": "string"
                          },
                          "providerOptions": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              }
                            }
                          },
                          "deepgram": {
                            "type": "object",
                            "properties": {
                              "detectLanguage": {
                                "type": "boolean"
                              },
                              "punctuate": {
                                "type": "boolean"
                              },
                              "smartFormat": {
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": false
                          },
                          "baseUrl": {
                            "type": "string"
                          },
                          "headers": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "profile": {
                            "type": "string"
                          },
                          "preferredProfile": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "links": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "scope": {
                  "type": "object",
                  "properties": {
                    "default": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "allow"
                        },
                        {
                          "type": "string",
                          "const": "deny"
                        }
                      ]
                    },
                    "rules": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "action": {
                            "anyOf": [
                              {
                                "type": "string",
                                "const": "allow"
                              },
                              {
                                "type": "string",
                                "const": "deny"
                              }
                            ]
                          },
                          "match": {
                            "type": "object",
                            "properties": {
                              "channel": {
                                "type": "string"
                              },
                              "chatType": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "const": "direct"
                                  },
                                  {
                                    "type": "string",
                                    "const": "group"
                                  },
                                  {
                                    "type": "string",
                                    "const": "channel"
                                  },
                                  {
                                    "type": "string",
                                    "const": "dm"
                                  }
                                ]
                              },
                              "keyPrefix": {
                                "type": "string"
                              },
                              "rawKeyPrefix": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "action"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "maxLinks": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "timeoutSeconds": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "models": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "cli"
                      },
                      "command": {
                        "type": "string",
                        "minLength": 1
                      },
                      "args": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "timeoutSeconds": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "command"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "additionalProperties": false
            },
            "sessions": {
              "type": "object",
              "properties": {
                "visibility": {
                  "type": "string",
                  "enum": [
                    "self",
                    "tree",
                    "agent",
                    "all"
                  ]
                }
              },
              "additionalProperties": false
            },
            "loopDetection": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "historySize": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "warningThreshold": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "criticalThreshold": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "globalCircuitBreakerThreshold": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "detectors": {
                  "type": "object",
                  "properties": {
                    "genericRepeat": {
                      "type": "boolean"
                    },
                    "knownPollNoProgress": {
                      "type": "boolean"
                    },
                    "pingPong": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "message": {
              "type": "object",
              "properties": {
                "allowCrossContextSend": {
                  "type": "boolean"
                },
                "crossContext": {
                  "type": "object",
                  "properties": {
                    "allowWithinProvider": {
                      "type": "boolean"
                    },
                    "allowAcrossProviders": {
                      "type": "boolean"
                    },
                    "marker": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "prefix": {
                          "type": "string"
                        },
                        "suffix": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "broadcast": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "agentToAgent": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "allow": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "additionalProperties": false
            },
            "elevated": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "allowFrom": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    }
                  }
                }
              },
              "additionalProperties": false
            },
            "exec": {
              "type": "object",
              "properties": {
                "host": {
                  "type": "string",
                  "enum": [
                    "sandbox",
                    "gateway",
                    "node"
                  ]
                },
                "security": {
                  "type": "string",
                  "enum": [
                    "deny",
                    "allowlist",
                    "full"
                  ]
                },
                "ask": {
                  "type": "string",
                  "enum": [
                    "off",
                    "on-miss",
                    "always"
                  ]
                },
                "node": {
                  "type": "string"
                },
                "pathPrepend": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "safeBins": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "safeBinTrustedDirs": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "safeBinProfiles": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "minPositional": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "maxPositional": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "allowedValueFlags": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "deniedFlags": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "backgroundMs": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "timeoutSec": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "cleanupMs": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "notifyOnExit": {
                  "type": "boolean"
                },
                "notifyOnExitEmptySuccess": {
                  "type": "boolean"
                },
                "applyPatch": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "workspaceOnly": {
                      "type": "boolean"
                    },
                    "allowModels": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "fs": {
              "type": "object",
              "properties": {
                "workspaceOnly": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            },
            "subagents": {
              "type": "object",
              "properties": {
                "tools": {
                  "type": "object",
                  "properties": {
                    "allow": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "alsoAllow": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "deny": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "sandbox": {
              "type": "object",
              "properties": {
                "tools": {
                  "type": "object",
                  "properties": {
                    "allow": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "alsoAllow": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "deny": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "bindings": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "agentId": {
                "type": "string"
              },
              "comment": {
                "type": "string"
              },
              "match": {
                "type": "object",
                "properties": {
                  "channel": {
                    "type": "string"
                  },
                  "accountId": {
                    "type": "string"
                  },
                  "peer": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "direct"
                          },
                          {
                            "type": "string",
                            "const": "group"
                          },
                          {
                            "type": "string",
                            "const": "channel"
                          },
                          {
                            "type": "string",
                            "const": "dm"
                          }
                        ]
                      },
                      "id": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind",
                      "id"
                    ],
                    "additionalProperties": false
                  },
                  "guildId": {
                    "type": "string"
                  },
                  "teamId": {
                    "type": "string"
                  },
                  "roles": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "channel"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "agentId",
              "match"
            ],
            "additionalProperties": false
          }
        },
        "broadcast": {
          "type": "object",
          "properties": {
            "strategy": {
              "type": "string",
              "enum": [
                "parallel",
                "sequential"
              ]
            }
          },
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "audio": {
          "type": "object",
          "properties": {
            "transcription": {
              "type": "object",
              "properties": {
                "command": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "timeoutSeconds": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "command"
              ],
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "media": {
          "type": "object",
          "properties": {
            "preserveFilenames": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        },
        "messages": {
          "type": "object",
          "properties": {
            "messagePrefix": {
              "type": "string"
            },
            "responsePrefix": {
              "type": "string"
            },
            "groupChat": {
              "type": "object",
              "properties": {
                "mentionPatterns": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "historyLimit": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "additionalProperties": false
            },
            "queue": {
              "type": "object",
              "properties": {
                "mode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "steer"
                    },
                    {
                      "type": "string",
                      "const": "followup"
                    },
                    {
                      "type": "string",
                      "const": "collect"
                    },
                    {
                      "type": "string",
                      "const": "steer-backlog"
                    },
                    {
                      "type": "string",
                      "const": "steer+backlog"
                    },
                    {
                      "type": "string",
                      "const": "queue"
                    },
                    {
                      "type": "string",
                      "const": "interrupt"
                    }
                  ]
                },
                "byChannel": {
                  "type": "object",
                  "properties": {
                    "whatsapp": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "steer"
                        },
                        {
                          "type": "string",
                          "const": "followup"
                        },
                        {
                          "type": "string",
                          "const": "collect"
                        },
                        {
                          "type": "string",
                          "const": "steer-backlog"
                        },
                        {
                          "type": "string",
                          "const": "steer+backlog"
                        },
                        {
                          "type": "string",
                          "const": "queue"
                        },
                        {
                          "type": "string",
                          "const": "interrupt"
                        }
                      ]
                    },
                    "telegram": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "steer"
                        },
                        {
                          "type": "string",
                          "const": "followup"
                        },
                        {
                          "type": "string",
                          "const": "collect"
                        },
                        {
                          "type": "string",
                          "const": "steer-backlog"
                        },
                        {
                          "type": "string",
                          "const": "steer+backlog"
                        },
                        {
                          "type": "string",
                          "const": "queue"
                        },
                        {
                          "type": "string",
                          "const": "interrupt"
                        }
                      ]
                    },
                    "discord": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "steer"
                        },
                        {
                          "type": "string",
                          "const": "followup"
                        },
                        {
                          "type": "string",
                          "const": "collect"
                        },
                        {
                          "type": "string",
                          "const": "steer-backlog"
                        },
                        {
                          "type": "string",
                          "const": "steer+backlog"
                        },
                        {
                          "type": "string",
                          "const": "queue"
                        },
                        {
                          "type": "string",
                          "const": "interrupt"
                        }
                      ]
                    },
                    "irc": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "steer"
                        },
                        {
                          "type": "string",
                          "const": "followup"
                        },
                        {
                          "type": "string",
                          "const": "collect"
                        },
                        {
                          "type": "string",
                          "const": "steer-backlog"
                        },
                        {
                          "type": "string",
                          "const": "steer+backlog"
                        },
                        {
                          "type": "string",
                          "const": "queue"
                        },
                        {
                          "type": "string",
                          "const": "interrupt"
                        }
                      ]
                    },
                    "slack": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "steer"
                        },
                        {
                          "type": "string",
                          "const": "followup"
                        },
                        {
                          "type": "string",
                          "const": "collect"
                        },
                        {
                          "type": "string",
                          "const": "steer-backlog"
                        },
                        {
                          "type": "string",
                          "const": "steer+backlog"
                        },
                        {
                          "type": "string",
                          "const": "queue"
                        },
                        {
                          "type": "string",
                          "const": "interrupt"
                        }
                      ]
                    },
                    "mattermost": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "steer"
                        },
                        {
                          "type": "string",
                          "const": "followup"
                        },
                        {
                          "type": "string",
                          "const": "collect"
                        },
                        {
                          "type": "string",
                          "const": "steer-backlog"
                        },
                        {
                          "type": "string",
                          "const": "steer+backlog"
                        },
                        {
                          "type": "string",
                          "const": "queue"
                        },
                        {
                          "type": "string",
                          "const": "interrupt"
                        }
                      ]
                    },
                    "signal": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "steer"
                        },
                        {
                          "type": "string",
                          "const": "followup"
                        },
                        {
                          "type": "string",
                          "const": "collect"
                        },
                        {
                          "type": "string",
                          "const": "steer-backlog"
                        },
                        {
                          "type": "string",
                          "const": "steer+backlog"
                        },
                        {
                          "type": "string",
                          "const": "queue"
                        },
                        {
                          "type": "string",
                          "const": "interrupt"
                        }
                      ]
                    },
                    "imessage": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "steer"
                        },
                        {
                          "type": "string",
                          "const": "followup"
                        },
                        {
                          "type": "string",
                          "const": "collect"
                        },
                        {
                          "type": "string",
                          "const": "steer-backlog"
                        },
                        {
                          "type": "string",
                          "const": "steer+backlog"
                        },
                        {
                          "type": "string",
                          "const": "queue"
                        },
                        {
                          "type": "string",
                          "const": "interrupt"
                        }
                      ]
                    },
                    "msteams": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "steer"
                        },
                        {
                          "type": "string",
                          "const": "followup"
                        },
                        {
                          "type": "string",
                          "const": "collect"
                        },
                        {
                          "type": "string",
                          "const": "steer-backlog"
                        },
                        {
                          "type": "string",
                          "const": "steer+backlog"
                        },
                        {
                          "type": "string",
                          "const": "queue"
                        },
                        {
                          "type": "string",
                          "const": "interrupt"
                        }
                      ]
                    },
                    "webchat": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "steer"
                        },
                        {
                          "type": "string",
                          "const": "followup"
                        },
                        {
                          "type": "string",
                          "const": "collect"
                        },
                        {
                          "type": "string",
                          "const": "steer-backlog"
                        },
                        {
                          "type": "string",
                          "const": "steer+backlog"
                        },
                        {
                          "type": "string",
                          "const": "queue"
                        },
                        {
                          "type": "string",
                          "const": "interrupt"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                "debounceMs": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "debounceMsByChannel": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "cap": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "drop": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "old"
                    },
                    {
                      "type": "string",
                      "const": "new"
                    },
                    {
                      "type": "string",
                      "const": "summarize"
                    }
                  ]
                }
              },
              "additionalProperties": false
            },
            "inbound": {
              "type": "object",
              "properties": {
                "debounceMs": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "byChannel": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              "additionalProperties": false
            },
            "ackReaction": {
              "type": "string"
            },
            "ackReactionScope": {
              "type": "string",
              "enum": [
                "group-mentions",
                "group-all",
                "direct",
                "all"
              ]
            },
            "removeAckAfterReply": {
              "type": "boolean"
            },
            "statusReactions": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "emojis": {
                  "type": "object",
                  "properties": {
                    "thinking": {
                      "type": "string"
                    },
                    "tool": {
                      "type": "string"
                    },
                    "coding": {
                      "type": "string"
                    },
                    "web": {
                      "type": "string"
                    },
                    "done": {
                      "type": "string"
                    },
                    "error": {
                      "type": "string"
                    },
                    "stallSoft": {
                      "type": "string"
                    },
                    "stallHard": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "timing": {
                  "type": "object",
                  "properties": {
                    "debounceMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "stallSoftMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "stallHardMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "doneHoldMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "errorHoldMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "suppressToolErrors": {
              "type": "boolean"
            },
            "tts": {
              "type": "object",
              "properties": {
                "auto": {
                  "type": "string",
                  "enum": [
                    "off",
                    "always",
                    "inbound",
                    "tagged"
                  ]
                },
                "enabled": {
                  "type": "boolean"
                },
                "mode": {
                  "type": "string",
                  "enum": [
                    "final",
                    "all"
                  ]
                },
                "provider": {
                  "type": "string",
                  "enum": [
                    "elevenlabs",
                    "openai",
                    "edge"
                  ]
                },
                "summaryModel": {
                  "type": "string"
                },
                "modelOverrides": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "allowText": {
                      "type": "boolean"
                    },
                    "allowProvider": {
                      "type": "boolean"
                    },
                    "allowVoice": {
                      "type": "boolean"
                    },
                    "allowModelId": {
                      "type": "boolean"
                    },
                    "allowVoiceSettings": {
                      "type": "boolean"
                    },
                    "allowNormalization": {
                      "type": "boolean"
                    },
                    "allowSeed": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                },
                "elevenlabs": {
                  "type": "object",
                  "properties": {
                    "apiKey": {
                      "type": "string"
                    },
                    "baseUrl": {
                      "type": "string"
                    },
                    "voiceId": {
                      "type": "string"
                    },
                    "modelId": {
                      "type": "string"
                    },
                    "seed": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 4294967295
                    },
                    "applyTextNormalization": {
                      "type": "string",
                      "enum": [
                        "auto",
                        "on",
                        "off"
                      ]
                    },
                    "languageCode": {
                      "type": "string"
                    },
                    "voiceSettings": {
                      "type": "object",
                      "properties": {
                        "stability": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "similarityBoost": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "style": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "useSpeakerBoost": {
                          "type": "boolean"
                        },
                        "speed": {
                          "type": "number",
                          "minimum": 0.5,
                          "maximum": 2
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "openai": {
                  "type": "object",
                  "properties": {
                    "apiKey": {
                      "type": "string"
                    },
                    "model": {
                      "type": "string"
                    },
                    "voice": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "edge": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "voice": {
                      "type": "string"
                    },
                    "lang": {
                      "type": "string"
                    },
                    "outputFormat": {
                      "type": "string"
                    },
                    "pitch": {
                      "type": "string"
                    },
                    "rate": {
                      "type": "string"
                    },
                    "volume": {
                      "type": "string"
                    },
                    "saveSubtitles": {
                      "type": "boolean"
                    },
                    "proxy": {
                      "type": "string"
                    },
                    "timeoutMs": {
                      "type": "integer",
                      "minimum": 1000,
                      "maximum": 120000
                    }
                  },
                  "additionalProperties": false
                },
                "prefsPath": {
                  "type": "string"
                },
                "maxTextLength": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 9007199254740991
                },
                "timeoutMs": {
                  "type": "integer",
                  "minimum": 1000,
                  "maximum": 120000
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "commands": {
          "default": {
            "native": "auto",
            "nativeSkills": "auto",
            "restart": true,
            "ownerDisplay": "raw"
          },
          "type": "object",
          "properties": {
            "native": {
              "default": "auto",
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "string",
                  "const": "auto"
                }
              ]
            },
            "nativeSkills": {
              "default": "auto",
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "string",
                  "const": "auto"
                }
              ]
            },
            "text": {
              "type": "boolean"
            },
            "bash": {
              "type": "boolean"
            },
            "bashForegroundMs": {
              "type": "integer",
              "minimum": 0,
              "maximum": 30000
            },
            "config": {
              "type": "boolean"
            },
            "debug": {
              "type": "boolean"
            },
            "restart": {
              "default": true,
              "type": "boolean"
            },
            "useAccessGroups": {
              "type": "boolean"
            },
            "ownerAllowFrom": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              }
            },
            "ownerDisplay": {
              "default": "raw",
              "type": "string",
              "enum": [
                "raw",
                "hash"
              ]
            },
            "ownerDisplaySecret": {
              "type": "string"
            },
            "allowFrom": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    }
                  ]
                }
              }
            }
          },
          "required": [
            "native",
            "nativeSkills",
            "restart",
            "ownerDisplay"
          ],
          "additionalProperties": false
        },
        "approvals": {
          "type": "object",
          "properties": {
            "exec": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "mode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "session"
                    },
                    {
                      "type": "string",
                      "const": "targets"
                    },
                    {
                      "type": "string",
                      "const": "both"
                    }
                  ]
                },
                "agentFilter": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "sessionFilter": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "targets": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "channel": {
                        "type": "string",
                        "minLength": 1
                      },
                      "to": {
                        "type": "string",
                        "minLength": 1
                      },
                      "accountId": {
                        "type": "string"
                      },
                      "threadId": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      }
                    },
                    "required": [
                      "channel",
                      "to"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "session": {
          "type": "object",
          "properties": {
            "scope": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "per-sender"
                },
                {
                  "type": "string",
                  "const": "global"
                }
              ]
            },
            "dmScope": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "main"
                },
                {
                  "type": "string",
                  "const": "per-peer"
                },
                {
                  "type": "string",
                  "const": "per-channel-peer"
                },
                {
                  "type": "string",
                  "const": "per-account-channel-peer"
                }
              ]
            },
            "identityLinks": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "resetTriggers": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "idleMinutes": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "reset": {
              "type": "object",
              "properties": {
                "mode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "daily"
                    },
                    {
                      "type": "string",
                      "const": "idle"
                    }
                  ]
                },
                "atHour": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 23
                },
                "idleMinutes": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "additionalProperties": false
            },
            "resetByType": {
              "type": "object",
              "properties": {
                "direct": {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "daily"
                        },
                        {
                          "type": "string",
                          "const": "idle"
                        }
                      ]
                    },
                    "atHour": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 23
                    },
                    "idleMinutes": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "additionalProperties": false
                },
                "dm": {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "daily"
                        },
                        {
                          "type": "string",
                          "const": "idle"
                        }
                      ]
                    },
                    "atHour": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 23
                    },
                    "idleMinutes": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "additionalProperties": false
                },
                "group": {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "daily"
                        },
                        {
                          "type": "string",
                          "const": "idle"
                        }
                      ]
                    },
                    "atHour": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 23
                    },
                    "idleMinutes": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "additionalProperties": false
                },
                "thread": {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "daily"
                        },
                        {
                          "type": "string",
                          "const": "idle"
                        }
                      ]
                    },
                    "atHour": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 23
                    },
                    "idleMinutes": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "resetByChannel": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "object",
                "properties": {
                  "mode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "daily"
                      },
                      {
                        "type": "string",
                        "const": "idle"
                      }
                    ]
                  },
                  "atHour": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 23
                  },
                  "idleMinutes": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": false
              }
            },
            "store": {
              "type": "string"
            },
            "typingIntervalSeconds": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "typingMode": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "never"
                },
                {
                  "type": "string",
                  "const": "instant"
                },
                {
                  "type": "string",
                  "const": "thinking"
                },
                {
                  "type": "string",
                  "const": "message"
                }
              ]
            },
            "parentForkMaxTokens": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "mainKey": {
              "type": "string"
            },
            "sendPolicy": {
              "type": "object",
              "properties": {
                "default": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "allow"
                    },
                    {
                      "type": "string",
                      "const": "deny"
                    }
                  ]
                },
                "rules": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "action": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "allow"
                          },
                          {
                            "type": "string",
                            "const": "deny"
                          }
                        ]
                      },
                      "match": {
                        "type": "object",
                        "properties": {
                          "channel": {
                            "type": "string"
                          },
                          "chatType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "const": "direct"
                              },
                              {
                                "type": "string",
                                "const": "group"
                              },
                              {
                                "type": "string",
                                "const": "channel"
                              },
                              {
                                "type": "string",
                                "const": "dm"
                              }
                            ]
                          },
                          "keyPrefix": {
                            "type": "string"
                          },
                          "rawKeyPrefix": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "action"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "additionalProperties": false
            },
            "agentToAgent": {
              "type": "object",
              "properties": {
                "maxPingPongTurns": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 5
                }
              },
              "additionalProperties": false
            },
            "threadBindings": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "ttlHours": {
                  "type": "number",
                  "minimum": 0
                }
              },
              "additionalProperties": false
            },
            "maintenance": {
              "type": "object",
              "properties": {
                "mode": {
                  "type": "string",
                  "enum": [
                    "enforce",
                    "warn"
                  ]
                },
                "pruneAfter": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "pruneDays": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "maxEntries": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "rotateBytes": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "resetArchiveRetention": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean",
                      "const": false
                    }
                  ]
                },
                "maxDiskBytes": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "highWaterBytes": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    }
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "cron": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "store": {
              "type": "string"
            },
            "maxConcurrentRuns": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "webhook": {
              "type": "string",
              "format": "uri"
            },
            "webhookToken": {
              "type": "string"
            },
            "sessionRetention": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "boolean",
                  "const": false
                }
              ]
            },
            "runLog": {
              "type": "object",
              "properties": {
                "maxBytes": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "keepLines": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "hooks": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "path": {
              "type": "string"
            },
            "token": {
              "type": "string"
            },
            "defaultSessionKey": {
              "type": "string"
            },
            "allowRequestSessionKey": {
              "type": "boolean"
            },
            "allowedSessionKeyPrefixes": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "allowedAgentIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "maxBodyBytes": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "presets": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "transformsDir": {
              "type": "string"
            },
            "mappings": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "match": {
                    "type": "object",
                    "properties": {
                      "path": {
                        "type": "string"
                      },
                      "source": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  },
                  "action": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "wake"
                      },
                      {
                        "type": "string",
                        "const": "agent"
                      }
                    ]
                  },
                  "wakeMode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "now"
                      },
                      {
                        "type": "string",
                        "const": "next-heartbeat"
                      }
                    ]
                  },
                  "name": {
                    "type": "string"
                  },
                  "agentId": {
                    "type": "string"
                  },
                  "sessionKey": {
                    "type": "string"
                  },
                  "messageTemplate": {
                    "type": "string"
                  },
                  "textTemplate": {
                    "type": "string"
                  },
                  "deliver": {
                    "type": "boolean"
                  },
                  "allowUnsafeExternalContent": {
                    "type": "boolean"
                  },
                  "channel": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "last"
                      },
                      {
                        "type": "string",
                        "const": "whatsapp"
                      },
                      {
                        "type": "string",
                        "const": "telegram"
                      },
                      {
                        "type": "string",
                        "const": "discord"
                      },
                      {
                        "type": "string",
                        "const": "irc"
                      },
                      {
                        "type": "string",
                        "const": "slack"
                      },
                      {
                        "type": "string",
                        "const": "signal"
                      },
                      {
                        "type": "string",
                        "const": "imessage"
                      },
                      {
                        "type": "string",
                        "const": "msteams"
                      }
                    ]
                  },
                  "to": {
                    "type": "string"
                  },
                  "model": {
                    "type": "string"
                  },
                  "thinking": {
                    "type": "string"
                  },
                  "timeoutSeconds": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "transform": {
                    "type": "object",
                    "properties": {
                      "module": {
                        "type": "string"
                      },
                      "export": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "module"
                    ],
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "gmail": {
              "type": "object",
              "properties": {
                "account": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "topic": {
                  "type": "string"
                },
                "subscription": {
                  "type": "string"
                },
                "pushToken": {
                  "type": "string"
                },
                "hookUrl": {
                  "type": "string"
                },
                "includeBody": {
                  "type": "boolean"
                },
                "maxBytes": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "renewEveryMinutes": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "allowUnsafeExternalContent": {
                  "type": "boolean"
                },
                "serve": {
                  "type": "object",
                  "properties": {
                    "bind": {
                      "type": "string"
                    },
                    "port": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "path": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "tailscale": {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "off"
                        },
                        {
                          "type": "string",
                          "const": "serve"
                        },
                        {
                          "type": "string",
                          "const": "funnel"
                        }
                      ]
                    },
                    "path": {
                      "type": "string"
                    },
                    "target": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "model": {
                  "type": "string"
                },
                "thinking": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "off"
                    },
                    {
                      "type": "string",
                      "const": "minimal"
                    },
                    {
                      "type": "string",
                      "const": "low"
                    },
                    {
                      "type": "string",
                      "const": "medium"
                    },
                    {
                      "type": "string",
                      "const": "high"
                    }
                  ]
                }
              },
              "additionalProperties": false
            },
            "internal": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "handlers": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "event": {
                        "type": "string"
                      },
                      "module": {
                        "type": "string"
                      },
                      "export": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "event",
                      "module"
                    ],
                    "additionalProperties": false
                  }
                },
                "entries": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "enabled": {
                        "type": "boolean"
                      },
                      "env": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "string"
                        }
                      }
                    },
                    "additionalProperties": {}
                  }
                },
                "load": {
                  "type": "object",
                  "properties": {
                    "extraDirs": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "installs": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "source": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "npm"
                          },
                          {
                            "type": "string",
                            "const": "archive"
                          },
                          {
                            "type": "string",
                            "const": "path"
                          }
                        ]
                      },
                      "spec": {
                        "type": "string"
                      },
                      "sourcePath": {
                        "type": "string"
                      },
                      "installPath": {
                        "type": "string"
                      },
                      "version": {
                        "type": "string"
                      },
                      "resolvedName": {
                        "type": "string"
                      },
                      "resolvedVersion": {
                        "type": "string"
                      },
                      "resolvedSpec": {
                        "type": "string"
                      },
                      "integrity": {
                        "type": "string"
                      },
                      "shasum": {
                        "type": "string"
                      },
                      "resolvedAt": {
                        "type": "string"
                      },
                      "installedAt": {
                        "type": "string"
                      },
                      "hooks": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "source"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "web": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "heartbeatSeconds": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "reconnect": {
              "type": "object",
              "properties": {
                "initialMs": {
                  "type": "number",
                  "exclusiveMinimum": 0
                },
                "maxMs": {
                  "type": "number",
                  "exclusiveMinimum": 0
                },
                "factor": {
                  "type": "number",
                  "exclusiveMinimum": 0
                },
                "jitter": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "maxAttempts": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "channels": {
          "type": "object",
          "properties": {
            "telegram": {
              "$schema": "http://json-schema.org/draft-07/schema#",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "capabilities": {
                  "anyOf": [
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "inlineButtons": {
                          "type": "string",
                          "enum": [
                            "off",
                            "dm",
                            "group",
                            "all",
                            "allowlist"
                          ]
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                },
                "markdown": {
                  "type": "object",
                  "properties": {
                    "tables": {
                      "type": "string",
                      "enum": [
                        "off",
                        "bullets",
                        "code"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                "enabled": {
                  "type": "boolean"
                },
                "commands": {
                  "type": "object",
                  "properties": {
                    "native": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "auto"
                        }
                      ]
                    },
                    "nativeSkills": {
                      "anyOf": [
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "string",
                          "const": "auto"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                "customCommands": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "command": {},
                      "description": {}
                    },
                    "required": [
                      "command",
                      "description"
                    ],
                    "additionalProperties": false
                  }
                },
                "configWrites": {
                  "type": "boolean"
                },
                "dmPolicy": {
                  "default": "pairing",
                  "type": "string",
                  "enum": [
                    "pairing",
                    "allowlist",
                    "open",
                    "disabled"
                  ]
                },
                "botToken": {
                  "type": "string"
                },
                "tokenFile": {
                  "type": "string"
                },
                "replyToMode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "off"
                    },
                    {
                      "type": "string",
                      "const": "first"
                    },
                    {
                      "type": "string",
                      "const": "all"
                    }
                  ]
                },
                "groups": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "requireMention": {
                        "type": "boolean"
                      },
                      "groupPolicy": {
                        "type": "string",
                        "enum": [
                          "open",
                          "disabled",
                          "allowlist"
                        ]
                      },
                      "tools": {
                        "type": "object",
                        "properties": {
                          "allow": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "alsoAllow": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "deny": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "additionalProperties": false
                      },
                      "toolsBySender": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "allow": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "alsoAllow": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "deny": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "skills": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "enabled": {
                        "type": "boolean"
                      },
                      "allowFrom": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        }
                      },
                      "systemPrompt": {
                        "type": "string"
                      },
                      "topics": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "requireMention": {
                              "type": "boolean"
                            },
                            "groupPolicy": {
                              "type": "string",
                              "enum": [
                                "open",
                                "disabled",
                                "allowlist"
                              ]
                            },
                            "skills": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "allowFrom": {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            },
                            "systemPrompt": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false
                        }
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "allowFrom": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  }
                },
                "defaultTo": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "groupAllowFrom": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  }
                },
                "groupPolicy": {
                  "default": "allowlist",
                  "type": "string",
                  "enum": [
                    "open",
                    "disabled",
                    "allowlist"
                  ]
                },
                "historyLimit": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "dmHistoryLimit": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "dms": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "historyLimit": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "textChunkLimit": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "chunkMode": {
                  "type": "string",
                  "enum": [
                    "length",
                    "newline"
                  ]
                },
                "streaming": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "string",
                      "enum": [
                        "off",
                        "partial",
                        "block",
                        "progress"
                      ]
                    }
                  ]
                },
                "blockStreaming": {
                  "type": "boolean"
                },
                "draftChunk": {
                  "type": "object",
                  "properties": {
                    "minChars": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "maxChars": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "breakPreference": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "paragraph"
                        },
                        {
                          "type": "string",
                          "const": "newline"
                        },
                        {
                          "type": "string",
                          "const": "sentence"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                "blockStreamingCoalesce": {
                  "type": "object",
                  "properties": {
                    "minChars": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "maxChars": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "idleMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "additionalProperties": false
                },
                "streamMode": {
                  "type": "string",
                  "enum": [
                    "off",
                    "partial",
                    "block"
                  ]
                },
                "mediaMaxMb": {
                  "type": "number",
                  "exclusiveMinimum": 0
                },
                "timeoutSeconds": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "retry": {
                  "type": "object",
                  "properties": {
                    "attempts": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 9007199254740991
                    },
                    "minDelayMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "maxDelayMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "jitter": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 1
                    }
                  },
                  "additionalProperties": false
                },
                "network": {
                  "type": "object",
                  "properties": {
                    "autoSelectFamily": {
                      "type": "boolean"
                    },
                    "dnsResultOrder": {
                      "type": "string",
                      "enum": [
                        "ipv4first",
                        "verbatim"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                "proxy": {
                  "type": "string"
                },
                "webhookUrl": {
                  "description": "Public HTTPS webhook URL registered with Telegram for inbound updates. This must be internet-reachable and requires channels.telegram.webhookSecret.",
                  "type": "string"
                },
                "webhookSecret": {
                  "description": "Secret token sent to Telegram during webhook registration and verified on inbound webhook requests. Telegram returns this value for verification; this is not the gateway auth token and not the bot token.",
                  "type": "string"
                },
                "webhookPath": {
                  "description": "Local webhook route path served by the gateway listener. Defaults to /telegram-webhook.",
                  "type": "string"
                },
                "webhookHost": {
                  "description": "Local bind host for the webhook listener. Defaults to 127.0.0.1; keep loopback unless you intentionally expose direct ingress.",
                  "type": "string"
                },
                "webhookPort": {
                  "description": "Local bind port for the webhook listener. Defaults to 8787; set to 0 to let the OS assign an ephemeral port.",
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "actions": {
                  "type": "object",
                  "properties": {
                    "reactions": {
                      "type": "boolean"
                    },
                    "sendMessage": {
                      "type": "boolean"
                    },
                    "deleteMessage": {
                      "type": "boolean"
                    },
                    "sticker": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                },
                "reactionNotifications": {
                  "type": "string",
                  "enum": [
                    "off",
                    "own",
                    "all"
                  ]
                },
                "reactionLevel": {
                  "type": "string",
                  "enum": [
                    "off",
                    "ack",
                    "minimal",
                    "extensive"
                  ]
                },
                "heartbeat": {
                  "type": "object",
                  "properties": {
                    "showOk": {
                      "type": "boolean"
                    },
                    "showAlerts": {
                      "type": "boolean"
                    },
                    "useIndicator": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                },
                "linkPreview": {
                  "type": "boolean"
                },
                "responsePrefix": {
                  "type": "string"
                },
                "ackReaction": {
                  "type": "string"
                },
                "accounts": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "capabilities": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "inlineButtons": {
                                "type": "string",
                                "enum": [
                                  "off",
                                  "dm",
                                  "group",
                                  "all",
                                  "allowlist"
                                ]
                              }
                            },
                            "additionalProperties": false
                          }
                        ]
                      },
                      "markdown": {
                        "type": "object",
                        "properties": {
                          "tables": {
                            "type": "string",
                            "enum": [
                              "off",
                              "bullets",
                              "code"
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      "enabled": {
                        "type": "boolean"
                      },
                      "commands": {
                        "type": "object",
                        "properties": {
                          "native": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "string",
                                "const": "auto"
                              }
                            ]
                          },
                          "nativeSkills": {
                            "anyOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "string",
                                "const": "auto"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      "customCommands": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "command": {},
                            "description": {}
                          },
                          "required": [
                            "command",
                            "description"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "configWrites": {
                        "type": "boolean"
                      },
                      "dmPolicy": {
                        "default": "pairing",
                        "type": "string",
                        "enum": [
                          "pairing",
                          "allowlist",
                          "open",
                          "disabled"
                        ]
                      },
                      "botToken": {
                        "type": "string"
                      },
                      "tokenFile": {
                        "type": "string"
                      },
                      "replyToMode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "const": "off"
                          },
                          {
                            "type": "string",
                            "const": "first"
                          },
                          {
                            "type": "string",
                            "const": "all"
                          }
                        ]
                      },
                      "groups": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "requireMention": {
                              "type": "boolean"
                            },
                            "groupPolicy": {
                              "type": "string",
                              "enum": [
                                "open",
                                "disabled",
                                "allowlist"
                              ]
                            },
                            "tools": {
                              "type": "object",
                              "properties": {
                                "allow": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "alsoAllow": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "deny": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "additionalProperties": false
                            },
                            "toolsBySender": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "allow": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "alsoAllow": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "deny": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "skills": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "allowFrom": {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            },
                            "systemPrompt": {
                              "type": "string"
                            },
                            "topics": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "requireMention": {
                                    "type": "boolean"
                                  },
                                  "groupPolicy": {
                                    "type": "string",
                                    "enum": [
                                      "open",
                                      "disabled",
                                      "allowlist"
                                    ]
                                  },
                                  "skills": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "allowFrom": {
                                    "type": "array",
                                    "items": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "number"
                                        }
                                      ]
                                    }
                                  },
                                  "systemPrompt": {
                                    "type": "string"
                                  }
                                },
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "allowFrom": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        }
                      },
                      "defaultTo": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "number"
                          }
                        ]
                      },
                      "groupAllowFrom": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            }
                          ]
                        }
                      },
                      "groupPolicy": {
                        "default": "allowlist",
                        "type": "string",
                        "enum": [
                          "open",
                          "disabled",
                          "allowlist"
                        ]
                      },
                      "historyLimit": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "dmHistoryLimit": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "dms": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "historyLimit": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "textChunkLimit": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "chunkMode": {
                        "type": "string",
                        "enum": [
                          "length",
                          "newline"
                        ]
                      },
                      "streaming": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "string",
                            "enum": [
                              "off",
                              "partial",
                              "block",
                              "progress"
                            ]
                          }
                        ]
                      },
                      "blockStreaming": {
                        "type": "boolean"
                      },
                      "draftChunk": {
                        "type": "object",
                        "properties": {
                          "minChars": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "maxChars": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "breakPreference": {
                            "anyOf": [
                              {
                                "type": "string",
                                "const": "paragraph"
                              },
                              {
                                "type": "string",
                                "const": "newline"
                              },
                              {
                                "type": "string",
                                "const": "sentence"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      "blockStreamingCoalesce": {
                        "type": "object",
                        "properties": {
                          "minChars": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "maxChars": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "idleMs": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "additionalProperties": false
                      },
                      "streamMode": {
                        "type": "string",
                        "enum": [
                          "off",
                          "partial",
                          "block"
                        ]
                      },
                      "mediaMaxMb": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "timeoutSeconds": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "retry": {
                        "type": "object",
                        "properties": {
                          "attempts": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 9007199254740991
                          },
                          "minDelayMs": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "maxDelayMs": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "jitter": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          }
                        },
                        "additionalProperties": false
                      },
                      "network": {
                        "type": "object",
                        "properties": {
                          "autoSelectFamily": {
                            "type": "boolean"
                          },
                          "dnsResultOrder": {
                            "type": "string",
                            "enum": [
                              "ipv4first",
                              "verbatim"
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      "proxy": {
                        "type": "string"
                      },
                      "webhookUrl": {
                        "description": "Public HTTPS webhook URL registered with Telegram for inbound updates. This must be internet-reachable and requires channels.telegram.webhookSecret.",
                        "type": "string"
                      },
                      "webhookSecret": {
                        "description": "Secret token sent to Telegram during webhook registration and verified on inbound webhook requests. Telegram returns this value for verification; this is not the gateway auth token and not the bot token.",
                        "type": "string"
                      },
                      "webhookPath": {
                        "description": "Local webhook route path served by the gateway listener. Defaults to /telegram-webhook.",
                        "type": "string"
                      },
                      "webhookHost": {
                        "description": "Local bind host for the webhook listener. Defaults to 127.0.0.1; keep loopback unless you intentionally expose direct ingress.",
                        "type": "string"
                      },
                      "webhookPort": {
                        "description": "Local bind port for the webhook listener. Defaults to 8787; set to 0 to let the OS assign an ephemeral port.",
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "actions": {
                        "type": "object",
                        "properties": {
                          "reactions": {
                            "type": "boolean"
                          },
                          "sendMessage": {
                            "type": "boolean"
                          },
                          "deleteMessage": {
                            "type": "boolean"
                          },
                          "sticker": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      "reactionNotifications": {
                        "type": "string",
                        "enum": [
                          "off",
                          "own",
                          "all"
                        ]
                      },
                      "reactionLevel": {
                        "type": "string",
                        "enum": [
                          "off",
                          "ack",
                          "minimal",
                          "extensive"
                        ]
                      },
                      "heartbeat": {
                        "type": "object",
                        "properties": {
                          "showOk": {
                            "type": "boolean"
                          },
                          "showAlerts": {
                            "type": "boolean"
                          },
                          "useIndicator": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      "linkPreview": {
                        "type": "boolean"
                      },
                      "responsePrefix": {
                        "type": "string"
                      },
                      "ackReaction": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "dmPolicy",
                      "groupPolicy"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "dmPolicy",
                "groupPolicy"
              ],
              "additionalProperties": false
            }
          },
          "additionalProperties": true,
          "required": []
        },
        "discovery": {
          "type": "object",
          "properties": {
            "wideArea": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            },
            "mdns": {
              "type": "object",
              "properties": {
                "mode": {
                  "type": "string",
                  "enum": [
                    "off",
                    "minimal",
                    "full"
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "canvasHost": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "root": {
              "type": "string"
            },
            "port": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "liveReload": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        },
        "talk": {
          "type": "object",
          "properties": {
            "provider": {
              "type": "string"
            },
            "providers": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "object",
                "properties": {
                  "voiceId": {
                    "type": "string"
                  },
                  "voiceAliases": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "modelId": {
                    "type": "string"
                  },
                  "outputFormat": {
                    "type": "string"
                  },
                  "apiKey": {
                    "type": "string"
                  }
                },
                "additionalProperties": {}
              }
            },
            "voiceId": {
              "type": "string"
            },
            "voiceAliases": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "string"
              }
            },
            "modelId": {
              "type": "string"
            },
            "outputFormat": {
              "type": "string"
            },
            "apiKey": {
              "type": "string"
            },
            "interruptOnSpeech": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        },
        "gateway": {
          "type": "object",
          "properties": {
            "port": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "mode": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "local"
                },
                {
                  "type": "string",
                  "const": "remote"
                }
              ]
            },
            "bind": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "auto"
                },
                {
                  "type": "string",
                  "const": "lan"
                },
                {
                  "type": "string",
                  "const": "loopback"
                },
                {
                  "type": "string",
                  "const": "custom"
                },
                {
                  "type": "string",
                  "const": "tailnet"
                }
              ]
            },
            "customBindHost": {
              "type": "string"
            },
            "controlUi": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "basePath": {
                  "type": "string"
                },
                "root": {
                  "type": "string"
                },
                "allowedOrigins": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "dangerouslyAllowHostHeaderOriginFallback": {
                  "type": "boolean"
                },
                "allowInsecureAuth": {
                  "type": "boolean"
                },
                "dangerouslyDisableDeviceAuth": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            },
            "auth": {
              "type": "object",
              "properties": {
                "mode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "none"
                    },
                    {
                      "type": "string",
                      "const": "token"
                    },
                    {
                      "type": "string",
                      "const": "password"
                    },
                    {
                      "type": "string",
                      "const": "trusted-proxy"
                    }
                  ]
                },
                "token": {
                  "type": "string"
                },
                "password": {
                  "type": "string"
                },
                "allowTailscale": {
                  "type": "boolean"
                },
                "rateLimit": {
                  "type": "object",
                  "properties": {
                    "maxAttempts": {
                      "type": "number"
                    },
                    "windowMs": {
                      "type": "number"
                    },
                    "lockoutMs": {
                      "type": "number"
                    },
                    "exemptLoopback": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                },
                "trustedProxy": {
                  "type": "object",
                  "properties": {
                    "userHeader": {
                      "type": "string",
                      "minLength": 1
                    },
                    "requiredHeaders": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "allowUsers": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "userHeader"
                  ],
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "trustedProxies": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "allowRealIpFallback": {
              "type": "boolean"
            },
            "tools": {
              "type": "object",
              "properties": {
                "deny": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "allow": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "additionalProperties": false
            },
            "channelHealthCheckMinutes": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "tailscale": {
              "type": "object",
              "properties": {
                "mode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "off"
                    },
                    {
                      "type": "string",
                      "const": "serve"
                    },
                    {
                      "type": "string",
                      "const": "funnel"
                    }
                  ]
                },
                "resetOnExit": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            },
            "remote": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                },
                "transport": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "ssh"
                    },
                    {
                      "type": "string",
                      "const": "direct"
                    }
                  ]
                },
                "token": {
                  "type": "string"
                },
                "password": {
                  "type": "string"
                },
                "tlsFingerprint": {
                  "type": "string"
                },
                "sshTarget": {
                  "type": "string"
                },
                "sshIdentity": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "reload": {
              "type": "object",
              "properties": {
                "mode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "off"
                    },
                    {
                      "type": "string",
                      "const": "restart"
                    },
                    {
                      "type": "string",
                      "const": "hot"
                    },
                    {
                      "type": "string",
                      "const": "hybrid"
                    }
                  ]
                },
                "debounceMs": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "additionalProperties": false
            },
            "tls": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "boolean"
                },
                "autoGenerate": {
                  "type": "boolean"
                },
                "certPath": {
                  "type": "string"
                },
                "keyPath": {
                  "type": "string"
                },
                "caPath": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "http": {
              "type": "object",
              "properties": {
                "endpoints": {
                  "type": "object",
                  "properties": {
                    "chatCompletions": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    },
                    "responses": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "maxBodyBytes": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "maxUrlParts": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "files": {
                          "type": "object",
                          "properties": {
                            "allowUrl": {
                              "type": "boolean"
                            },
                            "urlAllowlist": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "allowedMimes": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "maxBytes": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "maxChars": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "maxRedirects": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "timeoutMs": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "pdf": {
                              "type": "object",
                              "properties": {
                                "maxPages": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "maxPixels": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "minTextChars": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "additionalProperties": false
                        },
                        "images": {
                          "type": "object",
                          "properties": {
                            "allowUrl": {
                              "type": "boolean"
                            },
                            "urlAllowlist": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "allowedMimes": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "maxBytes": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "maxRedirects": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "timeoutMs": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "securityHeaders": {
                  "type": "object",
                  "properties": {
                    "strictTransportSecurity": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "boolean",
                          "const": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            },
            "nodes": {
              "type": "object",
              "properties": {
                "browser": {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "auto"
                        },
                        {
                          "type": "string",
                          "const": "manual"
                        },
                        {
                          "type": "string",
                          "const": "off"
                        }
                      ]
                    },
                    "node": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "allowCommands": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "denyCommands": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "memory": {
          "type": "object",
          "properties": {
            "backend": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "builtin"
                },
                {
                  "type": "string",
                  "const": "qmd"
                }
              ]
            },
            "citations": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "auto"
                },
                {
                  "type": "string",
                  "const": "on"
                },
                {
                  "type": "string",
                  "const": "off"
                }
              ]
            },
            "qmd": {
              "type": "object",
              "properties": {
                "command": {
                  "type": "string"
                },
                "mcporter": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "serverName": {
                      "type": "string"
                    },
                    "startDaemon": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                },
                "searchMode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "query"
                    },
                    {
                      "type": "string",
                      "const": "search"
                    },
                    {
                      "type": "string",
                      "const": "vsearch"
                    }
                  ]
                },
                "includeDefaultMemory": {
                  "type": "boolean"
                },
                "paths": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "path": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "pattern": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "path"
                    ],
                    "additionalProperties": false
                  }
                },
                "sessions": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "exportDir": {
                      "type": "string"
                    },
                    "retentionDays": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "additionalProperties": false
                },
                "update": {
                  "type": "object",
                  "properties": {
                    "interval": {
                      "type": "string"
                    },
                    "debounceMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "onBoot": {
                      "type": "boolean"
                    },
                    "waitForBootSync": {
                      "type": "boolean"
                    },
                    "embedInterval": {
                      "type": "string"
                    },
                    "commandTimeoutMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "updateTimeoutMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "embedTimeoutMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "additionalProperties": false
                },
                "limits": {
                  "type": "object",
                  "properties": {
                    "maxResults": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "maxSnippetChars": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "maxInjectedChars": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "timeoutMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "additionalProperties": false
                },
                "scope": {
                  "type": "object",
                  "properties": {
                    "default": {
                      "anyOf": [
                        {
                          "type": "string",
                          "const": "allow"
                        },
                        {
                          "type": "string",
                          "const": "deny"
                        }
                      ]
                    },
                    "rules": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "action": {
                            "anyOf": [
                              {
                                "type": "string",
                                "const": "allow"
                              },
                              {
                                "type": "string",
                                "const": "deny"
                              }
                            ]
                          },
                          "match": {
                            "type": "object",
                            "properties": {
                              "channel": {
                                "type": "string"
                              },
                              "chatType": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "const": "direct"
                                  },
                                  {
                                    "type": "string",
                                    "const": "group"
                                  },
                                  {
                                    "type": "string",
                                    "const": "channel"
                                  },
                                  {
                                    "type": "string",
                                    "const": "dm"
                                  }
                                ]
                              },
                              "keyPrefix": {
                                "type": "string"
                              },
                              "rawKeyPrefix": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "action"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            }
          },
          "additionalProperties": false
        },
        "skills": {
          "type": "object",
          "properties": {
            "allowBundled": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "load": {
              "type": "object",
              "properties": {
                "extraDirs": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "watch": {
                  "type": "boolean"
                },
                "watchDebounceMs": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "additionalProperties": false
            },
            "install": {
              "type": "object",
              "properties": {
                "preferBrew": {
                  "type": "boolean"
                },
                "nodeManager": {
                  "anyOf": [
                    {
                      "type": "string",
                      "const": "npm"
                    },
                    {
                      "type": "string",
                      "const": "pnpm"
                    },
                    {
                      "type": "string",
                      "const": "yarn"
                    },
                    {
                      "type": "string",
                      "const": "bun"
                    }
                  ]
                }
              },
              "additionalProperties": false
            },
            "limits": {
              "type": "object",
              "properties": {
                "maxCandidatesPerRoot": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 9007199254740991
                },
                "maxSkillsLoadedPerSource": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 9007199254740991
                },
                "maxSkillsInPrompt": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "maxSkillsPromptChars": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "maxSkillFileBytes": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "additionalProperties": false
            },
            "entries": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "apiKey": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "const": "env"
                              },
                              "provider": {
                                "type": "string",
                                "pattern": "^[a-z][a-z0-9_-]{0,63}$"
                              },
                              "id": {
                                "type": "string",
                                "pattern": "^[A-Z][A-Z0-9_]{0,127}$"
                              }
                            },
                            "required": [
                              "source",
                              "provider",
                              "id"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "const": "file"
                              },
                              "provider": {
                                "type": "string",
                                "pattern": "^[a-z][a-z0-9_-]{0,63}$"
                              },
                              "id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "source",
                              "provider",
                              "id"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "source": {
                                "type": "string",
                                "const": "exec"
                              },
                              "provider": {
                                "type": "string",
                                "pattern": "^[a-z][a-z0-9_-]{0,63}$"
                              },
                              "id": {
                                "type": "string",
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$"
                              }
                            },
                            "required": [
                              "source",
                              "provider",
                              "id"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      }
                    ]
                  },
                  "env": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "config": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "additionalProperties": false
        },
        "plugins": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "allow": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "deny": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "load": {
              "type": "object",
              "properties": {
                "paths": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "additionalProperties": false
            },
            "slots": {
              "type": "object",
              "properties": {
                "memory": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "entries": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "object",
                "properties": {
                  "enabled": {
                    "type": "boolean"
                  },
                  "config": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": false
              },
              "properties": {
                "openclaw-plugin": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {
                        "command": {
                          "type": "string"
                        },
                        "baseArgs": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "cwd": {
                          "type": "string"
                        },
                        "env": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "bmad-method": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {
                        "bmadMethodPath": {
                          "type": "string",
                          "description": "Path to the BMad method files directory. Defaults to the bundled copy."
                        }
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "email": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "foundry-openclaw": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {
                        "dataDir": {
                          "type": "string",
                          "description": "Directory to store forged artifacts (default: ~/.openclaw/foundry)"
                        },
                        "openclawPath": {
                          "type": "string",
                          "description": "Path to OpenClaw installation for loading local docs"
                        },
                        "autoLearn": {
                          "type": "boolean",
                          "description": "Automatically learn from agent failures and successes",
                          "default": true
                        },
                        "sources": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "arxiv": {
                              "type": "boolean",
                              "description": "Learn from arXiv papers",
                              "default": true
                            },
                            "github": {
                              "type": "boolean",
                              "description": "Learn from GitHub repos",
                              "default": true
                            },
                            "docs": {
                              "type": "boolean",
                              "description": "Learn from OpenClaw documentation",
                              "default": true
                            },
                            "experience": {
                              "type": "boolean",
                              "description": "Learn from own successes/failures",
                              "default": true
                            }
                          }
                        },
                        "marketplace": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "url": {
                              "type": "string",
                              "description": "Foundry marketplace URL",
                              "default": "https://api.claw.getfoundry.app"
                            },
                            "autoPublish": {
                              "type": "boolean",
                              "description": "Auto-publish high-value patterns",
                              "default": false
                            }
                          }
                        }
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "acpx": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {
                        "cwd": {
                          "type": "string"
                        },
                        "permissionMode": {
                          "type": "string",
                          "enum": [
                            "approve-all",
                            "approve-reads",
                            "deny-all"
                          ]
                        },
                        "nonInteractivePermissions": {
                          "type": "string",
                          "enum": [
                            "deny",
                            "fail"
                          ]
                        },
                        "timeoutSeconds": {
                          "type": "number",
                          "minimum": 0.001
                        },
                        "queueOwnerTtlSeconds": {
                          "type": "number",
                          "minimum": 0
                        }
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "bluebubbles": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "copilot-proxy": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "device-pair": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {
                        "publicUrl": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "diagnostics-otel": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "discord": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "feishu": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "google-gemini-cli-auth": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "googlechat": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "imessage": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "irc": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "line": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "llm-task": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {
                        "defaultProvider": {
                          "type": "string"
                        },
                        "defaultModel": {
                          "type": "string"
                        },
                        "defaultAuthProfileId": {
                          "type": "string"
                        },
                        "allowedModels": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Allowlist of provider/model keys like openai-codex/gpt-5.2."
                        },
                        "maxTokens": {
                          "type": "number"
                        },
                        "timeoutMs": {
                          "type": "number"
                        }
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "lobster": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "matrix": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "mattermost": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "memory-core": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "memory-lancedb": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {
                        "embedding": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "apiKey": {
                              "type": "string"
                            },
                            "model": {
                              "type": "string",
                              "enum": [
                                "text-embedding-3-small",
                                "text-embedding-3-large"
                              ]
                            }
                          },
                          "required": [
                            "apiKey"
                          ]
                        },
                        "dbPath": {
                          "type": "string"
                        },
                        "autoCapture": {
                          "type": "boolean"
                        },
                        "autoRecall": {
                          "type": "boolean"
                        },
                        "captureMaxChars": {
                          "type": "number",
                          "minimum": 100,
                          "maximum": 10000
                        }
                      },
                      "required": [
                        "embedding"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                "minimax-portal-auth": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "msteams": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "nextcloud-talk": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "nostr": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "open-prose": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "phone-control": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "qwen-portal-auth": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "signal": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "slack": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "synology-chat": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "talk-voice": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "telegram": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "thread-ownership": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {
                        "forwarderUrl": {
                          "type": "string"
                        },
                        "abTestChannels": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "tlon": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "twitch": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "voice-call": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {
                        "enabled": {
                          "type": "boolean"
                        },
                        "provider": {
                          "type": "string",
                          "enum": [
                            "telnyx",
                            "twilio",
                            "plivo",
                            "mock"
                          ]
                        },
                        "telnyx": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "apiKey": {
                              "type": "string"
                            },
                            "connectionId": {
                              "type": "string"
                            },
                            "publicKey": {
                              "type": "string"
                            }
                          }
                        },
                        "twilio": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "accountSid": {
                              "type": "string"
                            },
                            "authToken": {
                              "type": "string"
                            }
                          }
                        },
                        "plivo": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "authId": {
                              "type": "string"
                            },
                            "authToken": {
                              "type": "string"
                            }
                          }
                        },
                        "fromNumber": {
                          "type": "string",
                          "pattern": "^\\+[1-9]\\d{1,14}$"
                        },
                        "toNumber": {
                          "type": "string",
                          "pattern": "^\\+[1-9]\\d{1,14}$"
                        },
                        "inboundPolicy": {
                          "type": "string",
                          "enum": [
                            "disabled",
                            "allowlist",
                            "pairing",
                            "open"
                          ]
                        },
                        "allowFrom": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^\\+[1-9]\\d{1,14}$"
                          }
                        },
                        "inboundGreeting": {
                          "type": "string"
                        },
                        "outbound": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "defaultMode": {
                              "type": "string",
                              "enum": [
                                "notify",
                                "conversation"
                              ]
                            },
                            "notifyHangupDelaySec": {
                              "type": "integer",
                              "minimum": 0
                            }
                          }
                        },
                        "maxDurationSeconds": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "silenceTimeoutMs": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "transcriptTimeoutMs": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "ringTimeoutMs": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "maxConcurrentCalls": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "serve": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "port": {
                              "type": "integer",
                              "minimum": 1
                            },
                            "bind": {
                              "type": "string"
                            },
                            "path": {
                              "type": "string"
                            }
                          }
                        },
                        "tailscale": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "mode": {
                              "type": "string",
                              "enum": [
                                "off",
                                "serve",
                                "funnel"
                              ]
                            },
                            "path": {
                              "type": "string"
                            }
                          }
                        },
                        "tunnel": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "provider": {
                              "type": "string",
                              "enum": [
                                "none",
                                "ngrok",
                                "tailscale-serve",
                                "tailscale-funnel"
                              ]
                            },
                            "ngrokAuthToken": {
                              "type": "string"
                            },
                            "ngrokDomain": {
                              "type": "string"
                            },
                            "allowNgrokFreeTierLoopbackBypass": {
                              "type": "boolean"
                            }
                          }
                        },
                        "streaming": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "enabled": {
                              "type": "boolean"
                            },
                            "sttProvider": {
                              "type": "string",
                              "enum": [
                                "openai-realtime"
                              ]
                            },
                            "openaiApiKey": {
                              "type": "string"
                            },
                            "sttModel": {
                              "type": "string"
                            },
                            "silenceDurationMs": {
                              "type": "integer",
                              "minimum": 1
                            },
                            "vadThreshold": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "streamPath": {
                              "type": "string"
                            }
                          }
                        },
                        "publicUrl": {
                          "type": "string"
                        },
                        "skipSignatureVerification": {
                          "type": "boolean"
                        },
                        "stt": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "provider": {
                              "type": "string",
                              "enum": [
                                "openai"
                              ]
                            },
                            "model": {
                              "type": "string"
                            }
                          }
                        },
                        "tts": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "auto": {
                              "type": "string",
                              "enum": [
                                "off",
                                "always",
                                "inbound",
                                "tagged"
                              ]
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "mode": {
                              "type": "string",
                              "enum": [
                                "final",
                                "all"
                              ]
                            },
                            "provider": {
                              "type": "string",
                              "enum": [
                                "openai",
                                "elevenlabs",
                                "edge"
                              ]
                            },
                            "summaryModel": {
                              "type": "string"
                            },
                            "modelOverrides": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "allowText": {
                                  "type": "boolean"
                                },
                                "allowProvider": {
                                  "type": "boolean"
                                },
                                "allowVoice": {
                                  "type": "boolean"
                                },
                                "allowModelId": {
                                  "type": "boolean"
                                },
                                "allowVoiceSettings": {
                                  "type": "boolean"
                                },
                                "allowNormalization": {
                                  "type": "boolean"
                                },
                                "allowSeed": {
                                  "type": "boolean"
                                }
                              }
                            },
                            "elevenlabs": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "apiKey": {
                                  "type": "string"
                                },
                                "baseUrl": {
                                  "type": "string"
                                },
                                "voiceId": {
                                  "type": "string"
                                },
                                "modelId": {
                                  "type": "string"
                                },
                                "seed": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 4294967295
                                },
                                "applyTextNormalization": {
                                  "type": "string",
                                  "enum": [
                                    "auto",
                                    "on",
                                    "off"
                                  ]
                                },
                                "languageCode": {
                                  "type": "string"
                                },
                                "voiceSettings": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "properties": {
                                    "stability": {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 1
                                    },
                                    "similarityBoost": {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 1
                                    },
                                    "style": {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 1
                                    },
                                    "useSpeakerBoost": {
                                      "type": "boolean"
                                    },
                                    "speed": {
                                      "type": "number",
                                      "minimum": 0.5,
                                      "maximum": 2
                                    }
                                  }
                                }
                              }
                            },
                            "openai": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "apiKey": {
                                  "type": "string"
                                },
                                "model": {
                                  "type": "string"
                                },
                                "voice": {
                                  "type": "string"
                                }
                              }
                            },
                            "edge": {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "voice": {
                                  "type": "string"
                                },
                                "lang": {
                                  "type": "string"
                                },
                                "outputFormat": {
                                  "type": "string"
                                },
                                "pitch": {
                                  "type": "string"
                                },
                                "rate": {
                                  "type": "string"
                                },
                                "volume": {
                                  "type": "string"
                                },
                                "saveSubtitles": {
                                  "type": "boolean"
                                },
                                "proxy": {
                                  "type": "string"
                                },
                                "timeoutMs": {
                                  "type": "integer",
                                  "minimum": 1000,
                                  "maximum": 120000
                                }
                              }
                            },
                            "prefsPath": {
                              "type": "string"
                            },
                            "maxTextLength": {
                              "type": "integer",
                              "minimum": 1
                            },
                            "timeoutMs": {
                              "type": "integer",
                              "minimum": 1000,
                              "maximum": 120000
                            }
                          }
                        },
                        "store": {
                          "type": "string"
                        },
                        "responseModel": {
                          "type": "string"
                        },
                        "responseSystemPrompt": {
                          "type": "string"
                        },
                        "responseTimeoutMs": {
                          "type": "integer",
                          "minimum": 1
                        }
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "whatsapp": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "zalo": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                },
                "zalouser": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "config": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": false,
                      "properties": {}
                    }
                  },
                  "additionalProperties": false
                }
              }
            },
            "installs": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "object",
                "properties": {
                  "source": {
                    "anyOf": [
                      {
                        "type": "string",
                        "const": "npm"
                      },
                      {
                        "type": "string",
                        "const": "archive"
                      },
                      {
                        "type": "string",
                        "const": "path"
                      }
                    ]
                  },
                  "spec": {
                    "type": "string"
                  },
                  "sourcePath": {
                    "type": "string"
                  },
                  "installPath": {
                    "type": "string"
                  },
                  "version": {
                    "type": "string"
                  },
                  "resolvedName": {
                    "type": "string"
                  },
                  "resolvedVersion": {
                    "type": "string"
                  },
                  "resolvedSpec": {
                    "type": "string"
                  },
                  "integrity": {
                    "type": "string"
                  },

⚠ [Content truncated during persistence — original exceeded size limit. Use offset/limit parameters or request specific sections for large content.]

openai-completions openai-responses openai-codex-responses anthropic-messages google-generative-ai github-copilot bedrock-converse-stream ollama

Maximum nesting depth for sub-agent spawning. 1 = no nesting (default), 2 = sub-agents can spawn sub-sub-agents.

Maximum number of active children a single agent session can spawn (default: 5).

native nativeSkills restart ownerDisplay

Public HTTPS webhook URL registered with Telegram for inbound updates. This must be internet-reachable and requires channels.telegram.webhookSecret.

Local webhook route path served by the gateway listener. Defaults to /telegram-webhook.

Local bind host for the webhook listener. Defaults to 127.0.0.1; keep loopback unless you intentionally expose direct ingress.

Local bind port for the webhook listener. Defaults to 8787; set to 0 to let the OS assign an ephemeral port.

Path to the BMad method files directory. Defaults to the bundled copy.

Directory to store forged artifacts (default: ~/.openclaw/foundry)

Path to OpenClaw installation for loading local docs

Automatically learn from agent failures and successes

Learn from arXiv papers

Learn from GitHub repos

Learn from OpenClaw documentation

Learn from own successes/failures

Foundry marketplace URL

Auto-publish high-value patterns

Allowlist of provider/model keys like openai-codex/gpt-5.2.

none ngrok tailscale-serve tailscale-funnel

OpenClawConfig

Setup wizard state tracking fields that record the most recent guided onboarding run details. Keep these fields for observability and troubleshooting of setup flows across upgrades.

Update-channel and startup-check behavior for keeping OpenClaw runtime versions current. Use conservative channels in production and more experimental channels only in controlled environments.

Diagnostics controls for targeted tracing, telemetry export, and cache inspection during debugging. Keep baseline diagnostics minimal in production and enable deeper signals only when investigating issues.

Logging behavior controls for severity, output destinations, formatting, and sensitive-data redaction. Keep levels and redaction strict enough for production while preserving useful diagnostics.

Gateway runtime surface for bind mode, auth, control UI, remote transport, and operational safety controls. Keep conservative defaults unless you intentionally expose the gateway beyond trusted local interfaces.

Node host controls for features exposed from this gateway node to other nodes or clients. Keep defaults unless you intentionally proxy local capabilities across your node network.

Agent runtime configuration root covering defaults and explicit agent entries used for routing and execution context. Keep this section explicit so model/tool behavior stays predictable across multi-agent workflows.

Global tool access policy and capability configuration across web, exec, media, messaging, and elevated surfaces. Use this section to constrain risky capabilities before broad rollout.

Static routing bindings that pin inbound conversations to specific agent IDs by match rules. Use bindings for deterministic ownership when dynamic routing should not decide.

Global audio ingestion settings used before higher-level tools process speech or media content. Configure this when you need deterministic transcription behavior for voice notes and clips.

Model catalog root for provider definitions, merge/replace behavior, and optional Bedrock discovery integration. Keep provider definitions explicit and validated before relying on production failover paths.

Message formatting, acknowledgment, queueing, debounce, and status reaction behavior for inbound/outbound chat flows. Use this section when channel responsiveness or message UX needs adjustment.

Controls chat command surfaces, owner gating, and elevated command access behavior across providers. Keep defaults unless you need stricter operator controls or broader command availability.

Global session routing, reset, delivery policy, and maintenance controls for conversation history behavior. Keep defaults unless you need stricter isolation, retention, or delivery constraints.

Global scheduler settings for stored cron jobs, run concurrency, delivery fallback, and run-session retention. Keep defaults unless you are scaling job volume or integrating external webhook receivers.

Inbound webhook automation surface for mapping external events into wake or agent actions in OpenClaw. Keep this locked down with explicit token/session/agent controls before exposing it beyond trusted networks.

UI presentation settings for accenting and assistant identity shown in control surfaces. Use this for branding and readability customization without changing runtime behavior.

Browser runtime controls for local or remote CDP attachment, profile routing, and screenshot/snapshot behavior. Keep defaults unless your automation workflow requires custom browser transport settings.

Talk-mode voice synthesis settings for voice identity, model selection, output format, and interruption behavior. Use this section to tune human-facing voice UX while controlling latency and cost.

Channel provider configurations plus shared defaults that control access policies, heartbeat visibility, and per-surface behavior. Keep defaults centralized and override per provider only where required.

Plugin system controls for enabling extensions, constraining load scope, configuring entries, and tracking installs. Keep plugin policy explicit and least-privilege in production environments.

Service discovery settings for local mDNS advertisement and optional wide-area presence signaling. Keep discovery scoped to expected networks to avoid leaking service metadata.

Metadata fields automatically maintained by OpenClaw to record write/version history for this config file. Keep these values system-managed and avoid manual edits unless debugging migration history.

Auto-set when OpenClaw writes the config.

ISO timestamp of the last config write (auto-set).

Environment import and override settings used to supply runtime variables to the gateway process. Use this section to control shell-env loading and explicit variable injection behavior.

Shell environment import controls for loading variables from your login shell during startup. Keep this enabled when you depend on profile-defined secrets or PATH customizations.

Enables loading environment variables from the user shell profile during startup initialization. Keep enabled for developer machines, or disable in locked-down service environments with explicit env management.

Maximum time in milliseconds allowed for shell environment resolution before fallback behavior applies. Use tighter timeouts for faster startup, or increase when shell initialization is heavy.

Explicit key/value environment variable overrides merged into runtime process environment for OpenClaw. Use this for deterministic env configuration instead of relying only on shell profile side effects.

ISO timestamp for when the setup wizard most recently completed on this host. Use this to confirm onboarding recency during support and operational audits.

OpenClaw version recorded at the time of the most recent wizard run on this config. Use this when diagnosing behavior differences across version-to-version onboarding changes.

Source commit identifier recorded for the last wizard execution in development builds. Use this to correlate onboarding behavior with exact source state during debugging.

Command invocation recorded for the latest wizard run to preserve execution context. Use this to reproduce onboarding steps when verifying setup regressions.

Wizard execution mode recorded as "local" or "remote" for the most recent onboarding flow. Use this to understand whether setup targeted direct local runtime or remote gateway topology.

OpenTelemetry export settings for traces, metrics, and logs emitted by gateway components. Use this when integrating with centralized observability backends and distributed tracing pipelines.

Cache-trace logging settings for observing cache decisions and payload context in embedded runs. Enable this temporarily for debugging and disable afterward to reduce sensitive log footprint.

Primary log level threshold for runtime logger output: "silent", "fatal", "error", "warn", "info", "debug", or "trace". Keep "info" or "warn" for production, and use debug/trace only during investigation.

Optional file path for persisted log output in addition to or instead of console logging. Use a managed writable path and align retention/rotation with your operational policy.

Console-specific log threshold: "silent", "fatal", "error", "warn", "info", "debug", or "trace" for terminal output control. Use this to keep local console quieter while retaining richer file logging if needed.

Console output format style: "pretty", "compact", or "json" based on operator and ingestion needs. Use json for machine parsing pipelines and pretty/compact for human-first terminal workflows.

Sensitive redaction mode: "off" disables built-in masking, while "tools" redacts sensitive tool/config payload fields. Keep "tools" in shared logs unless you have isolated secure log sinks.

Additional custom redact regex patterns applied to log output before emission/storage. Use this to mask org-specific tokens and identifiers not covered by built-in redaction rules.

Update channel for git + npm installs ("stable", "beta", or "dev").

Check for npm updates when the gateway starts (default: true).

Enable background auto-update for package installs (default: false).

Minimum delay before stable-channel auto-apply starts (default: 6).

Extra stable-channel rollout spread window in hours (default: 12).

How often beta-channel checks run in hours (default: 1).

Master toggle for diagnostics instrumentation output in logs and telemetry wiring paths. Keep enabled for normal observability, and disable only in tightly constrained environments.

Enable targeted diagnostics logs by flag (e.g. ["telegram.http"]). Supports wildcards like "telegram.*" or "*".

Enables OpenTelemetry export pipeline for traces, metrics, and logs based on configured endpoint/protocol settings. Keep disabled unless your collector endpoint and auth are fully configured.

Collector endpoint URL used for OpenTelemetry export transport, including scheme and port. Use a reachable, trusted collector endpoint and monitor ingestion errors after rollout.

OTel transport protocol for telemetry export: "http/protobuf" or "grpc" depending on collector support. Use the protocol your observability backend expects to avoid dropped telemetry payloads.

Additional HTTP/gRPC metadata headers sent with OpenTelemetry export requests, often used for tenant auth or routing. Keep secrets in env-backed values and avoid unnecessary header sprawl.

Service name reported in telemetry resource attributes to identify this gateway instance in observability backends. Use stable names so dashboards and alerts remain consistent over deployments.

Enable trace signal export to the configured OpenTelemetry collector endpoint. Keep enabled when latency/debug tracing is needed, and disable if you only want metrics/logs.

Enable metrics signal export to the configured OpenTelemetry collector endpoint. Keep enabled for runtime health dashboards, and disable only if metric volume must be minimized.

Enable log signal export through OpenTelemetry in addition to local logging sinks. Use this when centralized log correlation is required across services and agents.

Trace sampling rate (0-1) controlling how much trace traffic is exported to observability backends. Lower rates reduce overhead/cost, while higher rates improve debugging fidelity.

Interval in milliseconds for periodic telemetry flush from buffers to the collector. Increase to reduce export chatter, or lower for faster visibility during active incident response.

Log cache trace snapshots for embedded agent runs (default: false).

JSONL output path for cache trace logs (default: $OPENCLAW_STATE_DIR/logs/cache-trace.jsonl).

Include full message payloads in trace output (default: true).

Include prompt text in trace output (default: true).

Include system prompt in trace output (default: true).

Agent avatar (workspace-relative path, http(s) URL, or data URI).

Optional allowlist of skills for this agent (omit = all skills; empty = no skills).

Shared default settings inherited by agents unless overridden per entry in agents.list. Use defaults to enforce consistent baseline behavior and reduce duplicated per-agent configuration.

Explicit list of configured agents with IDs and optional overrides for model, tools, identity, and workspace. Keep IDs stable over time so bindings, approvals, and session routing remain deterministic.

TCP port used by the gateway listener for API, control UI, and channel-facing ingress paths. Use a dedicated port and avoid collisions with reverse proxies or local developer services.

Gateway operation mode: "local" runs channels and agent runtime on this host, while "remote" connects through remote transport. Keep "local" unless you intentionally run a split remote gateway topology.

Network bind profile: "auto", "lan", "loopback", "custom", or "tailnet" to control interface exposure. Keep "loopback" or "auto" for safest local operation unless external clients must connect.

Explicit bind host/IP used when gateway.bind is set to custom for manual interface targeting. Use a precise address and avoid wildcard binds unless external exposure is required.

Control UI hosting settings including enablement, pathing, and browser-origin/auth hardening behavior. Keep UI exposure minimal and pair with strong auth controls before internet-facing deployments.

Enables serving the gateway Control UI from the gateway HTTP process when true. Keep enabled for local administration, and disable when an external control surface replaces it.

Authentication policy for gateway HTTP/WebSocket access including mode, credentials, trusted-proxy behavior, and rate limiting. Keep auth enabled for every non-loopback deployment.

Gateway auth mode: "none", "token", "password", or "trusted-proxy" depending on your edge architecture. Use token/password for direct exposure, and trusted-proxy only behind hardened identity-aware proxies.

Allows trusted Tailscale identity paths to satisfy gateway auth checks when configured. Use this only when your tailnet identity posture is strong and operator workflows depend on it.

Login/auth attempt throttling controls to reduce credential brute-force risk at the gateway boundary. Keep enabled in exposed environments and tune thresholds to your traffic baseline.

Trusted-proxy auth header mapping for upstream identity providers that inject user claims. Use only with known proxy CIDRs and strict header allowlists to prevent spoofed identity headers.

CIDR/IP allowlist of upstream proxies permitted to provide forwarded client identity headers. Keep this list narrow so untrusted hops cannot impersonate users.

Enables x-real-ip fallback when x-forwarded-for is missing in proxy scenarios. Keep disabled unless your ingress stack requires this compatibility behavior.

Gateway-level tool exposure allow/deny policy that can restrict runtime tool availability independent of agent/tool profiles. Use this for coarse emergency controls and production hardening.

Explicit gateway-level tool allowlist when you want a narrow set of tools available at runtime. Use this for locked-down environments where tool scope must be tightly controlled.

Explicit gateway-level tool denylist to block risky tools even if lower-level policies allow them. Use deny rules for emergency response and defense-in-depth hardening.

Gateway Channel Health Check Interval (min)

Interval in minutes for automatic channel health probing and status updates. Use lower intervals for faster detection, or higher intervals to reduce periodic probe noise.

Tailscale integration settings for Serve/Funnel exposure and lifecycle handling on gateway start/exit. Keep off unless your deployment intentionally relies on Tailscale ingress.

Tailscale publish mode: "off", "serve", or "funnel" for private or public exposure paths. Use "serve" for tailnet-only access and "funnel" only when public internet reachability is required.

Resets Tailscale Serve/Funnel state on gateway exit to avoid stale published routes after shutdown. Keep enabled unless another controller manages publish lifecycle outside the gateway.

Remote gateway connection settings for direct or SSH transport when this instance proxies to another runtime host. Use remote mode only when split-host operation is intentionally configured.

Remote connection transport: "direct" uses configured URL connectivity, while "ssh" tunnels through SSH. Use SSH when you need encrypted tunnel semantics without exposing remote ports.

Live config-reload policy for how edits are applied and when full restarts are triggered. Keep hybrid behavior for safest operational updates unless debugging reload internals.

TLS certificate and key settings for terminating HTTPS directly in the gateway process. Use explicit certificates in production and avoid plaintext exposure on untrusted networks.

Enables TLS termination at the gateway listener so clients connect over HTTPS/WSS directly. Keep enabled for direct internet exposure or any untrusted network boundary.

Auto-generates a local TLS certificate/key pair when explicit files are not configured. Use only for local/dev setups and replace with real certificates for production traffic.

Filesystem path to the TLS certificate file used by the gateway when TLS is enabled. Use managed certificate paths and keep renewal automation aligned with this location.

Filesystem path to the TLS private key file used by the gateway when TLS is enabled. Keep this key file permission-restricted and rotate per your security policy.

Optional CA bundle path for client verification or custom trust-chain requirements at the gateway edge. Use this when private PKI or custom certificate chains are part of deployment.

Gateway HTTP API configuration grouping endpoint toggles and transport-facing API exposure controls. Keep only required endpoints enabled to reduce attack surface.

HTTP endpoint feature toggles under the gateway API surface for compatibility routes and optional integrations. Enable endpoints intentionally and monitor access patterns after rollout.

Optional HTTP response security headers applied by the gateway process itself. Prefer setting these at your reverse proxy when TLS terminates there.

Value for the Strict-Transport-Security response header. Set only on HTTPS origins that you fully control; use false to explicitly disable.

Remote Gateway WebSocket URL (ws:// or wss://).

Remote gateway over SSH (tunnels the gateway port to localhost). Format: user@host or user@host:port.

Optional SSH identity file path (passed to ssh -i).

Bearer token used to authenticate this client to a remote gateway in token-auth deployments. Store via secret/env substitution and rotate alongside remote gateway auth changes.

Password credential used for remote gateway authentication when password mode is enabled. Keep this secret managed externally and avoid plaintext values in committed config.

Expected sha256 TLS fingerprint for the remote gateway (pin to avoid MITM).

Required by default for gateway access (unless using Tailscale Serve identity); required for non-loopback binds.

Enables browser capability wiring in the gateway so browser tools and CDP-driven workflows can run. Disable when browser automation is not needed to reduce surface area and startup work.

Remote CDP websocket URL used to attach to an externally managed browser instance. Use this for centralized browser hosts and keep URL access restricted to trusted network paths.

Default accent color used for browser profile/UI cues where colored identity hints are displayed. Use consistent colors to help operators identify active browser profile context quickly.

Explicit browser executable path when auto-discovery is insufficient for your host environment. Use absolute stable paths so launch behavior stays deterministic across restarts.

Forces browser launch in headless mode when the local launcher starts browser instances. Keep headless enabled for server environments and disable only when visible UI debugging is required.

Disables Chromium sandbox isolation flags for environments where sandboxing fails at runtime. Keep this off whenever possible because process isolation protections are reduced.

Restricts browser mode to attach-only behavior without starting local browser processes. Use this when all browser sessions are externally managed by a remote CDP provider.

Default browser profile name selected when callers do not explicitly choose a profile. Use a stable low-privilege profile as the default to reduce accidental cross-context state use.

Named browser profile connection map used for explicit routing to CDP ports or URLs with optional metadata. Keep profile names consistent and avoid overlapping endpoint definitions.

Per-profile local CDP port used when connecting to browser instances by port instead of URL. Use unique ports per profile to avoid connection collisions.

Per-profile CDP websocket URL used for explicit remote browser routing by profile name. Use this when profile connections terminate on remote hosts or tunnels.

Per-profile browser driver mode: "clawd" or "extension" depending on connection/runtime strategy. Use the driver that matches your browser control stack to avoid protocol mismatches.

Per-profile accent color for visual differentiation in dashboards and browser-related UI hints. Use distinct colors for high-signal operator recognition of active profiles.

Absolute tool allowlist that replaces profile-derived defaults for strict environments. Use this only when you intentionally run a tightly curated subset of tool capabilities.

Global tool denylist that blocks listed tools even when profile or provider rules would allow them. Use deny rules for emergency lockouts and long-term defense-in-depth.

Web-tool policy grouping for search/fetch providers, limits, and fallback behavior tuning. Keep enabled settings aligned with API key availability and outbound networking policy.

Exec-tool policy grouping for shell execution host, security mode, approval behavior, and runtime bindings. Keep conservative defaults in production and tighten elevated execution paths.

Enable image understanding so attached or referenced images can be interpreted into textual context. Disable if you need text-only operation or want to avoid image-processing cost.

Maximum accepted image payload size in bytes before the item is skipped or truncated by policy. Keep limits realistic for your provider caps and infrastructure bandwidth.

Maximum characters returned from image understanding output after model response normalization. Use tighter limits to reduce prompt bloat and larger limits for detail-heavy OCR tasks.

Instruction template used for image understanding requests to shape extraction style and detail level. Keep prompts deterministic so outputs stay consistent across turns and channels.

Timeout in seconds for each image understanding request before it is aborted. Increase for high-resolution analysis and lower it for latency-sensitive operator workflows.

Attachment handling policy for image inputs, including which message attachments qualify for image analysis. Use restrictive settings in untrusted channels to reduce unexpected processing.

Ordered model preferences specifically for image understanding when you want to override shared media models. Put the most reliable multimodal model first to reduce fallback attempts.

Scope selector for when image understanding is attempted (for example only explicit requests versus broader auto-detection). Keep narrow scope in busy channels to control token and API spend.

Shared fallback model list used by media understanding tools when modality-specific model lists are not set. Keep this aligned with available multimodal providers to avoid runtime fallback churn.

Maximum number of concurrent media understanding operations per turn across image, audio, and video tasks. Lower this in resource-constrained deployments to prevent CPU/network saturation.

Enable audio understanding so voice notes or audio clips can be transcribed/summarized for agent context. Disable when audio ingestion is outside policy or unnecessary for your workflows.

Maximum accepted audio payload size in bytes before processing is rejected or clipped by policy. Set this based on expected recording length and upstream provider limits.

Maximum characters retained from audio understanding output to prevent oversized transcript injection. Increase for long-form dictation, or lower to keep conversational turns compact.

Instruction template guiding audio understanding output style, such as concise summary versus near-verbatim transcript. Keep wording consistent so downstream automations can rely on output format.

Timeout in seconds for audio understanding execution before the operation is cancelled. Use longer timeouts for long recordings and tighter ones for interactive chat responsiveness.

Preferred language hint for audio understanding/transcription when provider support is available. Set this to improve recognition accuracy for known primary languages.

Attachment policy for audio inputs indicating which uploaded files are eligible for audio processing. Keep restrictive defaults in mixed-content channels to avoid unintended audio workloads.

Ordered model preferences specifically for audio understanding, used before shared media model fallback. Choose models optimized for transcription quality in your primary language/domain.

Scope selector for when audio understanding runs across inbound messages and attachments. Keep focused scopes in high-volume channels to reduce cost and avoid accidental transcription.

Enable video understanding so clips can be summarized into text for downstream reasoning and responses. Disable when processing video is out of policy or too expensive for your deployment.

Maximum accepted video payload size in bytes before policy rejection or trimming occurs. Tune this to provider and infrastructure limits to avoid repeated timeout/failure loops.

Maximum characters retained from video understanding output to control prompt growth. Raise for dense scene descriptions and lower when concise summaries are preferred.

Instruction template for video understanding describing desired summary granularity and focus areas. Keep this stable so output quality remains predictable across model/provider fallbacks.

Timeout in seconds for each video understanding request before cancellation. Use conservative values in interactive channels and longer values for offline or batch-heavy processing.

Attachment eligibility policy for video analysis, defining which message files can trigger video processing. Keep this explicit in shared channels to prevent accidental large media workloads.

Ordered model preferences specifically for video understanding before shared media fallback applies. Prioritize models with strong multimodal video support to minimize degraded summaries.

Scope selector controlling when video understanding is attempted across incoming events. Narrow scope in noisy channels, and broaden only where video interpretation is core to workflow.

Enable automatic link understanding pre-processing so URLs can be summarized before agent reasoning. Keep enabled for richer context, and disable when strict minimal processing is required.

Maximum number of links expanded per turn during link understanding. Use lower values to control latency/cost in chatty threads and higher values when multi-link context is critical.

Per-link understanding timeout budget in seconds before unresolved links are skipped. Keep this bounded to avoid long stalls when external sites are slow or unreachable.

Preferred model list for link understanding tasks, evaluated in order as fallbacks when supported. Use lightweight models first for routine summarization and heavier models only when needed.

Controls when link understanding runs relative to conversation context and message type. Keep scope conservative to avoid unnecessary fetches on messages where links are not actionable.

Global tool profile name used to select a predefined tool policy baseline before applying allow/deny overrides. Use this for consistent environment posture across agents and keep profile names stable.

Extra tool allowlist entries merged on top of the selected tool profile and default policy. Keep this list small and explicit so audits can quickly identify intentional policy exceptions.

Per-agent override for tool profile selection when one agent needs a different capability baseline. Use this sparingly so policy differences across agents stay intentional and reviewable.

Per-agent additive allowlist for tools on top of global and profile policy. Keep narrow to avoid accidental privilege expansion on specialized agents.

Per-provider tool allow/deny overrides keyed by channel/provider ID to tailor capabilities by surface. Use this when one provider needs stricter controls than global tool policy.

Per-agent provider-specific tool policy overrides for channel-scoped capability control. Use this when a single agent needs tighter restrictions on one provider than others.

Experimental. Enables apply_patch for OpenAI models when allowed by tool policy.

Restrict apply_patch paths to the workspace directory (default: true). Set false to allow writing outside the workspace (dangerous).

Optional allowlist of model ids (e.g. "gpt-5.2" or "openai/gpt-5.2").

Enable repetitive tool-call loop detection and backoff safety checks (default: false).

Tool history window size for loop detection (default: 30).

Warning threshold for repetitive patterns when detector is enabled (default: 10).

Critical threshold for repetitive patterns when detector is enabled (default: 20).

Tool-loop Global Circuit Breaker Threshold

Global no-progress breaker threshold (default: 30).

Enable generic repeated same-tool/same-params loop detection (default: true).

Enable known poll tool no-progress loop detection (default: true).

Enable ping-pong loop detection (default: true).

Restrict filesystem tools (read/write/edit/apply_patch) to the workspace directory (default: false).

Controls which sessions can be targeted by sessions_list/sessions_history/sessions_send. ("tree" default = current session + spawned subagent sessions; "self" = only current; "agent" = any session in the current agent id; "all" = any session; cross-agent still requires tools.agentToAgent).

When true (default), backgrounded exec sessions on exit and node exec lifecycle events enqueue a system event and request a heartbeat.

When true, successful backgrounded exec exits with empty output still enqueue a completion system event (default: false).

Delay in milliseconds before showing an in-progress notice after an exec approval is granted. Increase to reduce flicker for fast commands, or lower for quicker operator feedback.

Selects execution host strategy for shell commands, typically controlling local vs delegated execution environment. Use the safest host mode that still satisfies your automation requirements.

Execution security posture selector controlling sandbox/approval expectations for command execution. Keep strict security mode for untrusted prompts and relax only for trusted operator workflows.

Approval strategy for when exec commands require human confirmation before running. Use stricter ask behavior in shared channels and lower-friction settings in private operator contexts.

Node binding configuration for exec tooling when command execution is delegated through connected nodes. Use explicit node binding only when multi-node routing is required.

Policy for allowing agent-to-agent tool calls and constraining which target agents can be reached. Keep disabled or tightly scoped unless cross-agent orchestration is intentionally enabled.

Enables the agent_to_agent tool surface so one agent can invoke another agent at runtime. Keep off in simple deployments and enable only when orchestration value outweighs complexity.

Allowlist of target agent IDs permitted for agent_to_agent calls when orchestration is enabled. Use explicit allowlists to avoid uncontrolled cross-agent call graphs.

Elevated tool access controls for privileged command surfaces that should only be reachable from trusted senders. Keep disabled unless operator workflows explicitly require elevated actions.

Enables elevated tool execution path when sender and policy checks pass. Keep disabled in public/shared channels and enable only for trusted owner-operated contexts.

Sender allow rules for elevated tools, usually keyed by channel/provider identity formats. Use narrow, explicit identities so elevated commands cannot be triggered by unintended users.

Tool policy wrapper for spawned subagents to restrict or expand tool availability compared to parent defaults. Use this to keep delegated agent capabilities scoped to task intent.

Allow/deny tool policy applied to spawned subagent runtimes for per-subagent hardening. Keep this narrower than parent scope when subagents run semi-autonomous workflows.

Tool policy wrapper for sandboxed agent executions so sandbox runs can have distinct capability boundaries. Use this to enforce stronger safety in sandbox contexts.

Allow/deny tool policy applied when agents run in sandboxed execution environments. Keep policies minimal so sandbox tasks cannot escalate into unnecessary external actions.

Directories to prepend to PATH for exec runs (gateway/sandbox).

Allow stdin-only safe binaries to run without explicit allowlist entries.

Additional explicit directories trusted for safe-bin path checks (PATH entries are never auto-trusted).

Optional per-binary safe-bin profiles (positional limits + allowed/denied flags).

Approval routing controls for forwarding exec approval requests to chat destinations outside the originating session. Keep this disabled unless operators need explicit out-of-band approval visibility.

Groups exec-approval forwarding behavior including enablement, routing mode, filters, and explicit targets. Configure here when approval prompts must reach operational channels instead of only the origin thread.

Enables forwarding of exec approval requests to configured delivery destinations (default: false). Keep disabled in low-risk setups and enable only when human approval responders need channel-visible prompts.

Controls where approval prompts are sent: "session" uses origin chat, "targets" uses configured targets, and "both" sends to both paths. Use "session" as baseline and expand only when operational workflow requires redundancy.

Optional allowlist of agent IDs eligible for forwarded approvals, for example `["primary", "ops-agent"]`. Use this to limit forwarding blast radius and avoid notifying channels for unrelated agents.

Optional session-key filters matched as substring or regex-style patterns, for example `["discord:", "^agent:ops:"]`. Use narrow patterns so only intended approval contexts are forwarded to shared destinations.

Explicit delivery targets used when forwarding mode includes targets, each with channel and destination details. Keep target lists least-privilege and validate each destination before enabling broad forwarding.

Channel/provider ID used for forwarded approval delivery, such as discord, slack, or a plugin channel id. Use valid channel IDs only so approvals do not silently fail due to unknown routes.

Destination identifier inside the target channel (channel ID, user ID, or thread root depending on provider). Verify semantics per provider because destination format differs across channel integrations.

Optional account selector for multi-account channel setups when approvals must route through a specific account context. Use this only when the target channel has multiple configured identities.

Optional thread/topic target for channels that support threaded delivery of forwarded approvals. Use this to keep approval traffic contained in operational threads instead of main channels.

Legacy override: allow cross-context sends across all providers.

Allow sends to other channels within the same provider (default: true).

Allow sends across different providers (default: false).

Add a visible origin marker when sending cross-context (default: true).

Text prefix for cross-context markers (supports "{channel}").

Text suffix for cross-context markers (supports "{channel}").

Enable broadcast action (default: true).

Enable the web_search tool (requires a provider API key).

Search provider ("brave", "perplexity", "grok", "gemini", or "kimi"). Auto-detected from available API keys if omitted.

Brave Search API key (fallback: BRAVE_API_KEY env var).

Default number of results to return (1-10).

Timeout in seconds for web_search requests.

Cache TTL in minutes for web_search results.

Perplexity or OpenRouter API key (fallback: PERPLEXITY_API_KEY or OPENROUTER_API_KEY env var).

Perplexity base URL override (default: https://openrouter.ai/api/v1 or https://api.perplexity.ai).

Perplexity model override (default: "perplexity/sonar-pro").

Gemini API key for Google Search grounding (fallback: GEMINI_API_KEY env var).

Gemini model override (default: "gemini-2.5-flash").

Grok (xAI) API key (fallback: XAI_API_KEY env var).

Grok model override (default: "grok-4-1-fast").

Moonshot/Kimi API key (fallback: KIMI_API_KEY or MOONSHOT_API_KEY env var).

Kimi base URL override (default: "https://api.moonshot.ai/v1").

Kimi model override (default: "moonshot-v1-128k").

Enable the web_fetch tool (lightweight HTTP fetch).

Max characters returned by web_fetch (truncated).

Hard cap for web_fetch maxChars (applies to config and tool calls).

Timeout in seconds for web_fetch requests.

Cache TTL in minutes for web_fetch results.

Maximum redirects allowed for web_fetch (default: 3).

Override User-Agent header for web_fetch requests.

Use Readability to extract main content from HTML (fallbacks to basic HTML cleanup).

Enable Firecrawl fallback for web_fetch (if configured).

Firecrawl API key (fallback: FIRECRAWL_API_KEY env var).

Firecrawl base URL (e.g. https://api.firecrawl.dev or custom endpoint).

When true, Firecrawl returns only the main content (default: true).

Firecrawl maxAge (ms) for cached results when supported by the API.

Timeout in seconds for Firecrawl requests.

Optional URL prefix where the Control UI is served (e.g. /openclaw).

Optional filesystem root for Control UI assets (defaults to dist/control-ui).

Allowed browser origins for Control UI/WebChat websocket connections (full origins only, e.g. https://control.example.com). Required for non-loopback Control UI deployments unless dangerous Host-header fallback is explicitly enabled.

Dangerously Allow Host-Header Origin Fallback

DANGEROUS toggle that enables Host-header based origin fallback for Control UI/WebChat websocket checks. This mode is supported when your deployment intentionally relies on Host-header origin policy; explicit gateway.controlUi.allowedOrigins remains the recommended hardened default.

Loosens strict browser auth checks for Control UI when you must run a non-standard setup. Keep this off unless you trust your network and proxy path, because impersonation risk is higher.

Dangerously Disable Control UI Device Auth

Disables Control UI device identity checks and relies on token/password only. Use only for short-lived debugging on trusted networks, then turn it off immediately.

Enable the OpenAI-compatible `POST /v1/chat/completions` endpoint (default: false).

Controls how config edits are applied: "off" ignores live edits, "restart" always restarts, "hot" applies in-process, and "hybrid" tries hot then restarts if required. Keep "hybrid" for safest routine updates.

Debounce window (ms) before applying config changes.

Node browser routing ("auto" = pick single connected browser node, "manual" = require node param, "off" = disable).

Pin browser routing to a specific node id or name (optional).

Extra node.invoke commands to allow beyond the gateway defaults (array of command strings). Enabling dangerous commands here is a security-sensitive override and is flagged by `openclaw security audit`.

Node command names to block even if present in node claims or default allowlist (exact command-name matching only, e.g. `system.run`; does not inspect shell text inside that command).

Groups browser-proxy settings for exposing local browser control through node routing. Enable only when remote node workflows need your local browser profiles.

Expose the local browser control server through node proxy routing so remote clients can use this host's browser capabilities. Keep disabled unless remote automation explicitly depends on it.

Optional allowlist of browser profile names exposed through node proxy routing. Leave empty to expose all configured profiles, or use a tight list to enforce least-privilege profile access.

Top-level media behavior shared across providers and tools that handle inbound files. Keep defaults unless you need stable filenames for external processing pipelines.

When enabled, uploaded media keeps its original filename instead of a generated temp-safe name. Turn this on when downstream automations depend on stable names, and leave off to reduce accidental filename leakage.

Command-based transcription settings for converting audio files into text before agent handling. Keep a simple, deterministic command path here so failures are easy to diagnose in logs.

Executable + args used to transcribe audio (first token must be a safe binary/path), for example `["whisper-cli", "--model", "small", "{input}"]`. Prefer a pinned command so runtime environments behave consistently.

Maximum time allowed for the transcription command to finish before it is aborted. Increase this for longer recordings, and keep it tight in latency-sensitive deployments.

Target agent ID that receives traffic when the corresponding binding match rule is satisfied. Use valid configured agent IDs only so routing does not fail at runtime.

Match rule object for deciding when a binding applies, including channel and optional account/peer constraints. Keep rules narrow to avoid accidental agent takeover across contexts.

Channel/provider identifier this binding applies to, such as `telegram`, `discord`, or a plugin channel ID. Use the configured channel key exactly so binding evaluation works reliably.

Optional account selector for multi-account channel setups so the binding applies only to one identity. Use this when account scoping is required for the route and leave unset otherwise.

Optional peer matcher for specific conversations including peer kind and peer id. Use this when only one direct/group/channel target should be pinned to an agent.

Peer conversation type: "direct", "group", "channel", or legacy "dm" (deprecated alias for direct). Prefer "direct" for new configs and keep kind aligned with channel semantics.

Conversation identifier used with peer matching, such as a chat ID, channel ID, or group ID from the provider. Keep this exact to avoid silent non-matches.

Optional Discord-style guild/server ID constraint for binding evaluation in multi-server deployments. Use this when the same peer identifiers can appear across different guilds.

Optional team/workspace ID constraint used by providers that scope chats under teams. Add this when you need bindings isolated to one workspace context.

Optional role-based filter list used by providers that attach roles to chat context. Use this to route privileged or operational role traffic to specialized agents.

Broadcast routing map for sending the same outbound message to multiple peer IDs per source conversation. Keep this minimal and audited because one source can fan out to many destinations.

Delivery order for broadcast fan-out: "parallel" sends to all targets concurrently, while "sequential" sends one-by-one. Use "parallel" for speed and "sequential" for stricter ordering/backpressure control.

Per-source broadcast destination list where each key is a source peer ID and the value is an array of destination peer IDs. Keep lists intentional to avoid accidental message amplification.

Enable filesystem watching for skill-definition changes so updates can be applied without full process restart. Keep enabled in development workflows and disable in immutable production images.

Debounce window in milliseconds for coalescing rapid skill file changes before reload logic runs. Increase to reduce reload churn on frequent writes, or lower for faster edit feedback.

Default workspace path exposed to agent runtime tools for filesystem context and repo-aware behavior. Set this explicitly when running from wrappers so path resolution stays deterministic.

Optional repository root shown in the system prompt runtime line (overrides auto-detect).

Max characters of each workspace bootstrap file injected into the system prompt before truncation (default: 20000).

Max total characters across all injected workspace bootstrap files (default: 150000).

Timezone for message envelopes ("utc", "local", "user", or an IANA timezone string).

Include absolute timestamps in message envelopes ("on" or "off").

Include elapsed time in message envelopes ("on" or "off").

Vector search over MEMORY.md and memory/*.md (per-agent overrides supported).

Master toggle for memory search indexing and retrieval behavior on this agent profile. Keep enabled for semantic recall, and disable when you want fully stateless responses.

Chooses which sources are indexed: "memory" reads MEMORY.md + memory files, and "sessions" includes transcript history. Keep ["memory"] unless you need recall from prior chat transcripts.

Adds extra directories or .md files to the memory index beyond default memory files. Use this when key reference docs live elsewhere in your repo; keep paths small and intentional to avoid noisy recall.

Memory Search Session Index (Experimental)

Indexes session transcripts into memory search so responses can reference prior chat turns. Keep this off unless transcript recall is needed, because indexing cost and storage usage both increase.

Selects the embedding backend used to build/query memory vectors: "openai", "gemini", "voyage", "mistral", or "local". Keep your most reliable provider here and configure fallback for resilience.

Overrides the embedding API endpoint, such as an OpenAI-compatible proxy or custom Gemini base URL. Use this only when routing through your own gateway or vendor endpoint; keep provider defaults otherwise.

Supplies a dedicated API key for remote embedding calls used by memory indexing and query-time embeddings. Use this when memory embeddings should use different credentials than global defaults or environment variables.

Adds custom HTTP headers to remote embedding requests, merged with provider defaults. Use this for proxy auth and tenant routing headers, and keep values minimal to avoid leaking sensitive metadata.

Enables provider batch APIs for embedding jobs when supported (OpenAI/Gemini), improving throughput on larger index runs. Keep this enabled unless debugging provider batch failures or running very small workloads.

Waits for batch embedding jobs to fully finish before the indexing operation completes. Keep this enabled for deterministic indexing state; disable only if you accept delayed consistency.

Limits how many embedding batch jobs run at the same time during indexing (default: 2). Increase carefully for faster bulk indexing, but watch provider rate limits and queue errors.

Controls how often the system polls provider APIs for batch job status in milliseconds (default: 2000). Use longer intervals to reduce API chatter, or shorter intervals for faster completion detection.

Sets the maximum wait time for a full embedding batch operation in minutes (default: 60). Increase for very large corpora or slower providers, and lower it to fail fast in automation-heavy flows.

Embedding model override used by the selected memory provider when a non-default model is required. Set this only when you need explicit recall quality/cost tuning beyond provider defaults.

Backup provider used when primary embeddings fail: "openai", "gemini", "voyage", "mistral", "local", or "none". Set a real fallback for production reliability; use "none" only if you prefer explicit failures.

Specifies the local embedding model source for local memory search, such as a GGUF file path or `hf:` URI. Use this only when provider is `local`, and verify model compatibility before large index rebuilds.

Sets where the SQLite memory index is stored on disk for each agent. Keep the default `~/.openclaw/memory/{agentId}.sqlite` unless you need custom storage placement or backup policy alignment.

Enables the sqlite-vec extension used for vector similarity queries in memory search (default: true). Keep this enabled for normal semantic recall; disable only for debugging or fallback-only operation.

Overrides the auto-discovered sqlite-vec extension library path (`.dylib`, `.so`, or `.dll`). Use this when your runtime cannot find sqlite-vec automatically or you pin a known-good build.

Chunk size in tokens used when splitting memory sources before embedding/indexing. Increase for broader context per chunk, or lower to improve precision on pinpoint lookups.

Token overlap between adjacent memory chunks to preserve context continuity near split boundaries. Use modest overlap to reduce boundary misses without inflating index size too aggressively.

Triggers a memory index sync when a session starts so early turns see fresh memory content. Keep enabled when startup freshness matters more than initial turn latency.

Uses lazy sync by scheduling reindex on search after content changes are detected. Keep enabled for lower idle overhead, or disable if you require pre-synced indexes before any query.

Watches memory files and schedules index updates from file-change events (chokidar). Enable for near-real-time freshness; disable on very large workspaces if watch churn is too noisy.

Debounce window in milliseconds for coalescing rapid file-watch events before reindex runs. Increase to reduce churn on frequently-written files, or lower for faster freshness.

Requires at least this many newly appended bytes before session transcript changes trigger reindex (default: 100000). Increase to reduce frequent small reindexes, or lower for faster transcript freshness.

Requires at least this many appended transcript messages before reindex is triggered (default: 50). Lower this for near-real-time transcript recall, or raise it to reduce indexing churn.

Maximum number of memory hits returned from search before downstream reranking and prompt injection. Raise for broader recall, or lower for tighter prompts and faster responses.

Minimum relevance score threshold for including memory results in final recall output. Increase to reduce weak/noisy matches, or lower when you need more permissive retrieval.

Combines BM25 keyword matching with vector similarity for better recall on mixed exact + semantic queries. Keep enabled unless you are isolating ranking behavior for troubleshooting.

Controls how strongly semantic similarity influences hybrid ranking (0-1). Increase when paraphrase matching matters more than exact terms; decrease for stricter keyword emphasis.

Controls how strongly BM25 keyword relevance influences hybrid ranking (0-1). Increase for exact-term matching; decrease when semantic matches should rank higher.

Memory Search Hybrid Candidate Multiplier

Expands the candidate pool before reranking (default: 4). Raise this for better recall on noisy corpora, but expect more compute and slightly slower searches.

Adds MMR reranking to diversify results and reduce near-duplicate snippets in a single answer window. Enable when recall looks repetitive; keep off for strict score ordering.

Sets MMR relevance-vs-diversity balance (0 = most diverse, 1 = most relevant, default: 0.7). Lower values reduce repetition; higher values keep tightly relevant but may duplicate.

Applies recency decay so newer memory can outrank older memory when scores are close. Enable when timeliness matters; keep off for timeless reference knowledge.

Memory Search Temporal Decay Half-life (Days)

Controls how fast older memory loses rank when temporal decay is enabled (half-life in days, default: 30). Lower values prioritize recent context more aggressively.

Caches computed chunk embeddings in SQLite so reindexing and incremental updates run faster (default: true). Keep this enabled unless investigating cache correctness or minimizing disk usage.

Memory Search Embedding Cache Max Entries

Sets a best-effort upper bound on cached embeddings kept in SQLite for memory search. Use this when controlling disk growth matters more than peak reindex speed.

Selects the global memory engine: "builtin" uses OpenClaw memory internals, while "qmd" uses the QMD sidecar pipeline. Keep "builtin" unless you intentionally operate QMD.

Controls citation visibility in replies: "auto" shows citations when useful, "on" always shows them, and "off" hides them. Keep "auto" for a balanced signal-to-noise default.

Sets the executable path for the `qmd` binary used by the QMD backend (default: resolved from PATH). Use an explicit absolute path when multiple qmd installs exist or PATH differs across environments.

Routes QMD work through mcporter (MCP runtime) instead of spawning `qmd` for each call. Use this when cold starts are expensive on large models; keep direct process mode for simpler local setups.

Routes QMD through an mcporter daemon instead of spawning qmd per request, reducing cold-start overhead for larger models. Keep disabled unless mcporter is installed and configured.

Names the mcporter server target used for QMD calls (default: qmd). Change only when your mcporter setup uses a custom server name for qmd mcp keep-alive.

Automatically starts the mcporter daemon when mcporter-backed QMD mode is enabled (default: true). Keep enabled unless process lifecycle is managed externally by your service supervisor.

Selects the QMD retrieval path: "query" uses standard query flow, "search" uses search-oriented retrieval, and "vsearch" emphasizes vector retrieval. Keep default unless tuning relevance quality.

Automatically indexes default memory files (MEMORY.md and memory/**/*.md) into QMD collections. Keep enabled unless you want indexing controlled only through explicit custom paths.

Adds custom directories or files to include in QMD indexing, each with an optional name and glob pattern. Use this for project-specific knowledge locations that are outside default memory paths.

Defines the root location QMD should scan, using an absolute path or `~`-relative path. Use stable directories so collection identity does not drift across environments.

Filters files under each indexed root using a glob pattern, with default `**/*.md`. Use narrower patterns to reduce noise and indexing cost when directories contain mixed file types.

Sets a stable collection name for an indexed path instead of deriving it from filesystem location. Use this when paths vary across machines but you want consistent collection identity.

Indexes session transcripts into QMD so recall can include prior conversation content (experimental, default: false). Enable only when transcript memory is required and you accept larger index churn.

Overrides where sanitized session exports are written before QMD indexing. Use this when default state storage is constrained or when exports must land on a managed volume.

Defines how long exported session files are kept before automatic pruning, in days (default: unlimited). Set a finite value for storage hygiene or compliance retention policies.

Sets how often QMD refreshes indexes from source content (duration string, default: 5m). Shorter intervals improve freshness but increase background CPU and I/O.

Sets the minimum delay between consecutive QMD refresh attempts in milliseconds (default: 15000). Increase this if frequent file changes cause update thrash or unnecessary background load.

Runs an initial QMD update once during gateway startup (default: true). Keep enabled so recall starts from a fresh baseline; disable only when startup speed is more important than immediate freshness.

Blocks startup completion until the initial boot-time QMD sync finishes (default: false). Enable when you need fully up-to-date recall before serving traffic, and keep off for faster boot.

Sets how often QMD recomputes embeddings (duration string, default: 60m; set 0 to disable periodic embeds). Lower intervals improve freshness but increase embedding workload and cost.

Sets timeout for QMD maintenance commands such as collection list/add in milliseconds (default: 30000). Increase when running on slower disks or remote filesystems that delay command completion.

Sets maximum runtime for each `qmd update` cycle in milliseconds (default: 120000). Raise this for larger collections; lower it when you want quicker failure detection in automation.

Sets maximum runtime for each `qmd embed` cycle in milliseconds (default: 120000). Increase for heavier embedding workloads or slower hardware, and lower to fail fast under tight SLAs.

Limits how many QMD hits are returned into the agent loop for each recall request (default: 6). Increase for broader recall context, or lower to keep prompts tighter and faster.

Caps per-result snippet length extracted from QMD hits in characters (default: 700). Lower this when prompts bloat quickly, and raise only if answers consistently miss key details.

Caps how much QMD text can be injected into one turn across all hits. Use lower values to control prompt bloat and latency; raise only when context is consistently truncated.

Sets per-query QMD search timeout in milliseconds (default: 4000). Increase for larger indexes or slower environments, and lower to keep request latency bounded.

Defines which sessions/channels are eligible for QMD recall using session.sendPolicy-style rules. Keep default direct-only scope unless you intentionally want cross-chat memory sharing.

Authentication profile root used for multi-profile provider credentials and cooldown-based failover ordering. Keep profiles minimal and explicit so automatic failover behavior stays auditable.

Named auth profiles (provider + mode + optional email).

Ordered auth profile IDs per provider (used for automatic failover).

Cooldown/backoff controls for temporary profile suppression after billing-related failures and retry windows. Use these to prevent rapid re-selection of profiles that are still blocked.

ACP runtime controls for enabling dispatch, selecting backends, constraining allowed agent targets, and tuning streamed turn projection behavior.

Global ACP feature gate. Keep disabled unless ACP runtime + policy are configured.

Independent dispatch gate for ACP session turns. Disable to keep ACP commands available while blocking ACP turn execution.

Default ACP runtime backend id (for example: acpx). Must match a registered ACP runtime plugin backend.

Fallback ACP target agent id used when ACP spawns do not specify an explicit target.

Allowlist of ACP target agent ids permitted for ACP runtime sessions. Empty means no additional allowlist restriction.

Maximum concurrently active ACP sessions across this gateway process.

ACP streaming projection controls for chunk sizing and coalescer flush timing.

Coalescer idle flush window in milliseconds for ACP streamed text before block replies are emitted.

Maximum chunk size for ACP streamed block projection before splitting into multiple block replies.

Idle runtime TTL in minutes for ACP session workers before eligible cleanup.

Optional operator install/setup command shown by `/acp install` and `/acp doctor` when ACP backend wiring is missing.

Controls provider catalog behavior: "merge" keeps built-ins and overlays your custom providers, while "replace" uses only your configured providers. In "merge", matching provider IDs preserve non-empty agent models.json apiKey/baseUrl values and fall back to config when agent values are empty or missing.

Provider map keyed by provider ID containing connection/auth settings and concrete model definitions. Use stable provider keys so references from agents and tooling remain portable across environments.

Base URL for the provider endpoint used to serve model requests for that provider entry. Use HTTPS endpoints and keep URLs environment-specific through config templating where needed.

Provider credential used for API-key based authentication when the provider requires direct key auth. Use secret/env substitution and avoid storing real keys in committed config files.

Selects provider auth style: "api-key" for API key auth, "token" for bearer token auth, "oauth" for OAuth credentials, and "aws-sdk" for AWS credential resolution. Match this to your provider requirements.

Provider API adapter selection controlling request/response compatibility handling for model calls. Use the adapter that matches your upstream provider protocol to avoid feature mismatch.

Static HTTP headers merged into provider requests for tenant routing, proxy auth, or custom gateway requirements. Use this sparingly and keep sensitive header values in secrets.

When true, credentials are sent via the HTTP Authorization header even if alternate auth is possible. Use this only when your provider or proxy explicitly requires Authorization forwarding.

Declared model list for a provider including identifiers, metadata, and optional compatibility/cost hints. Keep IDs exact to provider catalog values so selection and fallback resolve correctly.

Automatic AWS Bedrock model discovery settings used to synthesize provider model entries from account visibility. Keep discovery scoped and refresh intervals conservative to reduce API churn.

Enables periodic Bedrock model discovery and catalog refresh for Bedrock-backed providers. Keep disabled unless Bedrock is actively used and IAM permissions are correctly configured.

AWS region used for Bedrock discovery calls when discovery is enabled for your deployment. Use the region where your Bedrock models are provisioned to avoid empty discovery results.

Optional provider allowlist filter for Bedrock discovery so only selected providers are refreshed. Use this to limit discovery scope in multi-provider environments.

Refresh cadence for Bedrock discovery polling in seconds to detect newly available models over time. Use longer intervals in production to reduce API cost and control-plane noise.

Fallback context-window value applied to discovered models when provider metadata lacks explicit limits. Use realistic defaults to avoid oversized prompts that exceed true provider constraints.

Fallback max-token value applied to discovered models without explicit output token limits. Use conservative defaults to reduce truncation surprises and unexpected token spend.

Base backoff (hours) when a profile fails due to billing/insufficient credits (default: 5).

Optional per-provider overrides for billing backoff (hours).

Cap (hours) for billing backoff (default: 24).

Failure window (hours) for backoff counters (default: 24).

Configured model catalog (keys are full provider/model IDs).

Ordered fallback models (provider/model). Used when the primary model fails.

Optional image model (provider/model) used when the primary model lacks image input.

Ordered fallback image models (provider/model).

Max image side length in pixels when sanitizing transcript/tool-result image payloads (default: 1200).

Delay style for block replies ("off", "natural", "custom").

Minimum delay in ms for custom humanDelay (default: 800).

Maximum delay in ms for custom humanDelay (default: 2500).

Optional CLI backends for text-only fallback (claude-cli, etc.).

Compaction tuning for when context nears token limits, including history share, reserve headroom, and pre-compaction memory flush behavior. Use this when long-running sessions need stable continuity under tight context windows.

Compaction strategy mode: "default" uses baseline behavior, while "safeguard" applies stricter guardrails to preserve recent context. Keep "default" unless you observe aggressive history loss near limit boundaries.

Token headroom reserved for reply generation and tool output after compaction runs. Use higher reserves for verbose/tool-heavy sessions, and lower reserves when maximizing retained history matters more.

Minimum token budget preserved from the most recent conversation window during compaction. Use higher values to protect immediate context continuity and lower values to keep more long-tail history.

Minimum floor enforced for reserveTokens in Pi compaction paths (0 disables the floor guard). Use a non-zero floor to avoid over-aggressive compression under fluctuating token estimates.

Maximum fraction of total context budget allowed for retained history after compaction (range 0.1-0.9). Use lower shares for more generation headroom or higher shares for deeper historical continuity.

Pre-compaction memory flush settings that run an agentic memory write before heavy compaction. Keep enabled for long sessions so salient context is persisted before aggressive trimming.

Enables pre-compaction memory flush before the runtime performs stronger history reduction near token limits. Keep enabled unless you intentionally disable memory side effects in constrained environments.

Threshold distance to compaction (in tokens) that triggers pre-compaction memory flush execution. Use earlier thresholds for safer persistence, or tighter thresholds for lower flush frequency.

User-prompt template used for the pre-compaction memory flush turn when generating memory candidates. Use this only when you need custom extraction instructions beyond the default memory flush behavior.

System-prompt override for the pre-compaction memory flush turn to control extraction style and safety constraints. Use carefully so custom instructions do not reduce memory quality or leak sensitive context.

Embedded Pi runner hardening controls for how workspace-local Pi settings are trusted and applied in OpenClaw sessions.

How embedded Pi handles workspace-local `.pi/config/settings.json`: "sanitize" (default) strips shellPath/shellCommandPrefix, "ignore" disables project settings entirely, and "trusted" applies project settings as-is.

Controls whether heartbeat delivery may target direct/DM chats: "allow" (default) permits DM delivery and "block" suppresses direct-target sends.

Per-agent override for heartbeat direct/DM delivery policy; use "block" for agents that should only send heartbeat alerts to non-DM destinations.

Suppress tool error warning payloads during heartbeat runs.

Docker network for sandbox browser containers (default: openclaw-sandbox-browser). Avoid bridge if you need stricter isolation.

Optional CIDR allowlist for container-edge CDP ingress (for example 172.21.0.1/32).

Sandbox Docker Allow Container Namespace Join

DANGEROUS break-glass override that allows sandbox Docker network mode container:<id>. This joins another container namespace and weakens sandbox isolation.

Registers native slash/menu commands with channels that support command registration (Discord, Slack, Telegram). Keep enabled for discoverability unless you intentionally run text-only command workflows.

Registers native skill commands so users can invoke skills directly from provider command menus where supported. Keep aligned with your skill policy so exposed commands match what operators expect.

Enables text-command parsing in chat input in addition to native command surfaces where available. Keep this enabled for compatibility across channels that do not support native command registration.

Allow bash chat command (`!`; `/bash` alias) to run host shell commands (default: false; requires tools.elevated).

How long bash waits before backgrounding (default: 2000; 0 backgrounds immediately).

Allow /config chat command to read/write config on disk (default: false).

Allow /debug chat command for runtime-only overrides (default: false).

Allow /restart and gateway restart tool actions (default: true).

Enforce access-group allowlists/policies for commands.

Explicit owner allowlist for owner-only tools/commands. Use channel-native IDs (optionally prefixed like "whatsapp:+15551234567"). '*' is ignored.

Controls how owner IDs are rendered in the system prompt. Allowed values: raw, hash. Default: raw.

Optional secret used to HMAC hash owner IDs when ownerDisplay=hash. Prefer env substitution.

Defines elevated command allow rules by channel and sender for owner-level command surfaces. Use narrow provider-specific identities so privileged commands are not exposed to broad chat audiences.

Primary accent/seam color used by UI surfaces for emphasis, badges, and visual identity cues. Use high-contrast values that remain readable across light/dark themes.

Assistant display identity settings for name and avatar shown in UI surfaces. Keep these values aligned with your operator-facing persona and support expectations.

Display name shown for the assistant in UI views, chat chrome, and status contexts. Keep this stable so operators can reliably identify which assistant persona is active.

Assistant avatar image source used in UI surfaces (URL, path, or data URI depending on runtime support). Use trusted assets and consistent branding dimensions for clean rendering.

Enables browser-side evaluate helpers for runtime script evaluation capabilities where supported. Keep disabled unless your workflows require evaluate semantics beyond snapshots/navigation.

Default snapshot capture configuration used when callers do not provide explicit snapshot options. Tune this for consistent capture behavior across channels and automation paths.

Default snapshot extraction mode controlling how page content is transformed for agent consumption. Choose the mode that balances readability, fidelity, and token footprint for your workflows.

Server-side request forgery guardrail settings for browser/network fetch paths that could reach internal hosts. Keep restrictive defaults in production and open only explicitly approved targets.

Legacy alias for browser.ssrfPolicy.dangerouslyAllowPrivateNetwork. Prefer the dangerously-named key so risk intent is explicit.

Browser Dangerously Allow Private Network

Allows access to private-network address ranges from browser tooling. Default is enabled for trusted-network operator setups; disable to enforce strict public-only resolution checks.

Explicit hostname allowlist exceptions for SSRF policy checks on browser/network requests. Keep this list minimal and review entries regularly to avoid stale broad access.

Legacy/alternate hostname allowlist field used by SSRF policy consumers for explicit host exceptions. Use stable exact hostnames and avoid wildcard-like broad patterns.

Timeout in milliseconds for connecting to a remote CDP endpoint before failing the browser attach attempt. Increase for high-latency tunnels, or lower for faster failure detection.

Timeout in milliseconds for post-connect CDP handshake readiness checks against remote browser targets. Raise this for slow-start remote browsers and lower to fail fast in automation loops.

Sets base session grouping strategy: "per-sender" isolates by sender and "global" shares one session per channel context. Keep "per-sender" for safer multi-user behavior unless deliberate shared context is required.

DM session scoping: "main" keeps continuity, while "per-peer", "per-channel-peer", and "per-account-channel-peer" increase isolation. Use isolated modes for shared inboxes or multi-account deployments.

Maps canonical identities to provider-prefixed peer IDs so equivalent users resolve to one DM thread (example: telegram:123456). Use this when the same human appears across multiple channels or accounts.

Lists message triggers that force a session reset when matched in inbound content. Use sparingly for explicit reset phrases so context is not dropped unexpectedly during normal conversation.

Applies a legacy idle reset window in minutes for session reuse behavior across inactivity gaps. Use this only for compatibility and prefer structured reset policies under session.reset/session.resetByType.

Defines the default reset policy object used when no type-specific or channel-specific override applies. Set this first, then layer resetByType or resetByChannel only where behavior must differ.

Selects reset strategy: "daily" resets at a configured hour and "idle" resets after inactivity windows. Keep one clear mode per policy to avoid surprising context turnover patterns.

Sets local-hour boundary (0-23) for daily reset mode so sessions roll over at predictable times. Use with mode=daily and align to operator timezone expectations for human-readable behavior.

Sets inactivity window before reset for idle mode and can also act as secondary guard with daily mode. Use larger values to preserve continuity or smaller values for fresher short-lived threads.

Overrides reset behavior by chat type (direct, group, thread) when defaults are not sufficient. Use this when group/thread traffic needs different reset cadence than direct messages.

Defines reset policy for direct chats and supersedes the base session.reset configuration for that type. Use this as the canonical direct-message override instead of the legacy dm alias.

Deprecated alias for direct reset behavior kept for backward compatibility with older configs. Use session.resetByType.direct instead so future tooling and validation remain consistent.

Defines reset policy for group chat sessions where continuity and noise patterns differ from DMs. Use shorter idle windows for busy groups if context drift becomes a problem.

Defines reset policy for thread-scoped sessions, including focused channel thread workflows. Use this when thread sessions should expire faster or slower than other chat types.

Provides channel-specific reset overrides keyed by provider/channel id for fine-grained behavior control. Use this only when one channel needs exceptional reset behavior beyond type-level policies.

Sets the session storage file path used to persist session records across restarts. Use an explicit path only when you need custom disk layout, backup routing, or mounted-volume storage.

Controls interval for repeated typing indicators while replies are being prepared in typing-capable channels. Increase to reduce chatty updates or decrease for more active typing feedback.

Controls typing behavior timing: "never", "instant", "thinking", or "message" based emission points. Keep conservative modes in high-volume channels to avoid unnecessary typing noise.

Maximum parent-session token count allowed for thread/session inheritance forking. If the parent exceeds this, OpenClaw starts a fresh thread session instead of forking; set 0 to disable this protection.

Overrides the canonical main session key used for continuity when dmScope or routing logic points to "main". Use a stable value only if you intentionally need custom session anchoring.

Controls cross-session send permissions using allow/deny rules evaluated against channel, chatType, and key prefixes. Use this to fence where session tools can deliver messages in complex environments.

Sets fallback action when no sendPolicy rule matches: "allow" or "deny". Keep "allow" for simpler setups, or choose "deny" when you require explicit allow rules for every destination.

Ordered allow/deny rules evaluated before the default action, for example `{ action: "deny", match: { channel: "discord" } }`. Put most specific rules first so broad rules do not shadow exceptions.

Defines rule decision as "allow" or "deny" when the corresponding match criteria are satisfied. Use deny-first ordering when enforcing strict boundaries with explicit allow exceptions.

Defines optional rule match conditions that can combine channel, chatType, and key-prefix constraints. Keep matches narrow so policy intent stays readable and debugging remains straightforward.

Matches rule application to a specific channel/provider id (for example discord, telegram, slack). Use this when one channel should permit or deny delivery independently of others.

Matches rule application to chat type (direct, group, thread) so behavior varies by conversation form. Use this when DM and group destinations require different safety boundaries.

Matches a normalized session-key prefix after internal key normalization steps in policy consumers. Use this for general prefix controls, and prefer rawKeyPrefix when exact full-key matching is required.

Matches the raw, unnormalized session-key prefix for exact full-key policy targeting. Use this when normalized keyPrefix is too broad and you need agent-prefixed or transport-specific precision.

Groups controls for inter-agent session exchanges, including loop prevention limits on reply chaining. Keep defaults unless you run advanced agent-to-agent automation with strict turn caps.

Max reply-back turns between requester and target agents during agent-to-agent exchanges (0-5). Use lower values to hard-limit chatter loops and preserve predictable run completion.

Shared defaults for thread-bound session routing behavior across providers that support thread focus workflows. Configure global defaults here and override per channel only when behavior differs.

Global master switch for thread-bound session routing features and focused thread delivery behavior. Keep enabled for modern thread workflows unless you need to disable thread binding globally.

Default auto-unfocus TTL in hours for thread-bound sessions across providers/channels (0 disables). Keep 24h-like values for practical focus windows unless your team needs longer-lived thread binding.

Automatic session-store maintenance controls for pruning age, entry caps, and file rotation behavior. Start in warn mode to observe impact, then enforce once thresholds are tuned.

Determines whether maintenance policies are only reported ("warn") or actively applied ("enforce"). Keep "warn" during rollout and switch to "enforce" after validating safe thresholds.

Removes entries older than this duration (for example `30d` or `12h`) during maintenance passes. Use this as the primary age-retention control and align it with data retention policy.

Deprecated age-retention field kept for compatibility with legacy configs using day counts. Use session.maintenance.pruneAfter instead so duration syntax and behavior are consistent.

Caps total session entry count retained in the store to prevent unbounded growth over time. Use lower limits for constrained environments, or higher limits when longer history is required.

Rotates the session store when file size exceeds a threshold such as `10mb` or `1gb`. Use this to bound single-file growth and keep backup/restore operations manageable.

Retention for reset transcript archives (`*.reset.<timestamp>`). Accepts a duration (for example `30d`), or `false` to disable cleanup. Defaults to pruneAfter so reset artifacts do not grow forever.

Optional per-agent sessions-directory disk budget (for example `500mb`). Use this to cap session storage per agent; when exceeded, warn mode reports pressure and enforce mode performs oldest-first cleanup.

Target size after disk-budget cleanup (high-water mark). Defaults to 80% of maxDiskBytes; set explicitly for tighter reclaim behavior on constrained disks.

Enables cron job execution for stored schedules managed by the gateway. Keep enabled for normal reminder/automation flows, and disable only to pause all cron execution without deleting jobs.

Path to the cron job store file used to persist scheduled jobs across restarts. Set an explicit path only when you need custom storage layout, backups, or mounted volumes.

Limits how many cron jobs can execute at the same time when multiple schedules fire together. Use lower values to protect CPU/memory under heavy automation load, or raise carefully for higher throughput.

Deprecated legacy fallback webhook URL used only for old jobs with `notify=true`. Migrate to per-job delivery using `delivery.mode="webhook"` plus `delivery.to`, and avoid relying on this global field.

Bearer token attached to cron webhook POST deliveries when webhook mode is used. Prefer secret/env substitution and rotate this token regularly if shared webhook endpoints are internet-reachable.

Controls how long completed cron run sessions are kept before pruning (`24h`, `7d`, `1h30m`, or `false` to disable pruning; default: `24h`). Use shorter retention to reduce storage growth on high-frequency schedules.

Pruning controls for per-job cron run history files under `cron/runs/<jobId>.jsonl`, including size and line retention.

Maximum bytes per cron run-log file before pruning rewrites to the last keepLines entries (for example `2mb`, default `2000000`).

How many trailing run-log lines to retain when a file exceeds maxBytes (default `2000`). Increase for longer forensic history or lower for smaller disks.

Enables the hooks endpoint and mapping execution pipeline for inbound webhook requests. Keep disabled unless you are actively routing external events into the gateway.

HTTP path used by the hooks endpoint (for example `/hooks`) on the gateway control server. Use a non-guessable path and combine it with token validation for defense in depth.

Shared bearer token checked by hooks ingress for request authentication before mappings run. Use environment substitution and rotate regularly when webhook endpoints are internet-accessible.

Fallback session key used for hook deliveries when a request does not provide one through allowed channels. Use a stable but scoped key to avoid mixing unrelated automation conversations.

Allows callers to supply a session key in hook requests when true, enabling caller-controlled routing. Keep false unless trusted integrators explicitly need custom session threading.

Allowlist of accepted session-key prefixes for inbound hook requests when caller-provided keys are enabled. Use narrow prefixes to prevent arbitrary session-key injection.

Allowlist of agent IDs that hook mappings are allowed to target when selecting execution agents. Use this to constrain automation events to dedicated service agents.

Maximum accepted webhook payload size in bytes before the request is rejected. Keep this bounded to reduce abuse risk and protect memory usage under bursty integrations.

Named hook preset bundles applied at load time to seed standard mappings and behavior defaults. Keep preset usage explicit so operators can audit which automations are active.

Base directory for hook transform modules referenced by mapping transform.module paths. Use a controlled repo directory so dynamic imports remain reviewable and predictable.

Ordered mapping rules that match inbound hook requests and choose wake or agent actions with optional delivery routing. Use specific mappings first to avoid broad pattern rules capturing everything.

Optional stable identifier for a hook mapping entry used for auditing, troubleshooting, and targeted updates. Use unique IDs so logs and config diffs can reference mappings unambiguously.

Grouping object for mapping match predicates such as path and source before action routing is applied. Keep match criteria specific so unrelated webhook traffic does not trigger automations.

Path match condition for a hook mapping, usually compared against the inbound request path. Use this to split automation behavior by webhook endpoint path families.

Source match condition for a hook mapping, typically set by trusted upstream metadata or adapter logic. Use stable source identifiers so routing remains deterministic across retries.

Mapping action type: "wake" triggers agent wake flow, while "agent" sends directly to agent handling. Use "agent" for immediate execution and "wake" when heartbeat-driven processing is preferred.

Wake scheduling mode: "now" wakes immediately, while "next-heartbeat" defers until the next heartbeat cycle. Use deferred mode for lower-priority automations that can tolerate slight delay.

Human-readable mapping display name used in diagnostics and operator-facing config UIs. Keep names concise and descriptive so routing intent is obvious during incident review.

Target agent ID for mapping execution when action routing should not use defaults. Use dedicated automation agents to isolate webhook behavior from interactive operator sessions.

Explicit session key override for mapping-delivered messages to control thread continuity. Use stable scoped keys so repeated events correlate without leaking into unrelated conversations.

Template for synthesizing structured mapping input into the final message content sent to the target action path. Keep templates deterministic so downstream parsing and behavior remain stable.

Text-only fallback template used when rich payload rendering is not desired or not supported. Use this to provide a concise, consistent summary string for chat delivery surfaces.

Controls whether mapping execution results are delivered back to a channel destination versus being processed silently. Disable delivery for background automations that should not post user-facing output.

Hook Mapping Allow Unsafe External Content

When true, mapping content may include less-sanitized external payload data in generated messages. Keep false by default and enable only for trusted sources with reviewed transform logic.

Delivery channel override for mapping outputs (for example "last", "telegram", "discord", "slack", "signal", "imessage", or "msteams"). Keep channel overrides explicit to avoid accidental cross-channel sends.

Destination identifier inside the selected channel when mapping replies should route to a fixed target. Verify provider-specific destination formats before enabling production mappings.

Optional model override for mapping-triggered runs when automation should use a different model than agent defaults. Use this sparingly so behavior remains predictable across mapping executions.

Optional thinking-effort override for mapping-triggered runs to tune latency versus reasoning depth. Keep low or minimal for high-volume hooks unless deeper reasoning is clearly required.

Maximum runtime allowed for mapping action execution before timeout handling applies. Use tighter limits for high-volume webhook sources to prevent queue pileups.

Transform configuration block defining module/export preprocessing before mapping action handling. Use transforms only from reviewed code paths and keep behavior deterministic for repeatable automation.

Relative transform module path loaded from hooks.transformsDir to rewrite incoming payloads before delivery. Keep modules local, reviewed, and free of path traversal patterns.

Named export to invoke from the transform module; defaults to module default export when omitted. Set this when one file hosts multiple transform handlers.

Gmail push integration settings used for Pub/Sub notifications and optional local callback serving. Keep this scoped to dedicated Gmail automation accounts where possible.

Google account identifier used for Gmail watch/subscription operations in this hook integration. Use a dedicated automation mailbox account to isolate operational permissions.

Optional Gmail label filter limiting which labeled messages trigger hook events. Keep filters narrow to avoid flooding automations with unrelated inbox traffic.

Google Pub/Sub topic name used by Gmail watch to publish change notifications for this account. Ensure the topic IAM grants Gmail publish access before enabling watches.

Pub/Sub subscription consumed by the gateway to receive Gmail change notifications from the configured topic. Keep subscription ownership clear so multiple consumers do not race unexpectedly.

Shared secret token required on Gmail push hook callbacks before processing notifications. Use env substitution and rotate if callback endpoints are exposed externally.

Public callback URL Gmail or intermediaries invoke to deliver notifications into this hook pipeline. Keep this URL protected with token validation and restricted network exposure.

When true, fetch and include email body content for downstream mapping/agent processing. Keep false unless body text is required, because this increases payload size and sensitivity.

Maximum Gmail payload bytes processed per event when includeBody is enabled. Keep conservative limits to reduce oversized message processing cost and risk.

Renewal cadence in minutes for Gmail watch subscriptions to prevent expiration. Set below provider expiration windows and monitor renew failures in logs.

Gmail Hook Allow Unsafe External Content

Allows less-sanitized external Gmail content to pass into processing when enabled. Keep disabled for safer defaults, and enable only for trusted mail streams with controlled transforms.

Local callback server settings block for directly receiving Gmail notifications without a separate ingress layer. Enable only when this process should terminate webhook traffic itself.

Bind address for the local Gmail callback HTTP server used when serving hooks directly. Keep loopback-only unless external ingress is intentionally required.

Port for the local Gmail callback HTTP server when serve mode is enabled. Use a dedicated port to avoid collisions with gateway/control interfaces.

HTTP path on the local Gmail callback server where push notifications are accepted. Keep this consistent with subscription configuration to avoid dropped events.

Tailscale exposure configuration block for publishing Gmail callbacks through Serve/Funnel routes. Use private tailnet modes before enabling any public ingress path.

Tailscale exposure mode for Gmail callbacks: "off", "serve", or "funnel". Use "serve" for private tailnet delivery and "funnel" only when public internet ingress is required.

Path published by Tailscale Serve/Funnel for Gmail callback forwarding when enabled. Keep it aligned with Gmail webhook config so requests reach the expected handler.

Local service target forwarded by Tailscale Serve/Funnel (for example http://127.0.0.1:8787). Use explicit loopback targets to avoid ambiguous routing.

Optional model override for Gmail-triggered runs when mailbox automations should use dedicated model behavior. Keep unset to inherit agent defaults unless mailbox tasks need specialization.

Thinking effort override for Gmail-driven agent runs: "off", "minimal", "low", "medium", or "high". Keep modest defaults for routine inbox automations to control cost and latency.

Internal hook runtime settings for bundled/custom event handlers loaded from module paths. Use this for trusted in-process automations and keep handler loading tightly scoped.

Enables processing for internal hook handlers and configured entries in the internal hook runtime. Keep disabled unless internal hook handlers are intentionally configured.

List of internal event handlers mapping event names to modules and optional exports. Keep handler definitions explicit so event-to-code routing is auditable.

Internal event name that triggers this handler module when emitted by the runtime. Use stable event naming conventions to avoid accidental overlap across handlers.

Safe relative module path for the internal hook handler implementation loaded at runtime. Keep module files in reviewed directories and avoid dynamic path composition.

Optional named export for the internal hook handler function when module default export is not used. Set this when one module ships multiple handler entrypoints.

Configured internal hook entry records used to register concrete runtime handlers and metadata. Keep entries explicit and versioned so production behavior is auditable.

Internal hook loader settings controlling where handler modules are discovered at startup. Use constrained load roots to reduce accidental module conflicts or shadowing.

Additional directories searched for internal hook modules beyond default load paths. Keep this minimal and controlled to reduce accidental module shadowing.

Install metadata for internal hook modules, including source and resolved artifacts for repeatable deployments. Use this as operational provenance and avoid manual drift edits.

Web channel runtime settings for heartbeat and reconnect behavior when operating web-based chat surfaces. Use reconnect values tuned to your network reliability profile and expected uptime needs.

Enables the web channel runtime and related websocket lifecycle behavior. Keep disabled when web chat is unused to reduce active connection management overhead.

Heartbeat interval in seconds for web channel connectivity and liveness maintenance. Use shorter intervals for faster detection, or longer intervals to reduce keepalive chatter.

Reconnect backoff policy for web channel reconnect attempts after transport failure. Keep bounded retries and jitter tuned to avoid thundering-herd reconnect behavior.

Initial reconnect delay in milliseconds before the first retry after disconnection. Use modest delays to recover quickly without immediate retry storms.

Maximum reconnect backoff cap in milliseconds to bound retry delay growth over repeated failures. Use a reasonable cap so recovery remains timely after prolonged outages.

Exponential backoff multiplier used between reconnect attempts in web channel retry loops. Keep factor above 1 and tune with jitter for stable large-fleet reconnect behavior.

Randomization factor (0-1) applied to reconnect delays to desynchronize clients after outage events. Keep non-zero jitter in multi-client deployments to reduce synchronized spikes.

Maximum reconnect attempts before giving up for the current failure sequence (0 means no retries). Use finite caps for controlled failure handling in automation-sensitive environments.

Wide-area discovery configuration group for exposing discovery signals beyond local-link scopes. Enable only in deployments that intentionally aggregate gateway presence across sites.

Enables wide-area discovery signaling when your environment needs non-local gateway discovery. Keep disabled unless cross-network discovery is operationally required.

mDNS discovery configuration group for local network advertisement and discovery behavior tuning. Keep minimal mode for routine LAN discovery unless extra metadata is required.

Canvas host settings for serving canvas assets and local live-reload behavior used by canvas-enabled workflows. Keep disabled unless canvas-hosted assets are actively used.

Enables the canvas host server process and routes for serving canvas files. Keep disabled when canvas workflows are inactive to reduce exposed local services.

Filesystem root directory served by canvas host for canvas content and static assets. Use a dedicated directory and avoid broad repo roots for least-privilege file exposure.

TCP port used by the canvas host HTTP server when canvas hosting is enabled. Choose a non-conflicting port and align firewall/proxy policy accordingly.

Enables automatic live-reload behavior for canvas assets during development workflows. Keep disabled in production-like environments where deterministic output is preferred.

Legacy ElevenLabs default voice ID for Talk mode. Prefer talk.providers.elevenlabs.voiceId.

Use this legacy ElevenLabs voice alias map (for example {"Clawd":"EXAVITQu4vr4xnSDxMaL"}) only during migration. Prefer talk.providers.elevenlabs.voiceAliases.

Legacy ElevenLabs model ID for Talk mode (default: eleven_v3). Prefer talk.providers.elevenlabs.modelId.

Use this legacy ElevenLabs output format for Talk mode (for example pcm_44100 or mp3_44100_128) only during migration. Prefer talk.providers.elevenlabs.outputFormat.

If true (default), stop assistant speech when the user starts speaking in Talk mode. Keep enabled for conversational turn-taking.

Prefix text prepended to inbound user messages before they are handed to the agent runtime. Use this sparingly for channel context markers and keep it stable across sessions.

Prefix text prepended to outbound assistant replies before sending to channels. Use for lightweight branding/context tags and avoid long prefixes that reduce content density.

Group-message handling controls including mention triggers and history window sizing. Keep mention patterns narrow so group channels do not trigger on every message.

Regex-like patterns used to detect explicit mentions/trigger phrases in group chats. Use precise patterns to reduce false positives in high-volume channels.

Maximum number of prior group messages loaded as context per turn for group sessions. Use higher values for richer continuity, or lower values for faster and cheaper responses.

Inbound message queue strategy used to buffer bursts before processing turns. Tune this for busy channels where sequential processing or batching behavior matters.

Queue behavior mode: "steer", "followup", "collect", "steer-backlog", "steer+backlog", "queue", or "interrupt". Keep conservative modes unless you intentionally need aggressive interruption/backlog semantics.

Per-channel queue mode overrides keyed by provider id (for example telegram, discord, slack). Use this when one channel’s traffic pattern needs different queue behavior than global defaults.

Global queue debounce window in milliseconds before processing buffered inbound messages. Use higher values to coalesce rapid bursts, or lower values for reduced response latency.

Per-channel debounce overrides for queue behavior keyed by provider id. Use this to tune burst handling independently for chat surfaces with different pacing.

Maximum number of queued inbound items retained before drop policy applies. Keep caps bounded in noisy channels so memory usage remains predictable.

Drop strategy when queue cap is exceeded: "old", "new", or "summarize". Use summarize when preserving intent matters, or old/new when deterministic dropping is preferred.

Direct inbound debounce settings used before queue/turn processing starts. Configure this for provider-specific rapid message bursts from the same sender.

When true, suppress ⚠ tool-error warnings from being shown to the user. The agent already sees errors in context and can retry. Default: false.

Emoji reaction used to acknowledge inbound messages (empty disables).

When to send ack reactions ("group-mentions", "group-all", "direct", "all").

Removes the acknowledgment reaction after final reply delivery when enabled. Keep enabled for cleaner UX in channels where persistent ack reactions create clutter.

Lifecycle status reactions that update the emoji on the trigger message as the agent progresses (queued → thinking → tool → done/error).

Enable lifecycle status reactions for Telegram. When enabled, the ack reaction becomes the initial 'queued' state and progresses through thinking, tool, done/error automatically. Default: false.

Override default status reaction emojis. Keys: thinking, tool, coding, web, done, error, stallSoft, stallHard. Must be valid Telegram reaction emojis.

Override default timing. Keys: debounceMs (700), stallSoftMs (25000), stallHardMs (60000), doneHoldMs (1500), errorHoldMs (2500).

Debounce window (ms) for batching rapid inbound messages from the same sender (0 to disable).

Per-channel inbound debounce overrides keyed by provider id in milliseconds. Use this where some providers send message fragments more aggressively than others.

Text-to-speech policy for reading agent replies aloud on supported voice or audio surfaces. Keep disabled unless voice playback is part of your operator/user workflow.

Active Talk provider id (for example "elevenlabs").

Provider-specific Talk settings keyed by provider id. During migration, prefer this over legacy talk.* keys.

Provider default voice ID for Talk mode.

Optional provider voice alias map for Talk directives.

Provider default model ID for Talk mode.

Provider default output format for Talk mode.

Use this legacy ElevenLabs API key for Talk mode only during migration, and keep secrets in env-backed storage. Prefer talk.providers.elevenlabs.apiKey (fallback: ELEVENLABS_API_KEY).

Default channel behavior applied across providers when provider-specific settings are not set. Use this to enforce consistent baseline policy before per-provider tuning.

Default group policy across channels: "open", "disabled", or "allowlist". Keep "allowlist" for safer production setups unless broad group participation is intentional.

Default heartbeat visibility settings for status messages emitted by providers/channels. Tune this globally to reduce noisy healthy-state updates while keeping alerts visible.

Shows healthy/OK heartbeat status entries when true in channel status outputs. Keep false in noisy environments and enable only when operators need explicit healthy confirmations.

Shows degraded/error heartbeat alerts when true so operator channels surface problems promptly. Keep enabled in production so broken channel states are visible.

Enables concise indicator-style heartbeat rendering instead of verbose status text where supported. Use indicator mode for dense dashboards with many active channels.

WhatsApp channel provider configuration for access policy and message batching behavior. Use this section to tune responsiveness and direct-message routing safety for WhatsApp chats.

simplest way to get started — register a bot with @BotFather and get going.

Additional Telegram bot menu commands (merged with native; conflicts ignored).

Discord channel provider configuration for bot auth, retry policy, streaming, thread bindings, and optional voice capabilities. Keep privileged intents and advanced features disabled unless needed.

Slack channel provider configuration for bot/app tokens, streaming behavior, and DM policy controls. Keep token handling and thread behavior explicit to avoid noisy workspace interactions.

Mattermost channel provider configuration for bot credentials, base URL, and message trigger modes. Keep mention/trigger rules strict in high-volume team channels.

Signal channel provider configuration including account identity and DM policy behavior. Keep account mapping explicit so routing remains stable across multi-device setups.

iMessage channel provider configuration for CLI integration and DM access policy handling. Use explicit CLI paths when runtime environments have non-standard binary locations.

BlueBubbles channel provider configuration used for Apple messaging bridge integrations. Keep DM policy aligned with your trusted sender model in shared deployments.

Microsoft Teams channel provider configuration and provider-specific policy toggles. Use this section to isolate Teams behavior from other enterprise chat providers.

Map provider -> channel id -> model override (values are provider/model or aliases).

IRC channel provider configuration and compatibility settings for classic IRC transport workflows. Use this section when bridging legacy chat infrastructure into OpenClaw.

Direct message access control ("pairing" recommended). "open" requires channels.irc.allowFrom=["*"].

Enable NickServ identify/register after connect (defaults to enabled when password is configured).

NickServ service nick (default: NickServ).

NickServ password used for IDENTIFY/REGISTER (sensitive).

Optional file path containing NickServ password.

If true, send NickServ REGISTER on every connect. Use once for initial registration, then disable.

Email used with NickServ REGISTER (required when register=true).

Telegram bot token used to authenticate Bot API requests for this account/provider config. Use secret/env substitution and rotate tokens if exposure is suspected.

Direct message access control ("pairing" recommended). "open" requires channels.telegram.allowFrom=["*"].

Allow Telegram to write config in response to channel events/commands (default: true).

Override native commands for Telegram (bool or "auto").

Override native skill commands for Telegram (bool or "auto").

Unified Telegram stream preview mode: "off" | "partial" | "block" | "progress". "progress" maps to "partial" on Telegram. Legacy boolean/streamMode keys are auto-mapped.

Max retry attempts for outbound Telegram API calls (default: 3).

Minimum retry delay in ms for Telegram outbound calls.

Maximum retry delay cap in ms for Telegram outbound calls.

Jitter factor (0-1) applied to Telegram retry delays.

Override Node autoSelectFamily for Telegram (true=enable, false=disable).

Max seconds before Telegram API requests are aborted (default: 500 per grammY).

Enable Telegram inline button components for supported command and interaction surfaces. Disable if your deployment needs plain-text-only compatibility behavior.

Direct message access control ("pairing" recommended). "open" requires channels.whatsapp.allowFrom=["*"].

Same-phone setup (bot uses your personal WhatsApp number).

Debounce window (ms) for batching rapid consecutive messages from the same sender (0 to disable).

Allow WhatsApp to write config in response to channel events/commands (default: true).

Direct message access control ("pairing" recommended). "open" requires channels.signal.allowFrom=["*"].

Allow Signal to write config in response to channel events/commands (default: true).

Direct message access control ("pairing" recommended). "open" requires channels.imessage.allowFrom=["*"].

Allow iMessage to write config in response to channel events/commands (default: true).

Direct message access control ("pairing" recommended). "open" requires channels.bluebubbles.allowFrom=["*"].

Allow Microsoft Teams to write config in response to channel events/commands (default: true).

Allow IRC to write config in response to channel events/commands (default: true).

Direct message access control ("pairing" recommended). "open" requires channels.discord.allowFrom=["*"].

Direct message access control ("pairing" recommended). "open" requires channels.discord.allowFrom=["*"] (legacy: channels.discord.dm.allowFrom).

Allow Discord to write config in response to channel events/commands (default: true).

Proxy URL for Discord gateway + API requests (app-id lookup and allowlist resolution). Set per account via channels.discord.accounts.<id>.proxy.

Override native commands for Discord (bool or "auto").

Override native skill commands for Discord (bool or "auto").

Unified Discord stream preview mode: "off" | "partial" | "block" | "progress". "progress" maps to "partial" on Discord. Legacy boolean/streamMode keys are auto-mapped.

Legacy Discord preview mode alias (off | partial | block); auto-migrated to channels.discord.streaming.

Minimum chars before emitting a Discord stream preview update when channels.discord.streaming="block" (default: 200).

Target max size for a Discord stream preview chunk when channels.discord.streaming="block" (default: 800; clamped to channels.discord.textChunkLimit).

Preferred breakpoints for Discord draft chunks (paragraph | newline | sentence). Default: paragraph.

Max retry attempts for outbound Discord API calls (default: 3).

Minimum retry delay in ms for Discord outbound calls.

Maximum retry delay cap in ms for Discord outbound calls.

Jitter factor (0-1) applied to Discord retry delays.

Soft max line count per Discord message (default: 17).

Enable Discord thread binding features (/focus, bound-thread routing/delivery, and thread-bound subagent sessions). Overrides session.threadBindings.enabled when set.

Auto-unfocus TTL in hours for Discord thread-bound sessions (/focus and spawned thread sessions). Set 0 to disable (default: 24). Overrides session.threadBindings.ttlHours when set.

Allow subagent spawns with thread=true to auto-create and bind Discord threads (default: false; opt-in). Set true to enable thread-bound subagent spawns for this account/channel.

Allow /acp spawn to auto-create and bind Discord threads for ACP sessions (default: false; opt-in). Set true to enable thread-bound ACP spawns for this account/channel.

Accent color for Discord component containers (hex). Set per account via channels.discord.accounts.<id>.ui.components.accentColor.

Enable the Guild Presences privileged intent. Must also be enabled in the Discord Developer Portal. Allows tracking user activities (e.g. Spotify). Default: false.

Enable the Guild Members privileged intent. Must also be enabled in the Discord Developer Portal. Default: false.

Enable Discord voice channel conversations (default: true). Omit channels.discord.voice to keep voice support disabled for the account.

Voice channels to auto-join on startup (list of guildId/channelId entries).

Toggle DAVE end-to-end encryption for Discord voice joins (default: true in @discordjs/voice; Discord may require this).

Consecutive decrypt failures before DAVE attempts session recovery (passed to @discordjs/voice; default: 24).

Optional TTS overrides for Discord voice playback (merged with messages.tts).

Resolve PluralKit proxied messages and treat system members as distinct senders.

Optional PluralKit token for resolving private systems or members.

Discord presence activity text (defaults to custom status).

Discord presence status (online, dnd, idle, invisible).

Discord presence activity type (0=Playing,1=Streaming,2=Listening,3=Watching,4=Custom,5=Competing).

Discord presence streaming URL (required for activityType=1).

Direct message access control ("pairing" recommended). "open" requires channels.slack.allowFrom=["*"] (legacy: channels.slack.dm.allowFrom).

Direct message access control ("pairing" recommended). "open" requires channels.slack.allowFrom=["*"].

Allow Slack to write config in response to channel events/commands (default: true).

Override native commands for Slack (bool or "auto").

Override native skill commands for Slack (bool or "auto").

Allow bot-authored messages to trigger Slack replies (default: false).

Discord bot token used for gateway and REST API authentication for this provider account. Keep this secret out of committed config and rotate immediately after any leak.

Slack bot token used for standard chat actions in the configured workspace. Keep this credential scoped and rotate if workspace app permissions change.

Slack app-level token used for Socket Mode connections and event transport when enabled. Use least-privilege app scopes and store this token as a secret.

Optional Slack user token for workflows requiring user-context API access beyond bot permissions. Use sparingly and audit scopes because this token can carry broader authority.

When true, treat configured Slack user token usage as read-only helper behavior where possible. Keep enabled if you only need supplemental reads without user-context writes.

Unified Slack stream preview mode: "off" | "partial" | "block" | "progress". Legacy boolean/streamMode keys are auto-mapped.

Enable native Slack text streaming (chat.startStream/chat.appendStream/chat.stopStream) when channels.slack.streaming is partial (default: true).

Legacy Slack preview mode alias (replace | status_final | append); auto-migrated to channels.slack.streaming.

Scope for Slack thread history context ("thread" isolates per thread; "channel" reuses channel history).

If true, Slack thread sessions inherit the parent channel transcript (default: false).

Maximum number of existing Slack thread messages to fetch when starting a new thread session (default: 20, set to 0 to disable).

Bot token from Mattermost System Console -> Integrations -> Bot Accounts.

Base URL for your Mattermost server (e.g., https://chat.example.com).

Allow Mattermost to write config in response to channel events/commands (default: true).

Reply to channel messages on mention ("oncall"), on trigger chars (">" or "!") ("onchar"), or on every message ("onmessage").

Trigger prefixes for onchar mode (default: [">", "!"]).

Require @mention in channels before responding (default: true).

Signal account identifier (phone/number handle) used to bind this channel config to a specific Signal identity. Keep this aligned with your linked device/session state.

Filesystem path to the iMessage bridge CLI binary used for send/receive operations. Set explicitly when the binary is not on PATH in service runtime environments.

Optional allowlist of skills for this agent (omit = all skills; empty = no skills).

Avatar image path (relative to the agent workspace only) or a remote URL/data URL.

Agent Heartbeat Suppress Tool Error Warnings

Suppress tool error warning payloads during heartbeat runs.

Per-agent override for sandbox browser Docker network.

Agent Sandbox Browser CDP Source Port Range

Per-agent override for CDP source CIDR allowlist.

Agent Sandbox Docker Allow Container Namespace Join

Per-agent DANGEROUS override for container namespace joins in sandbox Docker network mode.

mDNS broadcast mode ("minimal" default, "full" includes cliPath/sshPort, "off" disables mDNS).

Enable or disable plugin/extension loading globally during startup and config reload (default: true). Keep enabled only when extension capabilities are required by your deployment.

Optional allowlist of plugin IDs; when set, only listed plugins are eligible to load. Use this to enforce approved extension inventories in controlled environments.

Optional denylist of plugin IDs that are blocked even if allowlists or paths include them. Use deny rules for emergency rollback and hard blocks on risky plugins.

Plugin loader configuration group for specifying filesystem paths where plugins are discovered. Keep load paths explicit and reviewed to avoid accidental untrusted extension loading.

Additional plugin files or directories scanned by the loader beyond built-in defaults. Use dedicated extension directories and avoid broad paths with unrelated executable content.

Selects which plugins own exclusive runtime slots such as memory so only one plugin provides that capability. Use explicit slot ownership to avoid overlapping providers with conflicting behavior.

Select the active memory plugin by id, or "none" to disable memory plugins.

Per-plugin settings keyed by plugin ID including enablement and plugin-specific runtime configuration payloads. Use this for scoped plugin tuning without changing global loader policy.

Per-plugin enablement override for a specific entry, applied on top of global plugin policy (restart required). Use this to stage plugin rollout gradually across environments.

Optional API key field consumed by plugins that accept direct key configuration in entry settings. Use secret/env substitution and avoid committing real credentials into config files.

Per-plugin environment variable map injected for that plugin runtime context only. Use this to scope provider credentials to one plugin instead of sharing global process environment.

Plugin-defined configuration payload interpreted by that plugin's own schema and validation rules. Use only documented fields from the plugin to prevent ignored or invalid settings.

CLI-managed install metadata (used by `openclaw plugins update` to locate install sources).

Install source ("npm", "archive", or "path").

Original npm spec used for install (if source is npm).

Original archive/path used for install (if any).

Resolved install directory (usually ~/.openclaw/extensions/<id>).

Version recorded at install time (if available).

Resolved npm package name from the fetched artifact.

Resolved npm package version from the fetched artifact (useful for non-pinned specs).

Resolved exact npm spec (<name>@<version>) from the fetched artifact.

Resolved npm dist integrity hash for the fetched artifact (if reported by npm).

Resolved npm dist shasum for the fetched artifact (if reported by npm).

ISO timestamp when npm package metadata was last resolved for this install record.

Expose OpenGoat CLI through OpenClaw as an alternative execution path. (plugin: openclaw-plugin)

Plugin-defined config payload for openclaw-plugin.

Executable path or command name used to launch OpenGoat.

Arguments prepended to every forwarded OpenGoat invocation.

Optional working directory for OpenGoat command execution.

String map merged into process environment for OpenGoat runs.

AI-driven agile development framework — the BMad Method as an OpenClaw plugin. Registers agent tools for workflow orchestration, step-by-step execution, and artifact management. (plugin: bmad-method)

Plugin-defined config payload for bmad-method.

Leave empty to use bundled BMad method files

Email channel via Mailgun for agent communication (plugin: email)

Plugin-defined config payload for email.

Self-writing meta-extension that forges new capabilities — researches docs, writes extensions, tools, hooks, and skills (plugin: foundry-openclaw)

Plugin-defined config payload for foundry-openclaw.

Fetch and learn from OpenClaw documentation

ACP runtime backend powered by a pinned plugin-local acpx CLI. (plugin: acpx)

Default cwd for ACP session operations when not set per session.

Default acpx permission policy for runtime prompts.

acpx policy when interactive permission prompts are unavailable.

Optional acpx timeout for each runtime turn.

Idle queue-owner TTL for acpx prompt turns. Keep this short in OpenClaw to avoid delayed completion after each turn.

OpenClaw BlueBubbles channel plugin (plugin: bluebubbles)

Plugin-defined config payload for bluebubbles.

OpenClaw Copilot Proxy provider plugin (plugin: copilot-proxy)

Plugin-defined config payload for copilot-proxy.

Generate setup codes and approve device pairing requests. (plugin: device-pair)

Plugin-defined config payload for device-pair.

Public WebSocket URL used for /pair setup codes (ws/wss or http/https).

OpenClaw diagnostics OpenTelemetry exporter (plugin: diagnostics-otel)

Plugin-defined config payload for diagnostics-otel.

OpenClaw Discord channel plugin (plugin: discord)

Plugin-defined config payload for discord.

OpenClaw Feishu/Lark channel plugin (community maintained by @m1heng) (plugin: feishu)

Plugin-defined config payload for feishu.

OpenClaw Gemini CLI OAuth provider plugin (plugin: google-gemini-cli-auth)

Plugin-defined config payload for google-gemini-cli-auth.

OpenClaw Google Chat channel plugin (plugin: googlechat)

Plugin-defined config payload for googlechat.

OpenClaw iMessage channel plugin (plugin: imessage)

Plugin-defined config payload for imessage.

OpenClaw IRC channel plugin (plugin: irc)

OpenClaw LINE channel plugin (plugin: line)

Generic JSON-only LLM tool for structured tasks callable from workflows. (plugin: llm-task)

Plugin-defined config payload for llm-task.

Typed workflow tool with resumable approvals. (plugin: lobster)

Plugin-defined config payload for lobster.

OpenClaw Matrix channel plugin (plugin: matrix)

Plugin-defined config payload for matrix.

OpenClaw Mattermost channel plugin (plugin: mattermost)

Plugin-defined config payload for mattermost.

File-backed memory search tools and CLI (plugin: memory-core)

Plugin-defined config payload for memory-core.

OpenClaw LanceDB-backed long-term memory plugin with auto-recall/capture (plugin: memory-lancedb)

Plugin-defined config payload for memory-lancedb.

API key for OpenAI embeddings (or use ${OPENAI_API_KEY})

Automatically capture important information from conversations

Automatically inject relevant memories into context

Maximum message length eligible for auto-capture

OAuth flow for MiniMax models (plugin: minimax-portal-auth)

Plugin-defined config payload for minimax-portal-auth.

OpenClaw Microsoft Teams channel plugin (plugin: msteams)

Plugin-defined config payload for msteams.

OpenClaw Nextcloud Talk channel plugin (plugin: nextcloud-talk)

Plugin-defined config payload for nextcloud-talk.

OpenClaw Nostr channel plugin for NIP-04 encrypted DMs (plugin: nostr)

Plugin-defined config payload for nostr.

OpenProse VM skill pack with a /prose slash command. (plugin: open-prose)

Plugin-defined config payload for open-prose.

Arm/disarm high-risk phone node commands (camera/screen/writes) with an optional auto-expiry. (plugin: phone-control)

Plugin-defined config payload for phone-control.

Plugin-defined config payload for qwen-portal-auth.

OpenClaw Signal channel plugin (plugin: signal)

Plugin-defined config payload for signal.

OpenClaw Slack channel plugin (plugin: slack)

Plugin-defined config payload for slack.

Synology Chat channel plugin for OpenClaw (plugin: synology-chat)

Plugin-defined config payload for synology-chat.

Manage Talk voice selection (list/set). (plugin: talk-voice)

Plugin-defined config payload for talk-voice.

Telegram channel plugin (plugin: telegram)

Plugin-defined config payload for telegram.

Prevents multiple agents from responding in the same Slack thread. Uses HTTP calls to the slack-forwarder ownership API. (plugin: thread-ownership)

Plugin-defined config payload for thread-ownership.

Base URL of the slack-forwarder ownership API (default: http://slack-forwarder:8750)

Slack channel IDs where thread ownership is enforced

OpenClaw Tlon/Urbit channel plugin (plugin: tlon)

OpenClaw Twitch channel plugin (plugin: twitch)

Plugin-defined config payload for twitch.

OpenClaw voice-call plugin (plugin: voice-call)

Plugin-defined config payload for voice-call.

Use twilio, telnyx, or mock for dev/no-network.

Deep-merges with messages.tts (Edge is ignored for calls).

OpenClaw WhatsApp channel plugin (plugin: whatsapp)

Plugin-defined config payload for whatsapp.

OpenClaw Zalo channel plugin (plugin: zalo)

OpenClaw Zalo Personal Account plugin via zca-cli (plugin: zalouser)

Plugin-defined config payload for zalouser.

Delivery target ("last", "none", or a channel id). Known channels: telegram, whatsapp, discord, irc, googlechat, slack, signal, imessage, email.