The fortress for AI-built apps
Thành trì cho ứng dụng thời AI
Developers and AI coding agents build and run full apps on Coloa: React frontend, TypeScript functions, Postgres and file storage. Security, audit and cost limits are enforced by the platform, not left to the code. In production at Olli Technology.

Real output. An agent's code tries to send the payment key to evil.example: the pre-deploy check flags it, the gateway blocks it, the audit log records it, and the agent can't allow the host itself.
Explore public applications
Apps built and run on this Coloa server, open for everyone to use.
AI agents write code fast. Nothing stops them doing damage.
Firewalls, repo permissions, database rules and secret managers each cover one slice. None of them can tell the agent writing the code from the app running it from the human approving it. Coloa can, everywhere: network, secrets, data, deploys and spend.
The same six attacks, written the way an agent would write them, against a typical self-built stack and against Coloa:
| Attack | Typical stack | Coloa |
|---|---|---|
| Send the payment key to an attacker | ✗ real key stolen | ✓ blocked; still refused even if a human allows the host by mistake |
| Forget the "only my rows" filter | ✗ Bob sees Alice's orders | ✓ Bob sees only his own (Postgres row-level security) |
| Agent gives itself more access | ✗ reads the production database | ✓ refused; in the sandbox it sees no secrets or database login |
| Drop a production column | ✗ column and data gone | ✓ production untouched; needs human approval and a snapshot |
| Card numbers in debug logs | ✗ logged in clear | ✓ masked as [sensitive] |
| An LLM call in a loop | ✗ 20/20 calls paid, no cap | ✓ stopped at the monthly cap after 3 |
Every cell comes from a real run of tests/attacks.sh. Typical stack: secrets in environment variables, the app connecting to Postgres as the owner, plain log files, open egress, no spending cap.
Safe by default, fast, and cheap to run
The rules live in the platform, so they hold no matter who or what writes the code.
Secrets never reach code
Functions and agents only hold a placeholder like __COLOA_SECRET_PAY_KEY__. The gateway swaps in the real value only on the way to that secret's own hosts.
The database enforces access
Rules in schema.coloa compile to Postgres row-level security. Deny by default; sensitive fields never reach the browser and are masked in logs.
Agents can only ask
Coding agents (Claude Code, Cursor, Codex, Gemini) run in a sandbox with their own identity. They deploy previews and request promotion; only people promote, approve, add hosts or set secrets.
Tamper-evident audit
Every agent, function and human action is recorded before traffic flows, in a hash chain anchored outside the project, with a compliance report built in.
Spend stops at the cap
Functions, queries, egress, LLM tokens and storage are metered per request and per team, forecast, and cut off at a hard monthly cap. Cost is a feature, not an afterthought.
Fast, in any language
Functions in TypeScript, Go or Python run in WebAssembly, a fresh sandbox per request (well under a millisecond for TypeScript and Go, about 20 ms for a whole CPython). Long-running Go and Python services run in Docker, non-root and resource-limited, with signed user identity.
Changes you can undo
Every change lands in a preview with its own database. Production changes show the exact migration plan, take a snapshot first, roll back in one command, and update services without downtime.
Built for teams
One server hosts many apps. Roles (admin, auditor, owner, developer, viewer), single sign-on with a second factor, organisation-wide policy, and one console across every app.
Your infrastructure, your data
One Rust binary on a laptop, a VM or Kubernetes, in your cloud or air-gapped. Standard Postgres and S3-compatible storage, encrypted backups, and coloa export to leave any time.
One process between your code and everything it touches
Code, agents and people never reach the network, the secrets or the data directly. Every path goes through Coloa, which checks it, records it and meters it.
Who acts
Coloa: one Rust binary
Agents talk to it through MCP tools and a session token; people through the CLI and the console.
What it protects
Infrastructure to run your applications
Coloa needs three things: the coloa binary (or its container image), a Postgres database and S3-compatible storage. App code holds no state, so the same app runs unchanged on any of these.
Your laptop
coloa dev: one app with its own Postgres in Docker and hot reload.
One server
coloa server on one VM hosts every team's apps, isolated from each other, with roles, backups and one console.
Kubernetes
A Helm chart runs two or more identical replicas sharing one Postgres and S3. All serve apps; if one dies another takes over. No extra control plane.
- Use what you already run. A managed Postgres shared with other projects works: Coloa needs a login with
CREATEDBandCREATEROLE, not a superuser, and connects over verified TLS. - Idle apps cost almost nothing. Functions aren't long-lived processes: each request gets a fresh WebAssembly instance in about 0.6 ms, so a hundred quiet apps use no CPU.
- Each app is isolated: its own database login, gateway, secrets, audit log and budget.
- Upgrades without downtime: replicas are replaced one at a time.
- Encrypted backups to S3 every day, and a restore that verifies every audit chain.
- Management stays private if you want: people sign in with a token and an authenticator app, and the console can be kept off the public address entirely.
Running Olli Technology's applications today
Coloa is in production at Olli Technology: our own applications run on it, on Kubernetes with managed Postgres and S3. If you'd like to try it for your team, email son@olli-ai.com and we'll set you up.
One place for the security officer and the team lead
What each app may do, what agents tried, what is waiting for approval, and where the money goes.

