Supabase query

From bidewio/better-openclaw · View interactive version

Supabase query is an AI agent skill from the GitHub repository bidewio/better-openclaw. Interact with Supabase for database, auth, and storage

How to use this skill

Skill file

Supabase – Open-Source Firebase Alternative

Supabase provides a PostgreSQL database, authentication, instant APIs,

edge functions, realtime subscriptions, and file storage.

Environment Variables

| Variable | Description |

|---|---|

| {{SUPABASE_URL}} | Project API URL |

| {{SUPABASE_ANON_KEY}} | Anonymous / public API key |

| {{SUPABASE_SERVICE_KEY}} | Service-role key (server-side only) |

Usage Examples

Query a table via REST

curl -s "{{SUPABASE_URL}}/rest/v1/users?select=*" \
  -H "apikey: {{SUPABASE_ANON_KEY}}" \
  -H "Authorization: Bearer {{SUPABASE_ANON_KEY}}"

Insert a row

curl -s -X POST "{{SUPABASE_URL}}/rest/v1/users" \
  -H "apikey: {{SUPABASE_SERVICE_KEY}}" \
  -H "Authorization: Bearer {{SUPABASE_SERVICE_KEY}}" \
  -H "Content-Type: application/json" \
  -d '{"name": "Alice", "email": "alice@example.com"}'

Upload a file to storage

curl -s -X POST "{{SUPABASE_URL}}/storage/v1/object/public/avatars/photo.png" \
  -H "Authorization: Bearer {{SUPABASE_SERVICE_KEY}}" \
  -H "Content-Type: image/png" \
  --data-binary @photo.png

AI Agent Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.