> For the complete documentation index, see [llms.txt](https://docs.stacksync.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres/supabase.md).

# Supabase

#### 1. Open your Supabase project

#### 2. Click "Connect"

<figure><img src="/files/vXld4mKdyb4XSiOB4oeO" alt=""><figcaption><p>Click "Connect"</p></figcaption></figure>

#### 3. Copy connection string

Make sure to:

1. use **Transaction Pooler**. Compared to direct connections, a transaction pooler enables higher connection concurrency without exhausting the database. It improves connection reuse, load isolation, and fault tolerance, ensuring stable performance under high throughput.
2. use **IPv4-compatible** connection string. Stacksync does not currently support IPv6. You must use an IPv4-compatible connection string.

<figure><img src="/files/uKltTcBtyGjGJSKg2Bmy" alt=""><figcaption></figcaption></figure>

#### 4. Create the connection on Stacksync

<figure><img src="/files/UBy2If0XdjKdwHOw8uWi" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/WH6kPgpZ14z95cIyQ4gg" alt=""><figcaption></figcaption></figure>

Make sure to fill in all fields, including the password as it may not be copied as part of the connection string.

{% hint style="info" %}
If you face the error `Please use IPv4 compatible supabase connection pooler` go back to Supabase app and make sure to use a connection string which is IPv4 compatible.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres/supabase.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
