***

title: get_config_file
slug: /reference/python/agents/configuration/config-loader/get-config-file
description: Get the path of the loaded config file.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Get the path of the loaded config file.

## **Returns**

`Optional[str]` -- The file path, or `None` if no config was loaded.

## **Example**

```python {4}
from signalwire.core.config_loader import ConfigLoader

loader = ConfigLoader(["config.json", "/etc/swml/config.json"])
path = loader.get_config_file()

if path:
    print(f"Loaded config from: {path}")
else:
    print("No config file found")
```