ποΈ
A self-hosted AI Chief of Staff backend.
Plug in your own AI. Own your data. Run your ops.
Quick Start Β· What It Does Β· Architecture Β· Dashboards Β· Ecosystem Β· Issues
AI agents are powerful β but they run in sandboxes, lose context between sessions, and have no structured memory of your life. They can write code and answer questions, but they can't track your bills, monitor your inbox, brief you on your day, or manage your projects β not without a backend built for it.
CHIEFOS is that backend.
CHIEFOS gives your AI agent a complete operational backbone: a structured database, real-time dashboards, scheduled alerts, email monitoring, a compounding knowledge base, and a governance layer β all running on your own server, with your own models.
| Capability | Details |
|---|---|
| 10 HQ Dashboards | Briefing, Finance, Property, Schedule, Content, Projects, Comms, Security, Knowledge, Weekly Rhythm |
| 8 Scheduled Alerts | Bills, deposits, maintenance, email digest, todos, weekly preview, project status, monthly summary β all via Telegram |
| 25-Table Schema | Structured data across every life and business domain: properties, projects, tasks, contacts, finance, subscriptions, events |
| Wiki Knowledge Base | Persistent, compounding knowledge your agent maintains over time. Drop files in, agent ingests them. Syncs to Obsidian |
| Outbound Voice | Twilio-powered voice calls for critical alerts when Telegram isn't enough |
| Email Monitoring | Gmail integration β surfaces important emails, filters noise |
| Security Perimeter | Fail2Ban monitoring, login reports, network event tracking |
| Model-Agnostic | Works with any AI that can read files and run shell commands β Claude, GPT, Gemini, local models |
| One-Command Install | bash install.sh handles everything: users, directories, database, dashboards, governance, Nginx, crontab |
# 1. Clone
git clone https://github.com/salwalid/CHIEFOS.git
cd CHIEFOS
# 2. Configure
cp config.env.template config.env
nano config.env # fill in your values
# 3. Install
bash install.sh # 5β10 minutes, fully guidedThe installer walks you through everything: OS user creation, database schema, dashboard deployment, governance layer, Nginx reverse proxy, and crontab scheduling. See docs/SETUP.md for the full walkthrough.
| Requirement | Version |
|---|---|
| OS | Ubuntu 20.04+ / Debian 11+ |
| Python | 3.8+ |
| SQLite | Any |
| Node.js | 18+ |
| sudo | Required (governance runs as a separate OS user) |
| Disk | 500MB minimum |
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β YOU β
β βββ CLI / Chat / API β
β βββ Any AI agent (Claude, GPT, Gemini, local) β
ββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ
β
β reads SOUL.md, TOOLS.md, AGENTS.md
β queries chiefos.db (SQLite, 25 tables)
β runs scripts/ (Python + Bash)
β
ββββββββββββββββββββΌββββββββββββββββββββββββββββββββ
β CHIEFOS CORE β
β βββ scripts/core/ hydrators, task mgmt β
β βββ scripts/alerts/ 8 scheduled alert scripts β
β βββ scripts/utils/ email, security, voice β
β βββ scripts/wiki/ knowledge base tools β
β βββ www/HQ/ 10 live dashboards β
ββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ
β
β every consequential action
β requires authorization
β
ββββββββββββββββββββΌββββββββββββββββββββββββββββββββ
β GOVERNANCE (MaatSpec) β
β βββ Separate OS user (process isolation) β
β βββ MCP server on dedicated port β
β βββ 5-tier risk classification β
β βββ Authorizes before execution β
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
Key design decisions:
- SQLite, not Postgres β zero ops, single-file backup, survives anything. Your entire life in one
.dbfile you canscpanywhere. - Separate governance user β the agent cannot bypass its own guardrails because the guardrails run as a different OS user with different permissions.
- File-based agent interface β
SOUL.mddefines identity,TOOLS.mddefines capabilities,AGENTS.mddefines delegation rules. Any AI that can read markdown can pilot CHIEFOS. - Hydration pattern β Python scripts pull from the database and write JSON files that dashboards consume. No frontend framework. No build step. Just HTML that reads JSON.
Ten dashboards served via Nginx, all hydrated from your local SQLite database:
| Dashboard | Path | Purpose |
|---|---|---|
| Briefing | /HQ/briefing/ |
Daily intelligence brief β your morning scroll |
| Finance | /HQ/finance/ |
Transactions, upcoming bills, subscriptions |
| Property | /HQ/property/ |
Asset status, maintenance schedules, cleaning |
| Schedule | /HQ/schedule/ |
Todos, events, travel with location + notes |
| Content | /HQ/posts/ |
Social posts and content pipeline |
| Projects | /HQ/projects/ |
Active projects, tasks, overdue tracking |
| Comms | /HQ/comms/ |
Contacts directory with star ratings |
| Security | /HQ/security/ |
Network events, Fail2Ban, perimeter logs |
| Weekly | /HQ/weekly_layout/ |
Weekly rhythm visualization |
| Mission Control | /HQ/mission-control/ |
High-level operational overview |
Eight scheduled scripts deliver Telegram notifications at the right time:
| Alert | Trigger | What It Does |
|---|---|---|
todo_alert.py |
Morning | Today's tasks + overdue + horizon (configurable lookahead) |
lead_up_checks.py |
Morning | Targeted pings for approaching high-priority deadlines |
bill_reminder.py |
Daily | Upcoming bills within reminder window |
deposit_reminder.py |
Daily | Expected incoming deposits |
maintenance_tracker.py |
Daily | Property maintenance due dates |
morning_email_review.py |
Morning | Gmail digest β important emails surfaced |
weekly_preview.py |
Sunday | Week-ahead briefing |
monthly_summary.py |
1st of month | Month-in-review across all domains |
All alert thresholds are tunable via config.env β horizon days, overdue caps, lead-up timing, priority filters.
A persistent, compounding knowledge base your agent maintains over time β not a vector database that forgets context, but structured markdown that accumulates and cross-references.
$CHIEFOS_HOME/
βββ wiki/ β agent-maintained pages (cross-linked markdown)
βββ raw/ β drop source files here for ingestion
How it works:
- Drop any file into
raw/β articles, reports, transcripts, notes - Tell your agent: "Ingest raw/filename.md into the wiki"
- Agent reads it, writes wiki pages, updates cross-links and the index
- Knowledge compounds β every ingest makes the whole wiki richer
Obsidian integration: Sync your wiki/ folder to any cloud storage via rclone, then open it as an Obsidian vault. Full graph view of how all your knowledge connects.
# Wiki tools
bash scripts/wiki/search_wiki.sh <query> # search all pages
bash scripts/wiki/lint_wiki.sh # audit health
bash scripts/wiki/sync_wiki.sh # manual sync to cloud
bash scripts/wiki/ingest_prep.sh <filename> # preview a source before ingestingAll configuration lives in config.env (copy from config.env.template):
# Core
BASE_DIR=/home/youruser/chiefos # where CHIEFOS lives
COS_USER=youruser # OS user running it
BASE_URL=yourdomain.com # your domain or IP
TZ=America/New_York # your timezone
# Alerts (Telegram)
TELEGRAM_TOKEN=your_bot_token # @BotFather β /newbot
TELEGRAM_CHAT_ID=your_chat_id # @userinfobot β your ID
# Governance
ANGEL_PORT=39571 # governance MCP server port
ANGEL_MODEL=google # google | anthropic | openai
# Optional
GMAIL_USER=your@gmail.com # email monitoring
RCLONE_REMOTE=gdrive # wiki cloud sync
TWILIO_ACCOUNT_SID=... # voice call alertsSee docs/CONFIGURATION.md for every variable and what it controls.
CHIEFOS is the backbone. These projects extend it:
|
βοΈ Entrovergence
A multi-model deliberation council. Four AI panelists debate and peer-review before a single answer leaves the chamber. Plugs into CHIEFOS as a skill. Entropy meets convergence.
|
πͺΆ MaatSpec
The governance framework. 5 risk tiers, 4 enforcement layers. Powers CHIEFOS's authorization system. Named after Ma'at β the Egyptian goddess of truth and cosmic order. Autonomy without anarchy.
|
CHIEFOS exists because of a few strong opinions:
-
Your AI should know your life β not just answer generic questions, but understand your projects, finances, schedule, contacts, and priorities in a structured way that compounds over time.
-
Self-hosting is not optional β if your AI assistant knows everything about you, that data should live on hardware you control. Period.
-
Governance is structural, not behavioral β telling an AI "don't do bad things" is not governance. Running the guardrails as a separate process with separate permissions is.
-
Model-agnostic by design β the best model today won't be the best model tomorrow. CHIEFOS doesn't care which brain it's connected to. Swap providers with a config change.
-
Files over APIs β
SOUL.mdis more portable than a proprietary agent config. Any AI that reads markdown can pilot CHIEFOS. That's the point.
MIT β see LICENSE
Built by a human who ships. phatfaro.com