--- summary: "Agent-composable Workspaces in the Control UI" read_when: - Building or rearranging workspace tabs and widgets - Letting an agent compose a workspace - Reviewing the custom-widget approval and sandbox model title: "Workspaces" --- The **Workspaces** tab in the [Control UI](/web/control-ui) is a surface you and your agents arrange together. Tabs, widgets, their positions on a 12-column grid, and their data bindings all live in one document. Anything that can edit that document can compose the workspace: you, the `openclaw workspaces` CLI, or an agent calling `workspace_*` tools. Every write goes through the same validated path, so a human's layout and an agent's layout cannot diverge. Each accepted write bumps a version and broadcasts `plugin.workspaces.changed`, so an agent's edit appears in an already-open browser without a reload. ## Enable Workspaces The bundled Workspaces plugin is disabled by default. In the Control UI, open **Plugins**, find **Workspaces**, and select **Enable**. You can also enable it from the CLI: ```sh openclaw plugins enable workspaces ``` Enabling the plugin adds the **Workspaces** tab and makes the `openclaw workspaces` CLI and `workspace_*` agent tools available. Disabling it removes those surfaces without deleting the workspace database or widget assets. ## The default workspace On first load you get an **Overview** workspace: cost and token cards, instance health, sessions, cron status, and an activity feed. It is ordinary workspace content — drag it, collapse it, hide it, or delete it. ## Built-in widgets Nine trusted widgets ship with the plugin and render as first-party UI: `stat-card`, `markdown`, `table`, `iframe-embed`, `sessions`, `usage`, `cron`, `instances`, `activity`. Widgets declare data through **bindings**, they never fetch on their own: | Binding | Resolves to | | -------- | --------------------------------------------------------------------------------------------------------- | | `static` | A literal value stored in the document (8 KB max). | | `file` | A JSON, Markdown, or CSV file under `/workspaces/data/`, optionally narrowed by a JSON pointer. | | `rpc` | One of a fixed allowlist of read-only gateway methods, resolved by the trusted Control UI. | The `file` binding is the simplest way to put your own numbers in a workspace: write a JSON file into the data directory and point a `stat-card` at it. ## Provenance Tabs and widgets carry a `createdBy` stamp — `user`, `system`, or `agent:` — set from whoever made the write. It cannot be supplied by the caller, so an agent cannot label its work as yours, and the "AI" chip on an agent-authored widget always means what it says. ## Custom widgets An agent can author a real HTML widget with `workspace_widget_scaffold` (or you can, with `openclaw workspaces widget-scaffold `). Agent-authored code is treated as hostile: - A scaffolded widget enters the registry as **pending**. No iframe is created, and the asset route returns 404 for its files, until an operator approves it. - Approval is a separate decision from editing a layout: `workspaces.widget.approve` requires the `operator.approvals` scope, the same scope that guards exec approvals. - An approved widget renders in an `