> For the complete documentation index, see [llms.txt](https://rpfs.gitbook.io/rpfs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rpfs.gitbook.io/rpfs/gateways.md).

# Gateways

Gateways influence and define how your files are accessed and can enforce rules.&#x20;

By default you get one Gateway that has a long generated name. You can edit its name or use it as it is. One aspect to keep in mind for Gateways is that they are unique across the RPFS application. They work like subdomains. If you name a gateway for example "Library", you will be the only one to use this name for a gateway on RPFS. So choose wisely :)\
\
To start click "Add Gateway" button on the Gateways page.&#x20;

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

Give the Gateway a unique name and click Create. If you want your gateway name to show up in the link for your files and to replace the default slug, check the box for "Sync with gateway name".

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

Once created you'll see it added to the list of Gateways.

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


---

# 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://rpfs.gitbook.io/rpfs/gateways.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.
