AI Valve

AI Valve

توسط

AI Valve gives site administrators visibility and control over how plugins use the built-in WordPress AI connector.

Features

  • Per-plugin access control — Allow or deny individual plugins from making AI requests.
  • Token budgets — Set daily and monthly token limits per plugin and globally.
  • Context restrictions — Control which execution contexts (admin, frontend, cron, REST, AJAX, CLI) may trigger AI calls.
  • Usage dashboard — See token consumption at a glance with summary cards, progress bars, and per-plugin breakdowns.
  • Request logging — Every AI request is logged with provider, model, capability, tokens, and caller attribution.
  • Budget alerts — Admin notices and optional email when usage approaches or exceeds limits.

Requirements

  • WordPress 7.0 or later
  • PHP 8.3 or later
  • A configured AI provider in Settings Connectors
  1. Install AI Valve from the WordPress plugin directory, or upload soderlind-aivalve.zip via Plugins Add New Upload Plugin.
  2. Activate the plugin.
  3. Go to Settings AI Valve to configure.

سوالات متداول

What are tokens?

Tokens are the units AI models use to measure input and output. Roughly 1 token ≈ ¾ of a word. Both the text you send (prompt tokens) and the text the AI returns (completion tokens) count toward your usage.

What does “limit = 0” mean?

A limit of 0 means unlimited — no cap is enforced. Set a positive number to restrict token usage.

How does AI Valve identify which plugin made an AI request?

It walks the PHP call stack (debug_backtrace()) and matches file paths against the plugins directory to determine the originating plugin slug.

Will this work with future WordPress updates?

Yes. AI Valve relies only on the stable public hooks (wp_ai_client_prevent_prompt, wp_ai_client_before_generate_result, wp_ai_client_after_generate_result) provided by the WordPress AI connector API.

Are there developer hooks?

Yes. See the developer hooks documentation for available filters and actions.

Does AI Valve work on multisite?

Yes. Each subsite has its own log table, settings, and budgets.

What happens when a plugin is blocked?

The plugin receives a WP_Error with code prompt_prevented instead of an AI response. The denied request is logged with the reason. See how-blocking-works.md for the full explanation.

How do I block all plugins and only allow specific ones?
  1. Go to Settings AI Valve Settings.
  2. Set the Default policy to Deny.
  3. Switch to the Dashboard tab.
  4. In the Per-plugin access table, set the plugins you want to allow to Allow.

Only explicitly allowed plugins will be able to make AI requests; everything else is denied by default.

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
هیچ نسخه‌ای برای این آیتم موجود نیست.
بدون امتیاز

قیمت:

رایگان

نگارش

آخرین انتشار

21 خرداد 1405

آخرین بروزرسانی

2 ماه پیش

نصب های فعال

-

نگارش وردپرس

وردپرس 7.0+

تست شده از نسخه

وردپرس 7.0

نگارش PHP

PHP 8.3+

نسخه ها

0 نسخه