Download the PHP package ultimate-multisite/ai-agent without Composer

On this page you can find all versions of the php package ultimate-multisite/ai-agent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ai-agent

SD AI Agent for WordPress

Download Plugin Now   Upload the zip to WordPress like any other plugin

Tests Code Quality PHP 8.2+ WordPress 7.0+ License: GPL v2+ Try in Playground

Documentation

SD AI Agent is your AI teammate for the WordPress site you already run. Ask one assistant to improve content, prepare products, review SEO and site information, and automate repeatable work — while keeping your existing theme, plugins, and AI provider. The technical foundation below lets compatible plugins add tools the assistant can use as your site grows.

How it works

WordPress 7.0 introduced two core APIs that make this possible:

This means the agent gets more capable as your site grows. Every plugin that registers abilities expands what the AI can do — no glue code, no per-plugin setup.

What the agent can do out of the box

AI Agent ships with 28 built-in ability classes covering:

Domain Examples
Content Create, edit, and manage posts, pages, and custom post types. Manage categories and tags.
Editorial Review content, check readability, manage editorial workflows
WooCommerce Manage products, orders, customers, and view sales analytics
Media Upload, search, and manage images and files in the media library
SEO Analyze pages, check meta tags, review structured data, find issues
Site Health Run diagnostics, check plugin status, review security and performance
Users List, create, and manage user accounts and roles
Blocks Browse block types, patterns, and templates
Navigation Manage WordPress navigation menus
Site Builder Build and modify page layouts
Analytics Query Google Analytics data and Google Search Console metrics
Knowledge Search indexed content, PDFs, and external URLs (RAG)
AI Images Generate images with AI and insert them into content
Stock Images Search and download stock photography
Database Run read queries against the WordPress database
Files Read and search files on the server
Marketing Review CDN, security headers, and performance settings
Memory & Skills Save and recall facts across sessions; load reusable instruction guides

Any plugin can register additional abilities through the WordPress Abilities API — the agent discovers and uses them automatically.

Bring Your Own Key

Most WordPress AI plugins route calls through a proprietary proxy that marks up API costs. AI Agent talks directly to your provider:

AI Provider Connectors

AI Agent works with any connector plugin registered through the WordPress Connectors API. Install the ones that match your setup:

Official WP.org connectors

Connector Models Auth
AI Provider for OpenAI GPT-4o, GPT-4.1, o3, o4-mini, and more API key
AI Provider for Anthropic Claude Opus 4, Sonnet 4, Haiku API key
AI Provider for Google Gemini 2.5 Flash, Gemini 2.5 Pro API key

Community connectors

Connector What it does
AI Provider for Anthropic Max Use your Claude Max subscription instead of per-token API billing. Authenticates via OAuth tokens with automatic account pool rotation — ideal for teams or heavy usage where a flat-rate Max plan is cheaper than API credits.
Compatible Endpoints Connect to anything that speaks the OpenAI API format: Ollama (local models, zero cost), Azure OpenAI, Groq, Together AI, OpenRouter, and more.
WebLLM Run models entirely in the browser using WebGPU. No API key, no server, no data leaves the machine. Good for demos and privacy-sensitive environments.

All connectors are included in the WordPress Playground demo.

Managed Superdav AI service

The bundled Superdav AI connector uses a service-managed site token instead of a customer-provided provider key. New installs default to the production Superdav edge at https://api.sdaiagent.com/v1; plugin activation and the first provider-list request both try to register the site automatically so the chat can open without a manual Connect step.

Registration is keyed by the plugin's durable site installation ID. The Superdav edge must treat repeated /site/installations calls for that ID as an idempotent refresh of the same free plan and starter-credit wallet, not a new free-credit grant.

For local Superdav AI Service testing, override the OpenAI-compatible /v1 base URL in wp-config.php:

Model listing and chat use GET /v1/models and POST /v1/chat/completions with the stored site token as Authorization: Bearer <SITE_ACCESS_TOKEN>. Override SD_AI_AGENT_CLOUD_REGISTRATION_ENDPOINT or SD_AI_AGENT_CLOUD_REVOCATION_ENDPOINT only when those endpoints live outside the configured base URL.

Features

Agentic chat

Three chat interfaces

