> For the complete documentation index, see [llms.txt](https://docs.patex.io/tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.patex.io/tech/for-developers/how-to-setup-node.md).

# How to Setup Node

If you're looking to build an app on Patex you'll need access to an Patex node. You have two options - use a hosted node from providers like Alchemy or run your own.

### [#](#hosted-node-providers) Hosted node providers <a href="#hosted-node-providers" id="hosted-node-providers"></a>

You can get a free hosted one from any of these providers to get up and building quickly. Of them, [RPC Provider](https://rpc.patex.io) is our preferred node provider, and is used to power our public endpoint.

However, you might be interested in running your very own Patex node. Here we'll go over the process of running a testnet or mainnet Patex node for yourself.

### [#](#upgrades) Upgrades <a href="#upgrades" id="upgrades"></a>

If you run a node you need to control github node versions to an update feed  to know when to upgrade. Otherwise, your node will eventually stop working.

### [#](#adding-nodes) Running your own node <a href="#adding-nodes" id="adding-nodes"></a>

You can find detailed information about running your own nodes for Testnet in the [Testnet Node Launch](/tech/for-developers/how-to-setup-node/testnet-node-launch.md) section and for Mainnet in the [Mainnet Node Launch](/tech/for-developers/how-to-setup-node/mainnet-node-launch.md) section.


---

# 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.patex.io/tech/for-developers/how-to-setup-node.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.
