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

# Self-Hosting

### What is Self-Hosting?

Self-hosting is when you take on the responsibility of launching, managing and scaling replication servers using your own server infrastructure. [coherence Cloud](/2.0/hosting/coherence-cloud.md) offers a secure and comprehensive solution for hosting Replication Servers but if you already have server capacity, and the technical capability, you might consider this option.

{% hint style="info" %}
Using the Replication Server for self-hosting requires special licensing, please contact <devrel@coherence.io> for more info.
{% endhint %}

{% hint style="warning" %}
Self-hosting presumes reasonably deep knowledge of how coherence works, specifically around the difference between Rooms and World Mode in the Replication Server and how the client connects to a Replication Server.
{% endhint %}

### Launching the Replication Server

Similar to [local development](/2.0/hosting/self-hosting/rooms-mode.md), self-hosting relies on launching the [Replication Server](/2.0/manual/replication-server.md) application in either [world](/2.0/hosting/self-hosting/world-mode.md) or [rooms](/2.0/manual/replication-server/rooms-and-worlds.md#rooms) mode using command line options:

`replication-server (world|rooms) [options]`

Which options to use and other settings depend on which mode is selected. See [World ](/2.0/manual/replication-server/rooms-and-worlds.md#worlds)and [Rooms ](/2.0/manual/replication-server/rooms-and-worlds.md#rooms)for more info.

The SDK includes binaries of the replication server suitable for 64 bit systems:

* Windows (10/11)
* Darwin (universal)
* Linux (intel and ARM)

These binaries are found in the SDK package **Runtime\~** folder.

### Monitoring

Once the Replication Server is launched, it can be [monitored](/2.0/hosting/self-hosting/monitoring.md) for health and a variety of metrics can be scraped to provide performance information. Also, the Replication Server provides logs to both the **stdout** and **stderr** channels.


---

# 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.coherence.io/2.0/hosting/self-hosting.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.
