> For the complete documentation index, see [llms.txt](https://docs.keeper.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keeper.io/keeperpam/self-managed-keeper/self-managed-keeper-overview/installation/preparing-for-installation.md). Agents can also search and read this documentation through its [MCP server](https://docs.keeper.io/~gitbook/mcp).

# Preparing for Installation

Get your environment, network, and system ready and prepared.

Self-Managed Keeper serves as your organization's self-hosted vault, admin console, and server-side PAM routing services, all accessed over HTTPS from a web browser. Start by choosing the hostname you'd like to use to access it.

You'll need the following:

1. A designated Linux host that meets the [System Requirements](https://docs.keeper.io/keeperpam/self-managed-keeper/self-managed-keeper-overview/installation/system-requirements.md), with a static IP address
2. A fully-qualified domain name (FQDN) for the main hostname, for example `keeper.example.com`
3. A service domain for the service hostnames, for example `example.com`. If you don't choose one, the installer uses the main hostname
4. DNS records pointing that FQDN, and the service hostnames below, to your host's IP address
5. A TLS certificate and key that covers all domains
6. An SMTP mail server

No cert, SMTP, or DNS? For an evaluation host that doesn't already have these, use the demo bootstrap instead of preparing them by hand. It prepares usable DNS, trusted TLS, and SMTP on the host. See the [Demo Setup Guide](https://docs.keeper.io/keeperpam/self-managed-keeper/self-managed-keeper-overview/installation/demo-setup-guide.md).

To prepare for installation:

1. Create or identify an operator account with administrative control of Docker on the host
2. Add internal or external DNS A/AAAA records pointing your chosen hostnames to the host's IP address
3. Get these details from your mail administrator or provider: the SMTP host name and port, the username and password if the server needs them, and a from-address it accepts. Port 465 uses implicit TLS; any other port, such as 587, uses STARTTLS. Only SMTP with a username and password, or none, is supported; OAuth 2.0 and cloud instance-role sending are not
4. Decide the administrator's email address and prepare a strong master password

For a deployment using `keeper.example.com` with the service domain `example.com`, prepare these DNS names:

```
keeper.example.com
connect.example.com
push.services.example.com
files.services.example.com
krelay.example.com
```

They must resolve to the deployment endpoint from both the host and every client. The server certificate must cover the first four names. TCP 443 serves HTTPS and TCP 80 redirects to it. `connect` and `krelay` are used by PAM routing.

The PAM routing tier is enabled by default. The KRelay service needs these ports reachable directly, not through the HTTPS front door: **TCP and UDP 3478**, **TCP and UDP 3479** and **UDP 30020** **through 30029.** Ordinary HTTPS reachability does not prove this connectivity. A separate, customer-deployed KeeperPAM Gateway connects into this routing tier.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.keeper.io/keeperpam/self-managed-keeper/self-managed-keeper-overview/installation/preparing-for-installation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
