@completetech

Mautic Control

OpenClaw plugin for controlled Mautic API, webhook, console bridge, and workspace operations.

Current version
v0.1.10
bundle-pluginCommunitysource-linked

Mautic Control for OpenClaw

Operate Mautic from OpenClaw with typed, policy-gated tools for API work, webhook discovery, safe console maintenance, and guarded workspace file staging.

ItemValue
ClawHub package@completetech/openclaw-mautic-plugin
Runtime IDmautic-control
OpenClaw compatibility>=2026.5.22
ClawHub artifactClawPack npm-pack .tgz
Tested Mautic versionMautic Community 7.1.1
Mautic seriesBuilt for current Mautic 7.x REST API deployments
Sourcehttps://github.com/CompleteTech-LLC-AI-Research/openclaw-mautic-plugin

Install

openclaw plugins install clawhub:@completetech/openclaw-mautic-plugin

After installation, set the Mautic connection values in OpenClaw plugin settings and provide API credentials through environment variables or your platform secret store.

Compatibility

This release was verified against Mautic Community 7.1.1, the latest GitHub release checked on 2026-05-26. Mautic's own release page lists Mautic 7 as the actively supported series.

Expected production target:

ComponentSupported Target
OpenClaw Gateway2026.5.22 or newer
MauticMautic 7.x, tested with 7.1.1
Mautic APILegacy /api routes and /api/v2 where available
Console bridgeOptional, private network only
Workspace file accessOptional, dedicated staging directory only

Validate against your exact Mautic instance before broad rollout, especially if custom plugins, nonstandard API routing, or reverse proxies are involved.

Tools

ToolWhat It DoesRequires
mautic_statusChecks dashboard reachability, API auth, resolved config, command policy, and workspace policy.API credentials
mautic_requestSends authenticated requests to Mautic paths under /api or /api/v2.API credentials
mautic_entityLists, reads, creates, updates, and deletes supported Mautic resources.API credentials
mautic_webhook_triggersLists valid Mautic webhook trigger events.Plugin only
mautic_consoleRuns allowlisted Mautic console commands through the private bridge.Console bridge and token
mautic_workspace_fileLists, reads, writes, or deletes files under a guarded workspace root.Workspace toggles

Production Setup

Use these production defaults unless a trusted operator needs broader access.

StepActionGuidance
Connect MauticSet baseUrlUse the internal URL OpenClaw should call, not a public browser URL unless required by your deployment.
Add credentialsProvide API username and passwordLoad them from a secret store or runtime environment, not from plugin UI config.
Keep access narrowLeave optional controls disabledEnable maintenance, automation, or workspace access only for trusted operators.
Add console access only if neededDeploy the console bridgeThe bridge is required only for console commands. All other tools can run without it.
Limit agent exposureUse restrictive OpenClaw profilesPrefer explicit tool allowlists for agents that process untrusted input.

Required Secrets

Never store these values in the plugin UI, README, or source control.

SecretPurpose
MAUTIC_API_USERNAMEMautic API username. Use least-privilege credentials.
MAUTIC_API_PASSWORDMautic API password.
MAUTIC_CONSOLE_TOKENShared token for the optional console bridge. Required only for mautic_console.

OAuth2 is preferred for external production integrations where available. The local verification stack uses Basic auth only for loopback automation.

Plugin Settings

These settings are non-secret and can be configured in OpenClaw.

SettingDefaultProduction Guidance
baseUrlhttp://mautic_webInternal Mautic URL reachable by OpenClaw.
consoleUrlhttp://mautic_console:8099/consoleInternal bridge URL. Leave unused if console commands are not needed.
workspaceRoot/workspace/mauticDedicated staging directory for file operations.
allowedWorkspaceRoot/workspace/mauticHard boundary for file access. Do not use a home directory or secrets path.
defaultApiVersionlegacyUse legacy or v2 based on your Mautic routes.
requestTimeoutSeconds60HTTP timeout. Range: 5 to 600 seconds.
allowMaintenanceCommandsfalseEnables cache/plugin maintenance commands.
allowAutomationJobCommandsfalseEnables campaign, segment, and webhook job commands.
allowWorkspaceReadfalseEnables list/read under workspaceRoot.
allowWorkspaceWritefalseEnables write/delete under workspaceRoot.

Environment fallbacks are supported for non-secret settings:

MAUTIC_BASE_URL
MAUTIC_CONSOLE_URL
MAUTIC_WORKSPACE_DIR
MAUTIC_ALLOWED_WORKSPACE_ROOT
MAUTIC_DEFAULT_API_VERSION
MAUTIC_REQUEST_TIMEOUT_SECONDS
MAUTIC_ALLOW_MAINTENANCE_COMMANDS
MAUTIC_ALLOW_AUTOMATION_JOB_COMMANDS
MAUTIC_ALLOW_WORKSPACE_READ
MAUTIC_ALLOW_WORKSPACE_WRITE

Security Defaults

The plugin starts in a conservative mode. API access becomes available only after credentials are provided, and operational controls stay off until an operator enables them.

