> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shanone.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Supabase

> Manage Supabase projects, databases, storage, auth, and edge functions — plus run SQL and PostgREST queries

# Supabase

Shanone's Supabase integration gives your agent 120 tools spanning the Management API (projects, branches, backups, network security) and direct data access (SQL execution, table records, storage, edge functions) — enough to manage a Supabase project's infrastructure and its data from the same agent.

## Getting Started

<Steps>
  <Step title="Connect via OAuth">
    Ask your agent to do something with Supabase (e.g. "list my Supabase projects" or "run this SQL against my database"), or connect proactively from **Integrations** in the Shanone dashboard.
  </Step>

  <Step title="Authorize your Supabase account">
    Approve Supabase's OAuth consent screen for the organization whose projects you want Shanone to manage.
  </Step>

  <Step title="Retry your request">
    Once connected, `shanone_execute_tool` calls for `supabase_*` tools will succeed.
  </Step>
</Steps>

## Available Tools

Shanone provides **120 tools** for Supabase, organized into these categories:

<AccordionGroup>
  <Accordion title="Projects & organizations">
    `supabase_list_projects`, `supabase_get_project`, `supabase_create_project`, `supabase_update_project`, `supabase_delete_project`, `supabase_pause_project`, `supabase_restore_project`, `supabase_list_organizations`, `supabase_get_organization`, `supabase_create_organization`, `supabase_list_organization_members`, `supabase_list_organization_projects`
  </Accordion>

  <Accordion title="Database (SQL, schema & records)">
    `supabase_execute_sql`, `supabase_execute_sql_readonly`, `supabase_get_database_context`, `supabase_get_postgres_config`, `supabase_update_postgres_config`, `supabase_get_pooler_config`, `supabase_update_pooler_config`, `supabase_list_tables_schema`, `supabase_get_table_schemas`, `supabase_list_tables`, `supabase_select`, `supabase_get_record`, `supabase_insert`, `supabase_update`, `supabase_upsert`, `supabase_delete`, `supabase_rpc`
  </Accordion>

  <Accordion title="Migrations & branches">
    `supabase_list_migrations`, `supabase_get_migration`, `supabase_create_migration`, `supabase_update_migration`, `supabase_list_branches`, `supabase_get_branch`, `supabase_create_branch`, `supabase_update_branch_config`, `supabase_delete_branch`, `supabase_reset_branch`, `supabase_push_branch`, `supabase_enable_preview_branching`, `supabase_disable_preview_branching`
  </Accordion>

  <Accordion title="Storage">
    `supabase_list_buckets`, `supabase_list_files`, `supabase_get_public_url`, `supabase_create_bucket`, `supabase_delete_file`, `supabase_delete_bucket`, `supabase_upload_file`, `supabase_download_file`, `supabase_move_file`, `supabase_copy_file`
  </Accordion>

  <Accordion title="Edge functions">
    `supabase_list_functions`, `supabase_get_function`, `supabase_get_function_body`, `supabase_deploy_function`, `supabase_create_function`, `supabase_update_function`, `supabase_delete_function`, `supabase_get_functions_stats`, `supabase_invoke_function`, `supabase_bulk_update_functions`
  </Accordion>

  <Accordion title="Auth configuration & SSO">
    `supabase_get_auth_config`, `supabase_update_auth_config`, `supabase_list_sso_providers`, `supabase_get_sso_provider`, `supabase_create_sso_provider`, `supabase_update_sso_provider`, `supabase_delete_sso_provider`, `supabase_list_third_party_auth`, `supabase_get_third_party_auth`, `supabase_create_third_party_auth`, `supabase_delete_third_party_auth`
  </Accordion>

  <Accordion title="API keys & secrets">
    `supabase_list_api_keys`, `supabase_get_api_key`, `supabase_create_api_key`, `supabase_update_api_key`, `supabase_delete_api_key`, `supabase_list_secrets`, `supabase_create_secrets`, `supabase_delete_secrets`, `supabase_list_signing_keys`, `supabase_create_signing_key`, `supabase_get_pgsodium_config`, `supabase_update_pgsodium_config`
  </Accordion>

  <Accordion title="Backups & upgrades">
    `supabase_list_backups`, `supabase_get_backup_schedule`, `supabase_update_backup_schedule`, `supabase_restore_backup`, `supabase_restore_pitr`, `supabase_get_upgrade_eligibility`, `supabase_get_upgrade_status`, `supabase_upgrade_postgres`, `supabase_setup_read_replica`, `supabase_remove_read_replica`
  </Accordion>

  <Accordion title="Network security">
    `supabase_get_network_bans`, `supabase_remove_network_bans`, `supabase_get_network_restrictions`, `supabase_update_network_restrictions`, `supabase_patch_network_restrictions`, `supabase_get_ssl_enforcement`, `supabase_update_ssl_enforcement`, `supabase_get_custom_hostname`, `supabase_update_custom_hostname`, `supabase_delete_custom_hostname`, `supabase_activate_custom_hostname`, `supabase_reverify_custom_hostname`, `supabase_check_vanity_subdomain`, `supabase_get_vanity_subdomain`, `supabase_activate_vanity_subdomain`, `supabase_delete_vanity_subdomain`
  </Accordion>

  <Accordion title="Monitoring & misc">
    `supabase_get_project_health`, `supabase_get_project_logs`, `supabase_get_available_regions`, `supabase_generate_types`, `supabase_list_sql_snippets`, `supabase_get_sql_snippet`, `supabase_enable_webhooks`, `supabase_get_readonly_mode`, `supabase_disable_readonly_mode`
  </Accordion>
</AccordionGroup>

## Common Use Cases

<CardGroup cols={2}>
  <Card title="Schema exploration" icon="table">
    List table schemas and generate TypeScript types before writing app code
  </Card>

  <Card title="Preview branch workflows" icon="git-branch">
    Create a branch for a feature, run migrations against it, then push it once verified
  </Card>

  <Card title="Data operations" icon="database">
    Run read-only SQL to answer an ad-hoc question, or upsert records via the REST-style tools
  </Card>

  <Card title="Edge function deployment" icon="rocket">
    Deploy a new edge function and invoke it to verify behavior before shipping
  </Card>
</CardGroup>

## Troubleshooting

<AccordionGroup>
  <Accordion title="supabase_execute_sql fails but supabase_execute_sql_readonly works">
    Write-capable SQL execution requires the connected role to have write privileges on the target project — use the readonly variant for analysis-only queries to avoid accidental writes.
  </Accordion>

  <Accordion title="supabase_create_branch or supabase_push_branch fails">
    Branching requires preview branching to be enabled on the project first — call `supabase_enable_preview_branching` before creating branches.
  </Accordion>

  <Accordion title="supabase_restore_backup or supabase_restore_pitr doesn't apply immediately">
    Restores are long-running operations performed asynchronously by Supabase's infrastructure — check `supabase_get_project_health` afterward rather than expecting an instant result.
  </Accordion>

  <Accordion title="supabase_upload_file or supabase_download_file fails on a bucket I can see">
    Storage bucket access depends on the bucket's public/private setting and RLS policies — a bucket being visible via `supabase_list_buckets` doesn't guarantee the connected role can read/write its objects.
  </Accordion>
</AccordionGroup>
