supabase-selfhost-ops: Instructions file for Codex

AGENTS.md

supabase-selfhost-ops AGENTS.md is an instructions file for Codex, OpenCode from ankaboot-source/supabase-selfhost-ops. It costs 13,193 tokens per session, scanned D, original, MIT.

Project instructions for an Ansible-based deployment system for running Supabase on your own server. Supabase is a backend platform that provides services such as databases and authentication.

In plain words
What is it for?
Use them when configuring, reviewing, or extending self-hosted Supabase deployments managed with Ansible, including Caddy, monitoring, backups, UFW, or disk encryption.
Why use it?
They explain which configuration file users should edit and how scripts generate the deployment files. They also document optional security, monitoring, backup, and access-control components.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is ankaboot-source/supabase-selfhost-ops's own configuration. It tells Codex and OpenCode how to work on supabase-selfhost-ops itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything supabase-selfhost-ops configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/deno/functions.

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/ankaboot-source/supabase-selfhost-ops/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/ankaboot-source/supabase-selfhost-ops

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for supabase-selfhost-ops AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ankaboot-source/supabase-selfhost-ops/agents-md/github.svg)](https://agentmods.dev/instructions/ankaboot-source/supabase-selfhost-ops/agents-md)
Your own site
<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.

agentmods 80×15 button for supabase-selfhost-ops AGENTS.md

Your own site · 80×15
<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>
Per session 13,193 This file is loaded in full into every session.
When invoked 13,193 The same file — it is already loaded in full.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 17d ago against content hash 33d23ee4822b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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).
AGENTS.md · 342 lines

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 logic
  • defaults/main.yml — default variables
  • templates/ — 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.

Read the full file on GitHub · 342 lines

Changes

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.

  1. 17d ago Changed · +123 tokens per session 33d23ee4822b
  2. 1mo ago Changed · +14 lines · +1,060 tokens per session scan C → D 7da5ff170172
  3. 1mo ago Changed · +224 tokens per session 767a7fe90e1b
  4. 2mo ago First seen · 328 lines · 11,786 tokens per session scan C 6e2863d821de

Subscribe to this mod's changes

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.

Related

supabase-selfhost-ops AGENTS.md compared with instructions from other repositories

supabase-selfhost-ops AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
supabase-selfhost-ops AGENTS.mdankaboot-source/supabase-selfhost-opsInstructions file244d agoMITD13,193Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode