Build apps with AI. Keep every one under control.
Citadel is the control plane for AI-built apps: every app runs on one proven stack, a hardened PocketBase, in its own sealed environment with an audit trail, on infrastructure you control.
The problem
Teams build their own tools with AI. IT needs a safe place to run them.
People across the company now build working apps in an evening with an AI assistant. Those apps handle real data, and they end up on laptops and personal cloud accounts, because IT has nowhere safe to host them and no time to review each one.
Citadel gives those apps a home on infrastructure IT controls, with rules IT sets once instead of app by app.
The starting assumption
Every app's code is treated as hostile.
App hooks can run shell commands, raw SQL and outbound HTTP. Citadel never relies on an app behaving well. It treats every instance as already compromised and secures the boundary around it.
Network
Each app sits on its own internal network. Traffic leaves only through a filtering proxy, and only when a grant allows it.
Filesystem and kernel
Read-only containers, every capability dropped, a gVisor sandbox between the app and the host kernel.
Accountability
Every grant is decided by policy or by a named approver, every grant expires, and every decision lands in a hash-chained record.
One runtime
One known stack, deeper guarantees.
Citadel hosts PocketBase applications: a single Go binary with an embedded SQLite database, authentication, file storage and an admin console. Because every app runs on the same stack, Citadel can promise things a generic host cannot.
Hardened images by digest
Built from scratch against a committed upstream checksum, reproducibly, and always scheduled by digest, never by tag.
Packages, not binaries
Apps ship hooks, migrations and static files. The binary, the image and its flags always belong to the platform.
Upgrades rehearsed first
Each app upgrades on its own schedule, after a rehearsal on a throwaway copy with no outbound access.
Rollback with the data
A snapshot comes before every deploy, so a failed release restores code and data together.
How it works
What happens when you deploy.
Packages are validated, stored by content address and deployed through a ladder of checks. Any step that fails rolls back code and data.
Deploy from the command line, from the portal, or from your CI pipeline with a personal token created in the portal.
$ citadel release upload inventory --deploy validate ok snapshot ok swap ok health-check ok smoke replay failed rollback code + data restored
Isolation
Each app in its own sealed room.
- One container, one network. Every app gets its own container on its own internal bridge network.
- No published ports. The only way in is the edge proxy, which joins each app's network.
- Locked down by default. Read-only filesystem, all capabilities dropped, gVisor underneath.
- One accountable owner. Every app has exactly one owner, with ownership kept as a history.
Egress
Nothing leaves unless it is granted.
- Closed by default. Outbound traffic goes through a proxy that filters by CONNECT target and TLS SNI.
- Grants, not declarations. An app's manifest asks for access. Only an approved grant opens it.
- Tiers that fit the risk. A precise host is granted automatically and recorded; wildcards, and hosts refused before, need a named approver.
- Every grant expires. The allowlist is rebuilt from active grants, so a revocation applies within one reconcile cycle.
- Email through an API. Apps send email through an approved email API. Direct SMTP is blocked, so no app can turn the platform into a spam relay.
- Cloud metadata and private network addresses stay out of reach, whatever the grants say.
$ citadel grant list inventory egress api.example.com tier auto (precise host) expires in 365 days active egress *.example.com tier named approver by person:it-lead expires in 365 days active
Audit
A record you can check.
- Append-only and hash-chained, with signed chain heads.
- Attested from the host. What the firewall actually enforces is compared with what was approved, not read back from the database that generated it.
- Divergence is flagged and frozen, never silently repaired.
- Break-glass is visible. When an operator needs an app's data urgently, access is time-limited, needs a reason, notifies the owner and is reviewed afterwards by another operator.
- Outlives the data. The record of who authorised access survives the app itself.
$ citadel audit verify chain intact head signed $ citadel attest generate inventory host vs grants match $ citadel fleet drift 0 quarantined 0
Sign-in
One login for the portal and your apps.
Your Citadel portal login opens the admin console of every app you own, with no separate password to manage.
Inside each app, PocketBase's own sign-in is available: email and password, or OAuth2 providers such as Google and Microsoft once the app holds an egress grant to the provider. Company single sign-on for the portal itself is on the roadmap.
Building apps
From idea to running app, with your AI assistant.
The Citadel skills for Claude Code and Codex guide the whole path, so the app arrives already shaped for the platform.
Interview
Plain-language questions turn an idea into an app specification, with a summary of what the user will see.
Build
The package comes with migrations, hooks, pages and tests, and runs locally before anything is published.
Publish
Upload, deploy and see the state of every connection the app has asked for.
Edit
Change an existing app, update its specification and publish a new release.
Operations
Built to be run, not just deployed.
- Subdomain routing with per-app rate limits and request size caps.
- Instant quarantine for any app, and logs kept per app.
- A reconciler that flags instead of fighting. It converges containers, networks and firewall rules every few seconds, and raises drift where converging would be dangerous.
- Resource limits per app: CPU, memory, disk and disk IO, with an alert when an app's data outgrows its memory.
- A fleet view that leads with drift, denials and quarantines.
- Fits the monitoring you already run. Standard exporters, a small script and a step-by-step guide bring host, per-app and platform signals into Prometheus and Grafana, with starter alert rules for drift and the audit chain.
- Live snapshots with retention per kind of backup.
Roadmap
Coming next.
- Company single sign-onOne company identity for the portal, the admin console of your apps and, when the owner enables it, the app's own users.
- Email relayA platform relay with sending limits, opened by an approved grant, so an app's verification, password-reset and one-time-code emails work without opening SMTP.
- AlertingPaging for security drift, full disks and stale audit anchors, on top of today's fleet view.
- Production installAn unattended single-VM install: services in boot order, persistent firewall rules, wildcard TLS, offsite backups with a tested restore.
- Offsite audit anchorsChain anchors replicated under credentials the host does not hold.
- Scale to zeroIdle apps stop with a backup and wake on the next request.
- Custom domainsApps on your own domains, with certificates issued on demand behind an approval.
- Multiple hostsApps spread across more than one machine.
Get started
Try Citadel.
This is an early release. Try it on your Mac, or on a Linux server you control.
- Add the Citadel skills to Claude Code or Codex.
- Type
/citadeland say you don't have a Citadel yet: it checks your Mac, asks before installing anything, and leaves Citadel running in a Linux VM with a demo app. For a Linux server, follow the install guide. - Describe an app, build it, publish it, and watch the deploy ladder run.
Citadel platform: FSL-1.1. Citadel skills: Apache 2.0. Managed hosting: coming soon.