Skip to main content
New
Announcing Agent Connector
Documentation menu
Documentation

Constants

Agent Connector reads a few optional PHP constants that can be defined in wp-config.php.

  • AGENT_CONNECTOR_FOR_WP_TIMEOUT_MS — How long a command or PHP evaluation may run, in milliseconds. Default 60000 (60 seconds).
  • AGENT_CONNECTOR_FOR_WP_MAX_OUTPUT_BYTES — The cap on captured output per stream, in bytes. Default 2097152 (2 MiB).
  • AGENT_CONNECTOR_FOR_WP_AUDIT_LOG — Set this to an absolute file path to turn on the file audit log, which records every ability execution to that file. Off by default — leave it undefined and no file is written.
  • AGENT_CONNECTOR_FOR_WP_SANDBOX_DIR — Directory where generated PHP is written. Default wp-content/agent-connector-for-wp-sandbox/.

For example, in wp-config.php:

define( 'AGENT_CONNECTOR_FOR_WP_TIMEOUT_MS', 120000 );
define( 'AGENT_CONNECTOR_FOR_WP_AUDIT_LOG', '/var/log/ac4wp-audit.log' );
Put your AI agent to work.
Free and open source. Install, connect your agent, and go.
Agent Connector
For WordPress
Connect any MCP agent — Claude, Codex, OpenCode, and more — to WordPress, and give it real, administrator-level control.
From the blog
GPL-2.0-or-later · by soflyy
Built in WordPress + Oxygen via Agent Connector