agentprose Cloud

Docs · Start here

Install the script

Where to paste the agentprose Cloud script tag on Ghost, Webflow, static site generators and any other site, how to connect the agentprose WordPress plugin, plus versioning, CSP, CDN and analytics-only options.

Updated · Markdown

The whole install is one script tag in the <head> of every page:

<script src="https://agentprose.cloud/v/0/agentprose.min.js" data-key="pk_…" defer></script>

It replaces any agentprose tag you already have. agentprose Cloud serves the open-source agentprose library itself, so your site doesn't depend on a public CDN, and the script knows where its Cloud is. Everything the script loads comes from https://agentprose.cloud; What the snippet loads lists each file.

The script is deferred, about 9 KB gzipped, and doesn't touch your layout. It makes no network requests on page load. It only loads its search engine when an agent first calls a site-wide tool.

Where to paste it

Platform Where
WordPress Easiest: the agentprose plugin with your site key. Or your theme's header settings, or any "insert headers and footers" plugin
Ghost Settings → Code injection → Site header
Webflow Site settings → Custom code → Head code
Hugo, Jekyll, Astro, Eleventy, Next.js Your base layout's <head>
Anything else Wherever your pages' <head> is built

WordPress plugin

On WordPress you can skip the script tag. The official agentprose plugin is in the WordPress.org directory: wordpress.org/plugins/agentprose.

  1. In wp-admin, go to Plugins → Add New Plugin, search for agentprose, click Install Now, then Activate. The read-only tools are live on every front-end page at once, without the Cloud.
  2. Go to Settings → agentprose. Under agentprose Cloud (optional), paste your site's public key (pk_…, from the site's Settings & install tab) into Site key, and save.
  3. Leave Hosted search ticked to answer agents' searches from the Cloud index (if a search request fails, WordPress search answers instead). Untick it to keep search on WordPress and use the Cloud for analytics only.

With a key, each agent tool call sends the same analytics message as the script tag to https://agentprose.cloud/v1/collect, and get_site_info and get_contact_info can return the notes and contact details you enter in the dashboard (fetched only when an agent asks). The scripts themselves are still served from your WordPress site, by the plugin: the bundled agentprose release and its WebMCP polyfill, updated through Dashboard → Updates. So the /v/0/ channel and the CSP script-src line below don't apply to the plugin. Only connect-src https://agentprose.cloud does. Your WordPress domain must be on the site's allowed domains (below).

Use the plugin or the Cloud script tag, not both: the plugin already loads agentprose on every page. The plugin's own docs are at salnikov.no/agentprose/wordpress (Self-hosted or Cloud).

Check that it works

Open a page with ?agentprose-inspect added to the address. The 🔌 inspector lists the registered tools and lets you call them.

Versioning and updates

The /v/0/ in the address is the evergreen channel: it always serves the newest agentprose 0.x the Cloud ships. Fixes reach your site within about an hour (browsers cache it for an hour, and refresh it in the background), with no change on your side. A release that could break existing sites would ship as /v/1/, which you choose to move to.

Pin an exact version (advanced). If you want to review every change first, or put a Subresource Integrity hash on the tag, use an exact version instead. The Cloud currently serves agentprose 0.1.6:

<script src="https://agentprose.cloud/v/0.1.6/agentprose.min.js" data-key="pk_…"
        integrity="sha384-…" crossorigin="anonymous" defer></script>

Exact versions never change and stay available, so the hash stays valid; you update by changing the version and the hash together. Compute the hash with curl -s https://agentprose.cloud/v/0.1.6/agentprose.min.js | openssl dgst -sha384 -binary | openssl base64 -A. Pinned sites don't get fixes until you move the pin.

Content-Security-Policy

Everything comes from one domain. With a strict Content-Security-Policy, add:

script-src  https://agentprose.cloud
connect-src https://agentprose.cloud

script-src covers the script, its search engine and adapters, and the MCP-B WebMCP polyfill (all served from https://agentprose.cloud). connect-src covers hosted search and analytics beacons. The script uses no eval and no inline code. Details: What the snippet loads.

Load it from jsDelivr instead

The same library is on npm. From a public CDN the script can't know your Cloud, so data-cloud is required:

<script src="https://cdn.jsdelivr.net/npm/agentprose@0/dist/agentprose.min.js"
        data-cloud="https://agentprose.cloud" data-key="pk_…" defer></script>

Loaded this way, the script and the MCP-B polyfill come from https://cdn.jsdelivr.net (allow it in script-src), and search and analytics go to https://agentprose.cloud (connect-src).

Options

  • Analytics only: use data-analytics="https://agentprose.cloud/v1/collect" with data-key, without data-cloud.
  • Keep search in the browser: add data-cloud-search="false".
  • Content under a sub-path: add data-base="https://example.com/blog/".
  • Subscribe and comment links for agents: data-subscribe="https://example.com/newsletter".

Every option is a data-* attribute. The full list is in the library's configuration reference.

Allowed domains

The public key only works from the domains on the site's list (the site's Settings & install tab). Add your staging domain there if you want to test on it.