Custom agents

Build specialized agents with the Agent Builder:

Session management

Memory

Skills

Knowledge base (RAG)

Custom tools

Create tools the AI can use without writing plugin code:

5 example tools are seeded on first activation (Weather API, Zapier Webhook, Clear Object Cache, Maintenance Mode, Site Health Check).

Scheduled automations

Cron-based AI tasks that run unattended:

Event-driven automations

React to WordPress hooks in real time:

Tool discovery

When your site has many registered abilities (20+), the agent uses meta-tools to discover what's available instead of loading every tool definition into the system prompt:

Smart conversation trimming

Prevents context window overflow in long agentic loops:

Suggestion chips

After each AI response, clickable follow-up suggestions appear:

Access and branding

Usage dashboard

Provider trace

Debug mode that captures the raw HTTP traffic between WordPress and your AI provider. Useful for troubleshooting connection issues and inspecting the exact prompts and responses.

Context providers

The AI automatically receives relevant context about the current page:

Requirements

Installation

  1. Upload the sd-ai-agent folder to /wp-content/plugins/
  2. Activate through the Plugins screen
  3. Configure an AI provider in Settings > AI Credentials (WordPress core Connectors API)
  4. Go to Tools > AI Agent Settings to select your default provider and model
  5. Open Tools > AI Agent to start chatting

Configuration

All settings live under Tools > AI Agent Settings with these tabs:

Tab What it controls
General Default provider, model, max iterations, system prompt, greeting message
Memory & Knowledge Auto-memory toggle, memory CRUD, RAG collections and sources
Skills Create and manage instruction guides
Tools Custom HTTP/ACTION/CLI tools, per-ability permission controls (auto / confirm / disabled)
Automations Scheduled cron-based AI tasks and event-driven hook automations
Agents Create and manage custom agents with their own prompts, models, and settings
Access & Branding Role permissions, custom name, logo, and colors
Usage Token counts and cost tracking
Provider Trace Debug HTTP traffic between WordPress and AI providers
Advanced Temperature, max tokens, context window, tool discovery settings

Architecture

REST API pattern

The agent uses an async job + polling pattern to handle long-running inference:

  1. POST /sd-ai-agent/v1/run — Starts a background job, returns job_id
  2. GET /sd-ai-agent/v1/job/{id} — Poll until status: completed (or awaiting_confirmation for tool approval)
  3. POST /sd-ai-agent/v1/job/{id}/confirm or /reject — Handle tool confirmations

This avoids HTTP timeout issues with multi-step agentic loops that can take 30+ seconds.

Customer-agent runtime PHP contract

Trusted plugins on the same WordPress install can use the versioned, server-side customer-agent runtime without calling /public-chat/*, creating browser tokens, or depending on SessionController job arrays. There is intentionally no new unauthenticated REST endpoint.

Register a constrained profile from the consuming plugin, then discover the contract before use. V1 accepts only server-owned system instructions, the sd-ai-agent/knowledge-search ability, and declared knowledge collections. Client tools, browser tools, mutations, attachments, and caller-supplied prompts are unavailable.

enqueue_turn() is idempotent for the integration key, external session ID, and external message ID. inspect_job() is non-consuming: complete, failed, and cancelled jobs remain readable for at least seven days. cancel_job() prevents a late result from becoming deliverable, although an in-flight provider request may already be physically running. close_conversation() cancels and purges the constrained runtime history; the consumer remains responsible for its own customer transcript and routing state.

Extending

Register custom abilities that the agent can use:

The agent discovers and uses any registered ability automatically.

Add context providers:

Development

WordPress Playground testing

Test the plugin instantly in your browser without any local setup:

The canonical blueprint lives at .wordpress-org/blueprints/blueprint.json — this is the path WordPress.org uses when displaying the plugin in the plugin directory.

License

GPL-2.0-or-later


All versions of ai-agent with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
automattic/jetpack-autoloader Version ^5.0.19
psr/simple-cache Version ^1.0 || ^2.0 || ^3.0
smalot/pdfparser Version ^2.12.5
x-wp/di Version dev-fix/rest-context-plain-permalink-support as 1.9.99
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ultimate-multisite/ai-agent contains the following files

Loading the files please wait ...