P-Secretary
The open source AI secretary that gets things done, under your control
P-Secretary
An agent that reads your inbox, reasons over your communications, and acts only when you say so
Most assistants wait for a question. P-Secretary works: it archives your email, WhatsApp and Telegram in your own database, triages your inbox, answers from your real data and writes your evening digest. When it needs to act on the outside world, it asks you first. Free software, self-hosted, and built with Ileen.
Email, WhatsApp and Telegram, stored together in your own PostgreSQL database.
Dialogue, inbox triage and an evening digest, all run by the same agent.
What happened in the last 24 hours, and what is coming in the next 48.
Everything starts denied. You decide what the agent may read, channel by channel.
Three ways it works
Talk to it
Ask in plain language: "how many invoices did I get in September?" or "close everything except the call with Omar". Slash commands remain as explicit shortcuts.
Triage your inbox
Every incoming message is judged for relevance and summarised. Tasks are created only with an exact quote behind them, and you are interrupted only for real emergencies.
Evening digest
At a time you choose, it writes the recap of the last 24 hours and the plan for the next 48. The server seals the text and its sources before delivery.
The agent can do
Search your archive
Read-only SQL over messages, attachments, tasks, appointments, notes and invoices. One query at a time, with a row cap.
Check your mailboxes
Live, read-only search of your email accounts, with the full message text on request.
Look things up
Web search when your own data is not enough. It never fetches or browses pages on its own.
Update tasks and notes
Changes happen only from your exact words, and each one leaves a receipt.
Propose, never fire
Calendar events and email drafts wait for your /conferma or /invia. Nothing leaves without you.
Write to a workspace
Summaries and reports go into a dedicated folder you can browse in the dashboard.
Built with Ileen
An agent, durable background workers, a PostgreSQL archive, a dashboard and three channel connectors, working together.
Built with Ileen, the AI software development platform from Hypaz, to show what it can take from an idea to a deployable product.
Docker-based and multi-platform, from a Raspberry Pi to a small server. Your archive stays in your own database.
New capabilities are typed tools, not hardwired flows. Add a tool, and the agent can use it.
Designed to be trusted
Only your own message, sent directly to the bot, counts as an instruction. Emails, forwards and attachments are untrusted data.
Text, media and history each have their own consent. Revoking one hides the data immediately, even in an open session.
Every write uses validated arguments and an idempotent receipt, committed in the same transaction as its effect.
Free-form SQL is limited to a single SELECT on the agent views, run in a read-only transaction with a row cap.
The LLM provider key never enters the agent runtime. Every request passes through a local gateway with a budget ledger.
Designed for your local network: a dashboard with login, CSRF protection and no external resources.
A control room you can see
Overview
KPIs, message volume by channel, today's AI budget and connector health at a glance.
Agent runs
Every run with the tools it used. Prompts and model replies are never stored.
AI permissions
A consent matrix per channel. Each change asks for confirmation, and revoking takes effect on the next query.
AI budget
Saturation rings, caps per scope and daily trends, so costs never surprise you.
Settings
One service at a time, with a review before anything is saved.
Archive and files
Files, invoices and monthly ZIP exports, all in one place.
Open by design
Released under AGPL-3.0 with a credit requirement: keep Hypaz credited in any use, including paid services. If you run a modified version as a network service, you publish your changes.
Docker Compose with a guided setup, on Linux, Raspberry Pi and small servers.
Unit tests, a Docker build and PostgreSQL integration tests run in GitHub Actions.
A new capability is a typed tool, not a new hardwired flow. The architecture guide lives in AGENTS.md.
The README and operations guides are in Italian. English documentation is a welcome contribution.
Ready to meet your new secretary?
Read the code, run it on your own hardware, or talk to us about what Ileen can build for you
