Open Source · Self-Hosted

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.

3
Channels, one archive

Email, WhatsApp and Telegram, stored together in your own PostgreSQL database.

3
Modes, one agent

Dialogue, inbox triage and an evening digest, all run by the same agent.

24+48h
Recap and plan

What happened in the last 24 hours, and what is coming in the next 48.

0
Permissions by default

Everything starts denied. You decide what the agent may read, channel by channel.

Three ways it works

DIALOGUE

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

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.

DIGEST

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

Search your archive

Read-only SQL over messages, attachments, tasks, appointments, notes and invoices. One query at a time, with a row cap.

LIVE

Check your mailboxes

Live, read-only search of your email accounts, with the full message text on request.

WEB

Look things up

Web search when your own data is not enough. It never fetches or browses pages on its own.

NOTE

Update tasks and notes

Changes happen only from your exact words, and each one leaves a receipt.

PROPOSE

Propose, never fire

Calendar events and email drafts wait for your /conferma or /invia. Nothing leaves without you.

FILES

Write to a workspace

Summaries and reports go into a dedicated folder you can browse in the dashboard.

Built with Ileen

REAL
A real system, not a toy

An agent, durable background workers, a PostgreSQL archive, a dashboard and three channel connectors, working together.

ILE
Ileen in the loop

Built with Ileen, the AI software development platform from Hypaz, to show what it can take from an idea to a deployable product.

BOX
Runs where you are

Docker-based and multi-platform, from a Raspberry Pi to a small server. Your archive stays in your own database.

GROW
Built to be extended

New capabilities are typed tools, not hardwired flows. Add a tool, and the agent can use it.

Designed to be trusted

AUTH
The Model Is Never the Authority

Only your own message, sent directly to the bot, counts as an instruction. Emails, forwards and attachments are untrusted data.

CONS
Default-Deny Consent

Text, media and history each have their own consent. Revoking one hides the data immediately, even in an open session.

TOOL
Typed, Audited Tools

Every write uses validated arguments and an idempotent receipt, committed in the same transaction as its effect.

SQL
Read-Only Data Access

Free-form SQL is limited to a single SELECT on the agent views, run in a read-only transaction with a row cap.

KEY
Keys Stay Out of the Agent

The LLM provider key never enters the agent runtime. Every request passes through a local gateway with a budget ledger.

LOCAL
Runs on Your Hardware

Designed for your local network: a dashboard with login, CSRF protection and no external resources.

A control room you can see

OVR

Overview

KPIs, message volume by channel, today's AI budget and connector health at a glance.

RUN

Agent runs

Every run with the tools it used. Prompts and model replies are never stored.

PERM

AI permissions

A consent matrix per channel. Each change asks for confirmation, and revoking takes effect on the next query.

BUD

AI budget

Saturation rings, caps per scope and daily trends, so costs never surprise you.

SET

Settings

One service at a time, with a review before anything is saved.

ARC

Archive and files

Files, invoices and monthly ZIP exports, all in one place.

Open by design

LIC
Free software, with attribution

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.

SELF
Self-hosted

Docker Compose with a guided setup, on Linux, Raspberry Pi and small servers.

CI
Tested on every push

Unit tests, a Docker build and PostgreSQL integration tests run in GitHub Actions.

FORK
Fork it, extend it

A new capability is a typed tool, not a new hardwired flow. The architecture guide lives in AGENTS.md.

DOC
Docs in Italian, for now

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

Hypaz Assistant

Hello! Welcome to Hypaz. How can I help you today?