ai-module brings an AI assistant inside the application: it decides what the AI may read and keeps the personal data inside. ai-module on GitHub
Configured in this application:
model deepseek-chat
· provider openai (api.deepseek.com) · AI_PROVIDER, AI_MODEL
Only the context and the tools the developers wrote: every tool reads its own window of the data, and the rest of the database does not exist for the AI.
Before calling the AI it masks names, addresses and credentials, with Presidio for the names in free text, and puts the real values back in the answer.
How the filter is set, what the assistant may read and what it knows.
demo_search_articles — Searches the articles of the demo by a word in the title or the body, and/or by the name of the author. Returns the title, the author, the publication date, whether the article is public or a draft, and the link to its page in the demo (not the body). Use it when someone asks what the demo contains, what an author wrote, or whether there is an article about something.demo_overview — Returns the numbers of the demo: how many articles and authors there are, how many articles are public and how many are drafts, the latest public article and the author with the most articles, with the link to the articles table. Use it when someone asks what is in the demo or how big it is.Registered but out of the perimeter (ai.widget.tools): get_recent_errors, get_error_summary
For the visitors (customer mode, or not logged in):
demo_search_articles, demo_overview · AI_WIDGET_GUEST_TOOLS
Widget: enabled, mode customer
No filter: the texts leave for the provider as they are (AI_REDACT).
These documents are added to every question. They are files of the application: to correct what the assistant knows, edit them. 7,572 characters in 1 documents, limit 16,000.
resources/ai/knowledge.md · 7,572Last updated: 2026-09-12. Current release: rapyd-admin v9.7.1.
Rapyd Admin (zofe/rapyd-admin) is an open-source (MIT) admin panel for Laravel: a light alternative to Nova,
Filament and Backpack for teams building SaaS products, and for development with AI agents. It generates plain
Livewire components and Blade views into app/Modules, that the developer edits like any other code: no DSL, no
resource classes. Author: Felice Ostuni (GitHub: zofe). Site and live demo: https://rapyd.dev. Source:
https://github.com/zofe/rapyd-admin. Package: https://packagist.org/packages/zofe/rapyd-admin.
Requirements: PHP 8.2+, Laravel 12 or 13, Livewire 4, Bootstrap 5.3, Alpine.js.
composer create-project laravel/laravel myapp && cd myapp
composer require zofe/rapyd-admin:^9 -W
php artisan rpd:make:setup
php artisan serve
rpd:make:setup prepares .env, the database, the configs, runs the migrations, creates the admin user
(admin@laravel / admin) and a home page. -W is needed on Laravel 13 because Socialite still requires Guzzle 7.
GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRET), users, roles and permissions (Spatie), impersonation.Limit and Authorize traits.Any module can be copied into the app with php artisan rpd:eject Module to change it deeply.
php artisan rpd:make all Article --module=Blog creates app/Modules/Blog with a table, a detail page and a form
for Article, routes, config and a sidebar entry (it asks for the fields and creates the model if missing).
Views use the x-rpd:: components: x-rpd::table (search, sort, pagination, filters), x-rpd::view,
x-rpd::edit (forms with validation), fields such as x-rpd::input, select, checkbox, radio, date,
file, image, rich-text, tags, autocomplete, and navigation components. Documentation:
docs/COMPONENTS.md, docs/MODULES.md, docs/AUTH.md, docs/THEMES.md, docs/AI.md in the repository.
app, admin, frontend, auth) plus
compiled assets, registered by a ServiceProvider and activated with RAPYD_THEME=name in .env. The layout
contract is documented in docs/THEMES.md and verified with php artisan rpd:theme:check. Themes can start from
any Bootstrap 5 template.composer require zofe/theme-tabler, then RAPYD_THEME=tabler.
Source: https://github.com/zofe/theme-tabler.RAPYD_PRIMARY, RAPYD_SIDEBAR_BG, RAPYD_SIDEBAR_TEXT,
RAPYD_TOPBAR_BG, RAPYD_CONTENT_BG in .env (values quoted, e.g. RAPYD_PRIMARY="#6a1c9a") recolour the
whole interface. Brand settings: RAPYD_BRAND, RAPYD_LOGO_SIDEBAR, RAPYD_LOGO_LOGIN, RAPYD_FAVICON,
RAPYD_CUSTOM_CSS.data-bs-theme).npm run dev / npm run build from the
package root for those who customise the SCSS.RapydModuleServiceProvider, bootAppModule('name')): migrations, views, translations, routes and Livewire
components auto-register.rpd:install injects the traits into the User model; a migration realigns roles and
permissions to the user morph alias.php artisan rpd:context prints a JSON (or text) brief of the app: modules, routes, models, config, extension
patterns, to paste at the start of an agent session or to reference from CLAUDE.md / AGENTS.md.zofe/ai-module adds this chat widget, a registry of tools that modules expose to the model, and one service for
Anthropic, OpenAI-compatible APIs and Ollama. In "operator" mode, logged-in users can ask the assistant about the
application's data through the registered tools.ai.widget.knowledge), the
tools (each AiTool decides which columns and how many rows it reads) and the allow-list (ai.widget.tools).
The model never queries the database: it asks for a tool, the tool runs inside the application.AI_REDACT=true, ai-module 1.11+): before a text leaves for the provider, names the
application knows, IP addresses, e-mails, host names, credentials and, with a self-hosted Microsoft Presidio,
the names of people in free text become placeholders such as [PERSON_1]; the answer gets the real values back.
If Presidio does not answer, nothing is sent./ai/develop, admin menu) explains both with two diagrams, shows the model and provider
configured, the filter, the tools and the knowledge, and what the AI costs per day and month.
Diagrams and details: https://github.com/zofe/ai-module/blob/main/docs/DATA-PROTECTION.mdThe home page shows the animated terminal and the screenshots. "Try the live demo" opens the admin panel; "CRUD
demo" opens the Articles module. Demo login: admin@laravel / admin (also shown in the terminal on the home
page). The demo data is reset every hour. Registration is closed on the demo. The demo runs the reference theme;
the Tabler theme can be seen in the theme-tabler repository screenshots.
zofe/shop-module (orders, products, delivery workflow), zofe/payments-module (Stripe, GoCardless, Paddle),
zofe/ai-module: open-source module packages, same structure as the bundled modules.The assistant helps visitors understand the product and the demo. For bugs, feature requests and contributions point to the GitHub issues of https://github.com/zofe/rapyd-admin. For anything not covered here, say that it is not covered rather than inventing details, versions or prices.
This month, by context: widget 0.0018 $
| Day | Requests | Input tokens | Output tokens | Cost |
|---|---|---|---|---|
| 2026-11-06 | 2 | 5,696 | 103 | 0.0018 $ |