Default Access

CapabilityDefaultWhat That Means
Mautic APIAvailable after credentialsRequests are limited to Mautic API routes only: /api and /api/v2.
Console statusOnOnly migration status is allowed, so OpenClaw can check health without changing Mautic.
Maintenance commandsOffCache clearing and plugin reloads require an explicit toggle.
Automation jobsOffCampaign, segment, and webhook job execution requires a separate explicit toggle.
Workspace readOffFile listing and reading are disabled until enabled for a dedicated staging directory.
Workspace writeOffFile writes and deletes are disabled until enabled for a dedicated staging directory.
Filesystem boundaryAlways onEvery workspace path must stay inside the configured allowed workspace root.

Optional Command Groups

SettingEnablesIntended Use
allowMaintenanceCommandscache:clear; mautic:cache:clear; plugins:reloadRoutine maintenance after config, plugin, or cache changes.
allowAutomationJobCommandswebhooks:process; campaigns:rebuild; campaigns:trigger; segments:updateIntentional campaign, segment, and webhook job execution.

Console requests are checked twice: first by the plugin allowlist, then by the optional bridge allowlist. For agents that process untrusted input, use restrictive OpenClaw profiles or explicit tool allowlists.

Console Bridge

The console bridge is optional. It is needed only for the console-command tool; API, entity, webhook, status, and workspace tools can run without it.

Use the included bridge file only as a private internal endpoint between OpenClaw and Mautic.

RequirementProduction Guidance
Bridge fileDeploy mautic/console-bridge.php only when console commands are required.
NetworkKeep the bridge on a private network reachable by OpenClaw.
AuthenticationProtect every request with MAUTIC_CONSOLE_TOKEN.
Public accessDo not expose the bridge directly to the public internet.
Command scopeKeep execution limited to the plugin and bridge allowlists.

Without the bridge, disable or ignore mautic_console; the rest of the plugin remains usable.

Local Docker Stack

The companion Docker stack uses explicit local settings to preserve the development workflow:

baseUrl=http://mautic_web
consoleUrl=http://mautic_console:8099/console
workspaceRoot=/workspace/mautic
allowedWorkspaceRoot=/workspace/mautic
defaultApiVersion=legacy
requestTimeoutSeconds=60
allowMaintenanceCommands=true
allowAutomationJobCommands=false
allowWorkspaceRead=true
allowWorkspaceWrite=true

These are local-stack defaults, not production defaults. Do not expose the local stack's loopback credentials or Basic auth settings publicly.

Verify

Package checks:

npm run lint
npm test
npm run package:check

ClawHub readiness:

npm run readiness:check

Live stack checks:

npm run live:smoke
node scripts/audit.mjs
node scripts/audit.mjs --live
docker compose exec -T openclaw sh -lc 'openclaw security audit --deep --json'

Publish

The package is published on ClawHub as @completetech/openclaw-mautic-plugin.

Releases are published as a ClawPack npm-pack artifact, not the older legacy zip artifact. Trusted publishing uses GitHub Actions OIDC; no long-lived ClawHub token is stored in repository secrets. The GitHub workflow publishes the checked-in clawpack/ tarball through ClawHub's official reusable workflow so the release can use both official OIDC and the npm-pack artifact path.

Current ClawHub behavior: the release is source-linked to the GitHub commit and passes ClawHub's source provenance readiness check, but community ClawPack bundle releases still display artifact-only verification with hasProvenance=false.

For a future release:

npm run readiness:check
rm -rf clawpack
mkdir -p clawpack
npm exec --yes clawhub -- package pack . --pack-destination clawpack --json
gh workflow run clawhub-publish.yml --ref main

Optional publish environment variables are CLAWHUB_OWNER, CLAWHUB_CHANGELOG, CLAWHUB_SOURCE_REPO, CLAWHUB_SOURCE_REF, CLAWHUB_TAGS, CLAWHUB_CLAWSCAN_NOTE, and CLAWHUB_ALLOW_PRIVATE_SOURCE.

See docs/TRUSTED_PUBLISHING.md for the trusted publisher workflow and verification commands.

Limits

  • Pre-1.0 release: validate in the target environment before broad rollout.
  • mautic_console cannot run arbitrary shell or Mautic console commands.
  • mautic_workspace_file is for guarded staging workflows, not full filesystem access.
  • ClawHub scan status may be pending immediately after a new release is published.

Source and release

Source repository

CompleteTech-LLC-AI-Research/openclaw-mautic-plugin

Open repo

Source commit

55beeadf320a9608fa212783b3f558541c23e261

View commit

Install command

openclaw plugins install clawhub:@completetech/openclaw-mautic-plugin

Metadata

  • Package: @completetech/openclaw-mautic-plugin
  • Created: 2026/05/26
  • Updated: 2026/05/26
  • Executes code: No
  • Source tag: refs/heads/main

Compatibility

  • Built with OpenClaw: 2026.5.22
  • Plugin API range: >=2026.5.22
  • Tags: crm, latest, marketing-automation, mautic, openclaw, webhooks
  • Files: 16