3 Resources subagents_config
Forgejo Actions edited this page 2026-11-26 09:28:48 +00:00

openwebui_subagents_config (Resource)

Manages the subagent settings for Open WebUI. Subagents let a chat delegate work to a nested agent run. Open WebUI writes every setting on every update. A limit or the system prompt left out of the configuration keeps its current value (read just before the write), so a configuration may own only enable_subagents. There is no way to set a limit back to unlimited from here; do that in Open WebUI.

Example Usage

resource "openwebui_subagents_config" "example" {
  enable_subagents             = true
  subagents_background_enabled = false
  subagents_max_concurrent     = 2
  subagents_max_async          = 1
  subagents_max_iterations     = 8
  subagents_max_output         = 4000
  subagents_system_prompt      = ""
}

Schema

Required

  • enable_subagents (Boolean) Whether subagents are available at all.

Optional

  • subagents_background_enabled (Boolean) Whether a subagent may keep running in the background after the chat turn ends. Open WebUI 0.13.5 removed this setting; leave it unset there.
  • subagents_max_async (Number) Maximum number of background subagents.
  • subagents_max_concurrent (Number) Maximum number of subagents that run at the same time.
  • subagents_max_iterations (Number) Maximum number of turns one subagent takes before it stops.
  • subagents_max_output (Number) Maximum size in characters of the output a subagent returns to its caller.
  • subagents_system_prompt (String) System prompt given to every subagent. An empty string leaves the built-in prompt in place.

Read-Only

  • id (String) Identifier of this singleton resource. Always subagents.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# Open WebUI holds one subagents configuration, so this resource is a singleton.
# Import it under its fixed id.
terraform import openwebui_subagents_config.example subagents