> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coralos.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Server configuration

# Configuration tables

The Coral server is configured using configuration tables. The following tables are available:

| Table                                    | Description                                  |
| ---------------------------------------- | -------------------------------------------- |
| [authentication](/reference/server/auth) | Configure access to the Coral server         |
| [console](/reference/server/console)     | Configuration for the built-in Coral console |
| [debug](/reference/server/debug)         | Debugging configuration                      |
| [docker](/reference/server/docker)       | Docker runtime configuration                 |
| [logging](/reference/server/logging)     | Logging configuration                        |
| [network](/reference/server/network)     | Network configuration                        |
| [registry](/reference/server/registry)   | Agent registry configuration                 |

# Setting configuration options

Configuration options can be set with two different methods. Configuration options set in a higher priority method
will override options set in a lower priority method.

In order of priority, highest to lowest:

### 1. Command line

Options can be specified via the command line. Depending on how the Coral server is started, the command line options
may be specified in different ways, such as:

```bash title=Gradle theme={null}
./gradlew run --args="--auth.keys=dev"
```

```bash title=NPM theme={null}
npx coralos-dev@latest -- server start -- --auth.keys="dev"
```

The syntax for specifying command line options is `--<table>.<key>=<value>`, `keys` can be specified in:

* lower case
* camel case
* snake case

### 2. Configuration file

The Coral server will load a [TOML](https://toml.io/) configuration file from a path specified by the
`CONFIG_FILE_PATH` environment variable. There is no default location for the configuration file; if the environment
variable is not set, no configuration file will be loaded.

**Example:**

```bash title="Environment variables" theme={null}
CONFIG_FILE_PATH=/path/to/config.toml
```

```toml title=/path/to/config.toml theme={null}
[auth]
keys = ["my access key"]
```

<Warning>
  If `CONFIG_FILE_PATH` is set, it must point to a valid and accessible configuration file.

  Pointing to an invalid configuration file will cause an error launching the Coral server.
</Warning>
