Table of contents
openwebui_code_execution_config (Resource)
Manages the two ways Open WebUI runs code, each with its own engine and its own Jupyter settings.
Code execution runs a code block a user clicks Run on. The code interpreter is the tool a model calls on its own, and it takes the extra prompt template. The code_execution_* attributes apply to the first, the code_interpreter_* attributes to the second, and Open WebUI reads each set of Jupyter attributes only when the matching engine is jupyter.
Open WebUI writes those four keys on every update, so this resource requires all four.
Example Usage
resource "openwebui_code_execution_config" "example" {
enable_code_execution = true
code_execution_engine = "jupyter"
code_execution_jupyter_url = "http://jupyter.internal:8888"
code_execution_jupyter_auth = "token"
code_execution_jupyter_auth_token = var.jupyter_token
enable_code_interpreter = false
code_interpreter_engine = "jupyter"
}
variable "jupyter_token" {
type = string
sensitive = true
}
Schema
Required
code_execution_engine(String) Engine that runs the code, e.g.jupyter. Open WebUI reads thecode_execution_jupyter_*attributes only when this isjupyter.code_interpreter_engine(String) Engine that runs the code interpreter, e.g.jupyter. Open WebUI reads thecode_interpreter_jupyter_*attributes only when this isjupyter.enable_code_execution(Boolean) Whether a user can run a code block from a chat.enable_code_interpreter(Boolean) Whether a model can run code on its own, as a tool, rather than waiting for a user to click Run.
Optional
code_execution_jupyter_auth(String) Authentication type for the Jupyter server, e.g.tokenorpassword.code_execution_jupyter_auth_password(String, Sensitive) Password for the Jupyter server. Sensitive.code_execution_jupyter_auth_token(String, Sensitive) Auth token for the Jupyter server. Sensitive.code_execution_jupyter_timeout(Number) Request timeout in seconds for the Jupyter server.code_execution_jupyter_url(String) URL of the Jupyter server used for code execution.code_interpreter_jupyter_auth(String) Authentication type for the code interpreter Jupyter server.code_interpreter_jupyter_auth_password(String, Sensitive) Password for the code interpreter Jupyter server. Sensitive.code_interpreter_jupyter_auth_token(String, Sensitive) Auth token for the code interpreter Jupyter server. Sensitive.code_interpreter_jupyter_timeout(Number) Request timeout in seconds for the code interpreter Jupyter server.code_interpreter_jupyter_url(String) URL of the Jupyter server used for the code interpreter.code_interpreter_prompt_template(String) System prompt template used with the code interpreter.
Read-Only
id(String) Identifier of this singleton resource. Alwayscode_execution.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# Open WebUI holds one code execution configuration, so this resource is a
# singleton. Import it under its fixed id.
terraform import openwebui_code_execution_config.example code_execution
Data sources
- openwebui_channel (Data Source)
- openwebui_config_export (Data Source)
- openwebui_file (Data Source)
- openwebui_files (Data Source)
- openwebui_group (Data Source)
- openwebui_knowledge (Data Source)
- openwebui_model (Data Source)
- openwebui_ollama_connection_verify (Data Source)
- openwebui_openai_connection_verify (Data Source)
- openwebui_pipeline (Data Source)
- openwebui_prompt (Data Source)
- openwebui_skill (Data Source)
- openwebui_tool (Data Source)
- openwebui_tool_server (Data Source)
- openwebui_tool_server_verify (Data Source)
- openwebui_user (Data Source)
Resources
- openwebui_admin_config (Resource)
- openwebui_audio_config (Resource)
- openwebui_banners_config (Resource)
- openwebui_channel (Resource)
- openwebui_chat_config (Resource)
- openwebui_code_execution_config (Resource)
- openwebui_config_import (Resource)
- openwebui_connections_config (Resource)
- openwebui_default_user_permissions (Resource)
- openwebui_evaluation_config (Resource)
- openwebui_file (Resource)
- openwebui_function (Resource)
- openwebui_function_valves (Resource)
- openwebui_group (Resource)
- openwebui_group_features (Resource)
- openwebui_images_config (Resource)
- openwebui_knowledge (Resource)
- openwebui_knowledge_file (Resource)
- openwebui_ldap_config (Resource)
- openwebui_model (Resource)
- openwebui_model_settings (Resource)
- openwebui_models_config (Resource)
- openwebui_oauth_client (Resource)
- openwebui_oauth_picture_links (Resource)
- openwebui_oauth_roles (Resource)
- openwebui_ollama_connections (Resource)
- openwebui_openai_connection_models (Resource)
- openwebui_openai_connections (Resource)
- openwebui_pipeline (Resource)
- openwebui_pipeline_valves (Resource)
- openwebui_prompt (Resource)
- openwebui_rag_config (Resource)
- openwebui_rag_embedding_config (Resource)
- openwebui_skill (Resource)
- openwebui_subagents_config (Resource)
- openwebui_suggestions_config (Resource)
- openwebui_task_config (Resource)
- openwebui_terminal_server (Resource)
- openwebui_tool (Resource)
- openwebui_tool_server (Resource)
- openwebui_tool_server_access (Resource)
- openwebui_tool_servers_config (Resource)
- openwebui_tool_valves (Resource)
- openwebui_user (Resource)
- openwebui_videos_config (Resource)
Published from docs/ (refs/tags/v0.1.0-dev.10, a40bd0a133e7). Edit the source in a pull request; wiki edits are replaced on the next publish.