Borrowing it
Nothing to install: this file belongs to ankaboot-source/supabase-selfhost-ops. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ankaboot-source/supabase-selfhost-ops/main/AGENTS.mdgit clone --depth 1 https://github.com/ankaboot-source/supabase-selfhost-opsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/ankaboot-source/supabase-selfhost-ops/agents-md)<a href="https://agentmods.dev/instructions/ankaboot-source/supabase-selfhost-ops/agents-md"><img src="https://agentmods.dev/badge/instructions/ankaboot-source/supabase-selfhost-ops/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/ankaboot-source/supabase-selfhost-ops/agents-md"><img src="https://agentmods.dev/badge/instructions/ankaboot-source/supabase-selfhost-ops/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.13193 | $0.13193 |
| Opus 5.5 | $0.05277 | $0.05277 |
| Sonnet 5.5 | $0.02639 | $0.02639 |
| Haiku 4.5 | $0.01319 | $0.01319 |
Grade D, and why
supabase-selfhost-ops AGENTS.md scanned grade D with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Sends data to an external URLmediumData exfiltration
A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.
- **Self-hosted storage-api's S3 protocol can reject EVERY valid SigV4 signature** (stub/standalone tenant: `TENANT_ID=stub`, `REGION=stub`, no `storage.tenants` table; returns 403 `SignatureDoesNotMatch` for correct cre Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- **A stale repo must be RESET via local-store recreation, never wiped under the running container.** When `stanza-create` fails with `028`/`103` after a data reset (fresh PGDATA on a repo bound to the old system-id), th Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
3. Verify: `curl https://<domain>/functions/v1/<name>` (gateway routes `/functions/v1/*` to the edge-runtime). How it starts
The opening of the file, as written. The whole thing — 342 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ansible-Supabase — AI Context
Purpose
Deterministic, configuration-based Ansible deployer for self-hosted Supabase with optional components (Caddy SSO, monitoring, fail2ban, backups, UFW, LUKS).
Workflow
config.yml ──> setup.sh ──> env/supabase.yml ──> ansible-playbook
│
playbook-supabase.yml
(regenerated from component toggles)
The user edits only config.yml (copy of config.example.yml). setup.sh validates, renders env vars into env/supabase.yml, regenerates playbook-supabase.yml, then runs install.sh (which bootstraps Ansible and executes the playbook).
Key Files
| File | Purpose |
|---|---|
config.example.yml |
User-facing template — add new config fields here |
config.yml |
Actual config (gitignored) — single source of truth |
setup.sh |
Orchestrator: validates, renders secrets, writes env vars |
env/supabase.yml |
Ansible vars file — rendered by setup.sh, consumed by playbook |
playbook-supabase.yml |
Generated playbook — roles enabled/disabled by component toggles |
install.sh |
Ansible runner (pip install + ansible-playbook) |
Roles (roles/)
Each role follows Ansible convention:
tasks/main.yml— idempotent deployment logicdefaults/main.yml— default variablestemplates/— Jinja2 templates
Role: docker
Installs Docker Engine (official APT repo), docker-compose-plugin, and adds deploy_user to the docker group. Always runs first as a prerequisite.
Role: supabase
Clones the official Supabase repo, renders the Docker Compose stack, configures the API gateway (Envoy by default, api-gw/supabase-envoy; a Kong fallback override docker-compose.kong.yml is also rendered but not active by default), sets up SSL certs (from Caddy or self-signed), and starts all Supabase services (Postgres, GoTrue, PostgREST, Realtime, Storage, Edge Functions, Studio, etc.). Templates: docker-compose-supabase.yml.j2, docker-compose-kong.yml.j2 (Kong fallback override), docker-compose-logs.yml.j2 (Logflare + Vector log-drain override, see below), vector-logs.yml.j2 (<supabase_path>/volumes/logs/vector.yml — Vector pipeline that routes container logs to Logflare, container names templated with the deploy_env suffix), kong-supabase.yml.j2 (Kong declarative config, used by the fallback), the four Envoy configs (envoy.yaml.j2, cds.yaml.j2, lds.template.yaml.j2, docker-entrypoint.sh.j2), env-supabase.j2, start-supabase.sh.j2.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 17d ago Changed · +123 tokens per session 33d23ee4822b
- 1mo ago Changed · +14 lines · +1,060 tokens per session scan C → D 7da5ff170172
- 1mo ago Changed · +224 tokens per session 767a7fe90e1b
- 2mo ago First seen · 328 lines · 11,786 tokens per session scan C 6e2863d821de
supabase-selfhost-ops AGENTS.md is an instructions file published in the GitHub repository ankaboot-source/supabase-selfhost-ops (24 stars, last pushed 4d ago), licensed MIT. It adds 13,193 tokens to every session, about $0.0528 per session on Opus 5.5. A static security scan graded it D with 3 findings (sends data to an external url, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
supabase-selfhost-ops AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| supabase-selfhost-ops AGENTS.mdankaboot-source/supabase-selfhost-ops | Instructions file | 24 | 4d ago | MIT | D | 13,193 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |