> For the complete documentation index, see [llms.txt](https://docs.aethercube.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aethercube.fr/developers/running-a-server/first-start.md). Agents can also search and read this documentation through its [MCP server](https://docs.aethercube.fr/~gitbook/mcp).

# First start

This page gets a local server running in a couple of minutes, so you can see the thing work before you configure it properly. The server needs a configuration file, and without one it stops with `configuration file not found`. Below is the smallest one that starts. For a public server, continue with [Online mode, TLS and the directory](https://docs.aethercube.fr/developers/running-a-server/online-mode-tls-and-directory.md).

## A local test server

Create `config/server.yml`:

```yaml
server:
  name: "My Server"
  online_mode: false      # local identities, no backend
  bind_address: 127.0.0.1 # an offline server may only listen on this machine
tls:
  self_signed: true       # a throw-away certificate, development only
master:
  enabled: false          # offline servers are never listed
permissions:
  operators: [YourName]   # offline names that become operators at start-up
```

* `online_mode: false` accepts a player name instead of a ticket.
* `bind_address: 127.0.0.1` keeps the server on your machine. The default is `0.0.0.0`, and an offline server on a public address refuses to start (see [Online mode, TLS and the directory](https://docs.aethercube.fr/developers/running-a-server/online-mode-tls-and-directory.md#offline-mode-on-a-public-address)).
* `tls.self_signed: true` generates a certificate at every start. It cannot be combined with `online_mode: true`.
* `master.enabled` defaults to `true`, and the server refuses to start with it while `online_mode` is `false`.
* Everything else keeps its default. You can also start from `game-server/config/server.example.yml`, which lists every key. Unknown keys are rejected, so a typo never fails silently.

Start the server:

```sh
bin/aethercube-server --config config/server.yml
```

## What you see

The server logs the material registry, the TLS fingerprint, the plugins and, last, the address it listens on. The lines to look for:

```
TLS certificate SPKI BLAKE3: <64 hex characters> (ephemeral development certificate)
OFFLINE MODE: identities are local and unauthenticated; never expose this server publicly
<server.name> ready on <address> (online_mode=false, max_players=100)
```

The first start also creates `server-data/`, generates the default world with a random seed (unless `world.seed` is set), and places the Hearthstead village at the spawn.

## Connecting

In the client menu enter:

| Field                    | Value                                                           |
| ------------------------ | --------------------------------------------------------------- |
| Server address           | `127.0.0.1:25565`                                               |
| TLS name                 | `localhost`                                                     |
| Server key (SPKI BLAKE3) | The hex string from the `TLS certificate SPKI BLAKE3` log line. |
| Offline name             | 3 to 16 letters, digits or underscores.                         |

A self-signed certificate has no chain of trust, so the client pins its fingerprint instead. That fingerprint changes at every start while `tls.self_signed` is `true`, so you will paste a new one each time. With a real certificate (see [Online mode, TLS and the directory](https://docs.aethercube.fr/developers/running-a-server/online-mode-tls-and-directory.md)) a client can use the system trust store and leave the key empty.

## The console

The server reads commands from standard input. Type a command with or without the leading slash:

```
list
tps
permissions op YourName
stop
```

The console holds every permission. See [Console and commands](https://docs.aethercube.fr/developers/running-a-server/console-and-commands.md).

## If the server does not start

| Message                                                                                                                                                                                                                                                                                                               | Cause                                                                                                                                                                                                                                      |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `configuration file not found: ...`                                                                                                                                                                                                                                                                                   | `--config` points at a file that does not exist.                                                                                                                                                                                           |
| `invalid configuration ...` followed by a list                                                                                                                                                                                                                                                                        | A value is out of range or a key is unknown. The server prints every problem and exits with status 2.                                                                                                                                      |
| `server.online_mode is false and server.bind_address (0.0.0.0) is not a loopback address: offline mode has no authentication, anyone could join under any name, operators included. Bind to 127.0.0.1, enable server.online_mode, or set server.allow_public_offline: true if this server is really meant to be open` | An offline server listens on a public address. The address in the message is the one you configured. Set `server.bind_address: 127.0.0.1`, or use online mode.                                                                             |
| `backend.endpoint must use https: plain http is accepted only for a loopback host, ...`                                                                                                                                                                                                                               | `backend.endpoint` is an `http://` URL for a host that is not on this machine. Use `https`.                                                                                                                                                |
| `master.enabled requires server.online_mode`                                                                                                                                                                                                                                                                          | An offline server cannot be listed. Set `master.enabled: false`.                                                                                                                                                                           |
| `tls.self_signed is for development only and cannot be combined with server.online_mode`                                                                                                                                                                                                                              | Use a real certificate chain and key in online mode.                                                                                                                                                                                       |
| Port already in use                                                                                                                                                                                                                                                                                                   | Change `server.port`, or set it to `0` to pick a free port.                                                                                                                                                                                |
| `world <name> needs the generator <id>, which is not registered`                                                                                                                                                                                                                                                      | `world.generator` names a plugin generator that is not installed, or the world was created with one. Install the plugin. See [World, biomes and generation](https://docs.aethercube.fr/developers/plugins/world-biomes-and-generation.md). |


---

# 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.aethercube.fr/developers/running-a-server/first-start.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.
