Title: Baghwa
Author: sohailansari2009
Published: <strong>28. travnja 2026.</strong>
Last modified: 02. svibnja 2026.

---

Pretraga dodataka

![](https://ps.w.org/baghwa/assets/banner-772x250.png?rev=3517371)

![](https://ps.w.org/baghwa/assets/icon.svg?rev=3517371)

# Baghwa

 Od [sohailansari2009](https://profiles.wordpress.org/sohailansari2009/)

[Preuzmi](https://downloads.wordpress.org/plugin/baghwa.1.4.2.zip)

 * [Detalji](https://hr.wordpress.org/plugins/baghwa/#description)
 * [Recenzije](https://hr.wordpress.org/plugins/baghwa/#reviews)
 *  [Instalacija](https://hr.wordpress.org/plugins/baghwa/#installation)
 * [Razvoj](https://hr.wordpress.org/plugins/baghwa/#developers)

 [Podrška](https://wordpress.org/support/plugin/baghwa/)

## Opis

Baghwa adds an AI button next to eligible text fields and text editors. It opens
a prompt popup, generates content from your configured AI provider, and inserts 
text into the selected field only.

Features:

 * Works in wp-admin and front-end visual editors (including Elementor, Divi, Gutenberg,
   and other editors that use input, textarea, contenteditable, and same-origin 
   iframe fields).
 * Excludes email and password fields.
 * Prompt options: language, character count, and emotion.
 * If field already has text, Baghwa pre-fills prompt with:
    - line 1: `enhance this writing:`
    - line 2: character count
    - line 3+: current field content
 * Auto language detection for existing text.
 * Retry logic for temporary provider errors, with retry counter and cooldown button.
 * Multiple provider support:
    - OpenRouter
    - OpenAI
    - Anthropic
    - Google Gemini
    - Qwen (DashScope)
    - Ollama (local)
    - LM Studio (local)
    - Custom OpenAI-compatible endpoint
 * Settings UI supports model refresh and model search.

### External services

Baghwa sends data to the selected AI provider only when an authorized user clicks**
Generate Text** or when an admin clicks **Refresh Models** on the settings page.

Data sent during generation:

 * user prompt text
 * selected language, emotion, and character target
 * selected model id
 * provider authentication key configured by the admin

Data sent during model refresh:

 * provider authentication key (if required by that provider)
 * selected region or base URL when applicable

OpenRouter requests also include your site URL and site title headers (`HTTP-Referer`
and `X-Title`) because OpenRouter supports app identification.

Possible provider endpoints:

 * OpenRouter API: https://openrouter.ai/api/v1
 * OpenAI API: https://api.openai.com/v1
 * Anthropic API: https://api.anthropic.com/v1
 * Google Gemini API: https://generativelanguage.googleapis.com/v1beta
 * Qwen DashScope API: https://dashscope-intl.aliyuncs.com/compatible-mode/v1
 * LM Studio local endpoint (example): http://127.0.0.1:1234/v1
 * Ollama local endpoint (example): http://127.0.0.1:11434
 * Custom endpoint defined by site administrator

Provider terms and privacy:

 * OpenRouter: https://openrouter.ai/terms | https://openrouter.ai/privacy
 * OpenAI: https://openai.com/policies/terms-of-use | https://openai.com/policies/
   privacy-policy
 * Anthropic: https://www.anthropic.com/legal/consumer-terms | https://www.anthropic.
   com/legal/privacy
 * Google Gemini (Google): https://policies.google.com/terms | https://policies.
   google.com/privacy
 * Alibaba Cloud DashScope (Qwen): https://www.alibabacloud.com/help/en/legal/latest/
   alibaba-cloud-international-website-product-terms-of-service | https://www.alibabacloud.
   com/help/en/legal/latest/alibaba-cloud-international-website-privacy-policy

For local providers (Ollama/LM Studio), data stays within your infrastructure unless
your local setup forwards requests externally.
 For custom providers, terms and 
privacy links depend on the endpoint chosen by the site administrator and must be
reviewed by the site owner before use.

## Snimke zaslona

[⌊Baghwa AI trigger button beside an editable field.⌉⌊Baghwa AI trigger button beside
an editable field.⌉[

Baghwa AI trigger button beside an editable field.

[⌊Baghwa Settings page with provider configuration and model controls.⌉⌊Baghwa Settings
page with provider configuration and model controls.⌉[

Baghwa Settings page with provider configuration and model controls.

[⌊Baghwa AI Text Assistant popup with prompt, language, character, and emotion options.⌉⌊
Baghwa AI Text Assistant popup with prompt, language, character, and emotion options
.⌉[

Baghwa AI Text Assistant popup with prompt, language, character, and emotion options.

[⌊Generated text preview and apply workflow inside the assistant popup.⌉⌊Generated
text preview and apply workflow inside the assistant popup.⌉[

Generated text preview and apply workflow inside the assistant popup.

## Instalacija

 1. Upload the `baghwa` folder to `/wp-content/plugins/`.
 2. Activate **Baghwa** from the WordPress Plugins screen.
 3. Go to **Settings > Baghwa**.
 4. Select your active provider.
 5. Add provider credentials (API key or local endpoint details).
 6. Refresh models and select a model.
 7. Assign extra users if needed (admins are always allowed).
 8. Start editing content and click the Baghwa AI button on eligible fields.

## Pitanja i odgovori

### Why do I not see Baghwa in editor fields?

Make sure:

 * Your user is admin or assigned in Baghwa settings.
 * The field is an eligible text field (not email/password).
 * The editor context is same-origin (cross-origin iframes cannot be accessed by
   browser security rules).
 * You hard-refresh the editor page after plugin updates.

### Why does generation fail with provider errors?

Common causes:

 * Invalid API key or blocked account.
 * Selected model not available to your account.
 * Free endpoint capacity issues (Baghwa retries automatically up to 5 times).
 * Local provider URL/model is incorrect or service is not running.

### How do I use local AI with Docker WordPress?

For WordPress running in Docker:

 * Ollama base URL: `http://host.docker.internal:11434`
 * LM Studio base URL: `http://host.docker.internal:1234/v1`

## Recenzije

Nema recenzija za ovaj dodatak.

## Suradnici i Programeri

“Baghwa” je softver otvorenog koda. Sljedeće osobe su doprinijele ovom dodatku.

Suradnici

 *   [ sohailansari2009 ](https://profiles.wordpress.org/sohailansari2009/)

[Prevedite “Baghwa” na svoj jezik.](https://translate.wordpress.org/projects/wp-plugins/baghwa)

### Zainteresirani ste za razvoj?

[Pregledajte kôd](https://plugins.trac.wordpress.org/browser/baghwa/), pogledajte
[SVN spremište](https://plugins.svn.wordpress.org/baghwa/)ili se pretplatite na 
[dnevnik razvoja](https://plugins.trac.wordpress.org/log/baghwa/) od [RSS](https://plugins.trac.wordpress.org/log/baghwa/?limit=100&mode=stop_on_copy&format=rss).

## Dnevnik promjena

#### 1.4.2

 * Added Baghwa icon before the Settings page title.
 * Added Baghwa icon before the “Baghwa AI Text Assistant” popup title.
 * Updated plugin screenshots for the latest UI.

#### 1.4.1

 * Improved external service disclosure with clearer data flow details.
 * Updated settings registration to use explicit sanitize callback options.
 * Adjusted API key handling to avoid altering secret/token values.
 * Fixed wording typo in pre-fill prompt example.

#### 1.4.0

 * Added universal editor support for wp-admin and front-end visual editors.
 * Added robust handling for contenteditable regions, nested iframes, and shadow
   DOM contexts.
 * Improved publishing metadata and privacy policy integration.

#### 1.3.0

 * Added local provider support: Ollama and LM Studio.
 * Added provider model search and refresh workflow.
 * Added retry and cooldown handling for temporary generation failures.

#### 1.2.0

 * Added multilingual dropdown options and language detection improvements.
 * Added prefill behavior for existing field content.

#### 1.1.0

 * Added provider/model configuration enhancements and retry messaging.

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.4.2**
 *  Zadnje ažuriranje **prije 7 mjeseci**
 *  Aktivnih instalacija **Manje od 10**
 *  WordPress inačica ** 6.0 ili viša **
 *  Testirano do **6.9.11**
 *  PHP inačica ** 7.4 ili viša **
 *  Language
 * [English (US)](https://wordpress.org/plugins/baghwa/)
 * Oznake
 * [AI writing](https://hr.wordpress.org/plugins/tags/ai-writing/)[divi](https://hr.wordpress.org/plugins/tags/divi/)
   [elementor](https://hr.wordpress.org/plugins/tags/elementor/)
 *  [Napredni pogled](https://hr.wordpress.org/plugins/baghwa/advanced/)

## Ocjena

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/baghwa/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/baghwa/reviews/)

## Suradnici

 *   [ sohailansari2009 ](https://profiles.wordpress.org/sohailansari2009/)

## Podrška

Želite nešto reći? Potrebna vam je pomoć?

 [Pregledaj forum za podršku](https://wordpress.org/support/plugin/baghwa/)

## Doniraj

Želite li podržati napredak ovog dodatka?

 [ Donirajte ovom dodatku ](https://paypal.me/ethansohail?locale.x=en_GB&country.x=IN)