# 🎚️-Config Docs

An *optional* configuration file uses [TOML](https://github.com/toml-lang/toml) and by default should be saved at `~/.opendexd/opendex.conf` on Linux or `AppData\Local\OpenDEX\opendex.conf` on Windows. Run `opendexd` at least once for this folder to be created. The `opendexd` repository contains an up-to-date [`sample-opendex.conf`](https://github.com/opendexnetwork/opendexd/blob/main/sample-opendex.conf) which serves as template for creating `opendex.conf`. It is possible to overwrite the default data directory by launching `opendexd` with `opendexd --opendexdir=/path/to/custom/opendexdir`.

### Precedence

The precedence order in which configuration option values are applied is as follows (high to low):

1. Option given on the command line
2. Option read from the config file
3. Option default value (as seen in the output of `opendexd --help`)


---

# Agent Instructions: 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:

```
GET https://opendex.network/docs/config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
