Skip to content

openwebui

Served by plugin-openwebui
Placement runtime (out-of-process over gRPC)

openwebui is a command word served by the plugin-openwebui plugin candy. This plugin is not listed in charly/charly.yml’s compiled_plugins:. It is not part of the shipped binary: charly builds and loads it out-of-process over gRPC when a plan references one of its words (the coexist path).

The charly openwebui management CLI plus the CUE-validated kind: openwebui configuration entity — save a deployed Open WebUI’s configuration into a project’s charly.yml, and deploy it back through Open WebUI’s own HTTP API.

Two capabilities, one object. command:openwebui is the CLI (status, save, apply, diff, export); kind:openwebui is the flat <name>: {openwebui: …} entity it reads and writes. The entity is validated at load against this plugin’s served #OpenwebuiInput, so a typo’d surface or a missing required field is a charly box validate error, not a silent no-op.

The field names are the server’s own. Each config.<surface> body is the JSON body of that surface’s POST endpoint (POST /api/v1/configs/connections, POST /openai/config/update, …), so save is a GET→node copy and apply is a node→POST copy with no translation table that could drift. apply posts each surface’s own typed endpoint — never the untyped bulk POST /api/v1/configs/import, which skips every per-surface side effect (model-cache invalidation, tool-server re-registration, MFA session revocation).

Credentials never enter the file. save replaces every credential-bearing leaf with {keep: true} (the live value is preserved at apply time), so a save→apply round-trip is a no-op and a committed entity carries no secret. apply refuses a literal credential in the entity unless --allow-literal-secrets is passed for a throwaway bed; an operator-authored {secret: <credential-key>} is resolved from the environment instead.

The plugin owns the whole surface — the grammar, the HTTP client, the surface table, the credential placeholders and the comment-preserving charly.yml write. Placement is computed from charly.yml’s compiled_plugins:, never stated here.

charly --help prints the command tree, including where openwebui is invoked and under which parent.