Config and update
The bricks config commands manage your connection settings and LLM configuration. The bricks update and bricks version commands handle self-updates and version info.
Configuration lives in ~/.agent-to-bricks/config.yaml.
Interactive setup
Section titled “Interactive setup”The fastest way to get started. Walks you through site URL, API key, and optional LLM configuration.
bricks config initAgent to Bricks — Configuration
Site URL: https://example.comAPI Key: ********-****-****-****-************
Testing connection... ✓ Connected Bricks 1.11.1 / WordPress 6.5.2 / PHP 8.2.18
Configure LLM provider? (y/n): yProvider (openai/anthropic/cerebras): openaiAPI Key: sk-proj-...Model (default: gpt-4o): gpt-4o
Configuration saved to ~/.agent-to-bricks/config.yamlYou can re-run bricks config init any time to reconfigure. It overwrites the existing config file.
Set individual values
Section titled “Set individual values”Change a single config key without touching everything else.
bricks config set <key> <value>Available keys
Section titled “Available keys”| Key | Description | Example |
|---|---|---|
site.url | Your WordPress site URL | https://example.com |
site.api_key | API key from the plugin settings page | abcd1234-ef56-... |
llm.provider | LLM provider name | openai, anthropic, cerebras |
llm.api_key | Your LLM API key | sk-proj-... |
llm.model | Model name | gpt-4o, claude-sonnet-4-20250514 |
llm.base_url | Custom API endpoint (for self-hosted models) | http://localhost:11434/v1 |
llm.temperature | Generation temperature (0.0-1.0) | 0.3 |
Examples
Section titled “Examples”Switch to a different site:
bricks config set site.url https://staging.example.combricks config set site.api_key your-staging-api-keySet up Anthropic instead of OpenAI:
bricks config set llm.provider anthropicbricks config set llm.api_key sk-ant-...bricks config set llm.model claude-sonnet-4-20250514Point to a local model:
bricks config set llm.provider openaibricks config set llm.base_url http://localhost:11434/v1bricks config set llm.model llama3bricks config set llm.api_key not-neededAny provider with an OpenAI-compatible API works with the openai provider type and a custom base_url.
The config file
Section titled “The config file”Everything gets stored in ~/.agent-to-bricks/config.yaml:
site: url: https://example.com api_key: abcd1234-ef56-7890-abcd-ef1234567890
llm: provider: openai api_key: sk-proj-abc123... model: gpt-4o base_url: "" temperature: 0.3You can edit this file directly if you prefer. The CLI reads it fresh on every command.
Update
Section titled “Update”Update the CLI binary and the WordPress plugin.
bricks updateChecking for updates... CLI: v0.8.2 → v0.9.0 (update available) Plugin: v0.8.2 → v0.9.0 (update available)
Downloading CLI v0.9.0... doneDownloading plugin v0.9.0... doneUpdating plugin on https://example.com... done
Updated to v0.9.0| Flag | Description |
|---|---|
--check | Check for updates without installing them |
--cli-only | Only update the CLI, skip the plugin |
--force | Force re-download even if already on the latest version |
Check without installing
Section titled “Check without installing”bricks update --checkCLI: v0.9.0 (current)Plugin: v0.8.2 → v0.9.0 (update available)Update just the CLI
Section titled “Update just the CLI”bricks update --cli-onlyUseful when you want to update the CLI on your local machine but aren’t ready to update the plugin on production.
Version info
Section titled “Version info”See what versions you’re running and whether the CLI and plugin are in sync.
bricks versionCLI: v0.9.0Plugin: v0.9.0Status: in syncGo: 1.22.5Platform: darwin/arm64Show the changelog
Section titled “Show the changelog”bricks version --changelogv0.9.0 (2026-02-20) - Added template learning from existing pages - Improved ACSS class resolution for v3.x utility names - Fixed snapshot rollback not preserving page settings - Added --compact flag to agent context
v0.8.2 (2026-02-10) - Fixed convert HTML handling of nested lists - Added --json flag to search results - Performance improvement for large page pulls...Verify your connection
Section titled “Verify your connection”After configuring, run bricks site info to make sure everything works:
bricks site infoSite: https://example.comBricks: 1.11.1WordPress: 6.5.2PHP: 8.2.18ACSS: 3.0.2Frames: 2.2.0If this fails, double-check your site.url and site.api_key values. The URL should be the root of your WordPress site (no trailing slash, no /wp-admin). The API key comes from Settings > Agent to Bricks in your WordPress admin.
Related commands
Section titled “Related commands”bricks site info— verify your connection after configuringbricks generate section— requires LLM configurationbricks agent context— uses the site connection to export context