pr-7. Production changes only when a person approves the exact plan.


Run it on your laptop, or for your whole team on a VM
The same binary does both. Start on a laptop to build an app; move to a VM when a team and real users need it. For Kubernetes, use the Helm chart (see Running Coloa).
Install Coloa
One binary for macOS, Linux and Windows, checked against its SHA-256. Downloads need the Coloa token your admin gave you (no token yet? son@olli-ai.com). You also need Docker, for the local Postgres, and Node.js if the app has a React frontend.
# macOS and Linux
export COLOA_TOKEN=<your token>
curl -fsSL https://coloa.iviet.com/download/install.sh | sh
# Windows (PowerShell)
$env:COLOA_TOKEN = "<your token>"
irm https://coloa.iviet.com/download/install.ps1 | iex
Create an app and run it
Templates: react-ts (React + Vite frontend), go (functions in Go), python (functions in Python), shop (plain HTML), blank.
coloa init myshop --template react-ts && cd myshop
coloa dev # Postgres, functions with hot reload, gateway, console
# app http://127.0.0.1:4000
# console http://127.0.0.1:4001/#token=… (printed once)
Write the app
Describe data and who may touch it in schema.coloa:
table orders {
owner user @owner
item text
total money @default(0)
card_last4 text @sensitive @optional // never sent to the browser, masked in logs
allow read, update: owner == auth.user
allow read: auth.role == "staff"
allow create: auth.user != null
}
Write functions in plain TypeScript (functions/orders.ts serves /api/orders):
export default async function (req: ColoaRequest) {
return await db.from("orders").select("id, item, total")
.order("created_at", { ascending: false });
}
Or in Go (functions/orders.go; Go 1.24+ on your machine builds it, the server only runs it):
//go:build ignore
package main
import "github.com/olli-ai/coloa/sdk/go/coloa"
func main() { coloa.Run(handle) }
func handle(req *coloa.Request, ctx *coloa.Context) (any, error) {
return coloa.From("orders").Select("id, item, total").Order("created_at", true).All()
}
Or in Python (functions/orders.py; the standard library and your own modules, no pip packages):
from coloa import db
def get(req, ctx):
return db.table("orders").select("id, item, total").order("created_at", desc=True).all()
Work on the React frontend with hot reload; build it to serve and ship it:
cd web && npm install && npm run dev # calls coloa dev for /api and /auth
npm run build # web/dist is served and shipped
Allow what it may reach
Outbound traffic is denied by default. Secret values are read from a prompt, never from the command line.
coloa egress allow api.stripe.com
coloa secret set STRIPE_KEY --host api.stripe.com
Check, preview, promote
coloa check # every policy, schema and cost check a deploy runs
coloa deploy --preview pr-1 # → http://pr-1.myshop.localhost:4000
coloa promote pr-1 # people only: shows the plan, snapshots first
coloa rollback <snapshot> # if needed
Optional: let an AI agent code it
The agent gets its own identity and MCP tools. It can deploy previews and ask for promotion; it can't change policy or ship to production.
coloa agent connect claude-code # writes .mcp.json and AGENTS.md
coloa run --sandbox docker --as agent:claude-code --image <agent image> -- claude
Prepare the VM
A Linux VM (for example Ubuntu 24.04) with Docker Engine and the Postgres client tools. Point a domain and its wildcard at the VM, e.g. apps.example.vn and *.apps.example.vn: each app answers at <app>.apps.example.vn, each preview at <preview>.<app>.apps.example.vn.
sudo apt install -y docker.io postgresql-client
sudo useradd -m -G docker coloa
export COLOA_TOKEN=<your token>
curl -fsSL https://coloa.iviet.com/download/install.sh | sudo -E COLOA_INSTALL_DIR=/usr/local/bin sh
apps.example.vn and *.apps.example.vn (for example Let's Encrypt with a DNS challenge). Coloa serves it directly with --tls-cert and --tls-key.Choose where data lives
By default Coloa runs its own Postgres in Docker on the VM. To use a managed database or another server, set COLOA_DATABASE_URL. Uploaded files go to a local folder, or to any S3-compatible storage with COLOA_STORAGE.
# /etc/coloa/env (mode 600, owned by coloa)
COLOA_LICENSE_FILE=/etc/coloa/coloa.license # from Olli Technology; the server won't start without it
# every line below is optional
COLOA_DATABASE_URL=postgres://admin:…@db.internal:5432/postgres
COLOA_STORAGE=s3://coloa-files/prod?endpoint=https://s3.example.vn
COLOA_BACKUP_TO=s3://coloa-backups/prod?endpoint=https://s3.example.vn
AWS_ACCESS_KEY_ID=…
AWS_SECRET_ACCESS_KEY=…
Run it as a service
One process hosts every app, with daily encrypted backups.
# /etc/systemd/system/coloa.service
[Unit]
Description=Coloa server
After=docker.service
Requires=docker.service
[Service]
User=coloa
EnvironmentFile=/etc/coloa/env
ExecStart=/usr/local/bin/coloa server --home /var/lib/coloa \
--listen 0.0.0.0:443 --domain apps.example.vn \
--tls-cert /etc/coloa/fullchain.pem --tls-key /etc/coloa/privkey.pem \
--backup-every 24 --backup-keep 14
AmbientCapabilities=CAP_NET_BIND_SERVICE
Restart=always
[Install]
WantedBy=multi-user.target
sudo mkdir -p /var/lib/coloa && sudo chown coloa /var/lib/coloa
sudo systemctl enable --now coloa
--listen 127.0.0.1:7700 --public-https and set COLOA_TRUSTED_PROXIES=127.0.0.1, so sign-in limits see real client addresses.Make the first admin, then add people
On the VM, once. Admins then manage everyone else from their own laptop or the console's Members page, where they also invite people to add an authenticator app.
sudo -u coloa coloa server --home /var/lib/coloa token an # prints the token once
sudo -u coloa coloa server --home /var/lib/coloa grant an admin
# from the admin's laptop
export COLOA_SERVER=https://apps.example.vn COLOA_TOKEN=<an's token>
coloa remote token minh # a developer
coloa remote grant minh owner --app myshop # may create and manage myshop
coloa remote token claude --agent --app myshop # an AI agent, limited to one app
| Role | Scope | May |
|---|---|---|
| admin | server | everything on every app; grant roles, issue and revoke tokens |
| auditor | server | read every app's audit, logs and cost; change nothing |
| owner | one app | promote, approve, roll back, secrets, egress, push |
| developer | one app | push previews, request promotion, read |
| viewer | one app | read |
Developers ship from their laptops
export COLOA_SERVER=https://apps.example.vn COLOA_TOKEN=<minh's token>
cd myshop
(cd web && npm run build) # if the app has a React frontend
coloa push --preview pr-1 # → https://pr-1.myshop.apps.example.vn
coloa remote request-promotion pr-1 # developers and agents ask…
coloa remote --app myshop approve apr_0001 # …an owner approves (or in the console)
coloa remote promote pr-1 # owners may promote directly
Production is at https://myshop.apps.example.vn. The console for every app is at https://apps.example.vn/: sign in with your token (and an authenticator code once two-factor sign-in is on).
Keep the backup key safe, and know how to restore
The first backup creates /var/lib/coloa/backup.key. Copy it off the VM (a password manager): without it no backup can be restored. To rebuild on a new VM:
coloa remote backup # on demand, admins
# on the new VM, into an empty home
sudo -u coloa env COLOA_BACKUP_KEY=<key> coloa server --home /var/lib/coloa \
restore "s3://coloa-backups/prod/coloa-backup-<time>.cbk?endpoint=https://s3.example.vn"
Restore recreates every app's databases, files, roles and tokens, re-seals secrets for the new machine and verifies every audit chain. It never overwrites an existing database unless you ask.