Skip to content

Settings

The plugin settings live at Settings > Agent to Bricks in the WordPress admin. The settings page manages CLI & Agent API Keys — this is where you generate and revoke keys for external tools. See Authentication for the details.

The plugin stores its data in several WordPress options. You shouldn’t need to edit these directly, but they’re useful for debugging or if you’re building integrations.

Main settings object. Currently stores general plugin configuration.

Array of CLI/agent API keys. Each entry:

[
'key_hash' => '...', // SHA-256 hash of the key
'key_prefix' => 'atb_xK9m', // First 8 chars (for display)
'user_id' => 1, // WordPress user who created it
'label' => 'My CLI', // Human-readable label
'created' => '2026-02-25 14:00', // Creation timestamp
'last_used' => '2026-02-25 15:30', // Last API request timestamp
]

Bricks’ native option. Array of global CSS classes. The plugin reads and writes to this for class management. See Global classes.

Bricks’ native option. Theme style definitions including typography, colors, and custom CSS. The plugin reads this for the /styles endpoint.

Bricks’ native option. Contains the color palette and other global Bricks settings. Read-only from the plugin’s perspective.

Bricks’ native option. CSS custom properties defined through the Bricks UI.

ACSS’s native option. Read by the plugin for framework detection and design token extraction. Only present if ACSS is installed.

To start fresh, delete the options:

DELETE FROM wp_options WHERE option_name IN (
'agent_bricks_settings',
'agent_bricks_api_keys'
);

Or from WP-CLI:

Terminal window
wp option delete agent_bricks_settings
wp option delete agent_bricks_api_keys

This removes all plugin configuration and revokes all API keys. The Bricks-native options (bricks_global_classes, etc.) are untouched.

If you manage staging and production environments, remember:

  • API keys are per-site. A key generated on staging won’t work on production.
  • The CLI config file supports multiple sites. Set up site profiles in ~/.agent-to-bricks/config.yaml so you can target different environments without changing settings. See Configuration.