Supabase in Codex.
Codex can work on your Supabase databases, but any change to a live project needs your OK. This is for the Codex app or Codex in your Terminal, on your own Mac or Linux computer.
passed Nov 16 · Supabase CLI
fieldtrip add supabaseNew to fieldtrip? Install it first: curl -fsSL fieldtrip.sh/install | sh
Codex can
- Read your data and your database setup.
- Write database changes and test them locally.
- Look things up in your live database.
Asks you first
- Change your live database.
- Deploy or delete functions.
- Change secrets or delete a project.
Try asking Codex
Paste one into Codex. Underneath: what it runs.
How many rows are in my polls table?
supabase db query --remote --read-only "select count(*) from polls"Write a migration that adds a votes table.
supabase migration new add_votes_tableMake TypeScript types from my live database.
supabase gen types --remote --lang typescriptAny security warnings on my database?
supabase db advisors --remoteDeploy the send-email function.
supabase functions deploy send-email --yesasks you first
How it’s set up for Codex
| the key | In Codex's own settings, ~/.codex/config.toml, in the part that only applies to the commands Codex runs. Your Terminal can't see it. |
|---|---|
| the note | Saved as a skill in ~/.agents/skills/supabase, where Codex looks. Codex reads it when you ask about Supabase. It says how to use Supabase, and what to check with you about first. |
| after setup | Quit Codex and start it again. It reads its settings when it starts. |
| two checks | Codex has its own settings for when it asks before running a command. fieldtrip's note adds a check that doesn't depend on them. |
| check it | Ask Codex on your computer to run fieldtrip doctor. It should say “Running in Codex” and show a ✓ beside Supabase. |
Do this once.
- Make an access key on Supabase, for only the projects you want your AI to access. fieldtrip will give you the link and tell you which boxes to tick, and why.
- Paste your key when fieldtrip asks you to.
Your key goes into your Terminal when fieldtrip asks. It never goes through Codex’s chat.
Checked every night
Yes. Supabase 3.2.0 passed all five checks, Mon, Nov 16 · 11:09 AM CST.
Each square is one night.
Other AIs
← All of Supabase: every AI, every version · Supabase in Claude Code → · Supabase in Cursor → · What’s a CLI?