# Assistant

The workspace assistant opens beside Pixel from the assistant button in the
workspace header. With an image open in the editor, it can read and change that
design for you: describe the change in plain language, such as "move the title
to the left", "make the background a warm gradient" or "resize this for a
1080 × 1920 story", and it edits the canvas you are looking at.

## What it can do

The assistant works on the open editor only, through these tools:

- **Inspect** the design: its elements, the selection, the canvas settings,
  and whether there are unsaved changes or steps to undo.
- **Update an element**: its content, styles, title or lock, for the selected
  element or one it names.
- **Replace the design**: its elements, conditions and canvas settings at once,
  for example to build a new layout. The image keeps its ID.
- **Select** an element, or clear the selection.
- **Undo and redo**, and **save** or **discard** the draft. It saves or
  discards only when you ask it to.

Every change it makes is an ordinary unsaved edit: it shows on the canvas
straight away and is kept only when the image is saved.
Outside an open image editor, for example on the image library, the assistant
cannot edit a design and says so.

The assistant can also run Pixel's reviewed WP-CLI commands, such as listing
images or warming the cache; the commands that delete something ask you to
confirm first. See [CLI](/docs/pixel/cli.md).

## Provider keys

The assistant needs a key for an AI provider: OpenAI, Anthropic, Google or
OpenRouter. Keys are not a Pixel setting. They live in the **AI** section of
the global settings, which the settings button beside the light and dark mode
control opens; in the standalone SleekPixel plugin the same section appears in
Pixel's Settings. One key there serves the assistant of every SleekWP product
on the site, is stored encrypted and is never shown again. Without a key the
assistant keeps its history readable but cannot answer.
