***

title: set
slug: /reference/typescript/agents/configuration/config-loader/set
description: Set a configuration value at a dot-notation path.
max-toc-depth: 3
---------------------

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

[ref-configloader]: /docs/server-sdks/reference/typescript/agents/configuration/config-loader

Set a configuration value at the given dot-notation path, creating intermediate
objects as needed. Keys matching `__proto__`, `constructor`, or `prototype` are
silently ignored to prevent prototype pollution.

## **Parameters**

<ParamField path="path" type="string" required={true} toc={true}>
  Dot-separated key path into the config object (e.g., `"server.port"`).
</ParamField>

<ParamField path="value" type="unknown" required={true} toc={true}>
  The value to store at the given path.
</ParamField>

## **Returns**

[`ConfigLoader`][ref-configloader] -- Returns `this` for method chaining.

## **Example**

```typescript {5-6}
import { ConfigLoader } from '@signalwire/sdk';

const config = new ConfigLoader();

config.set('server.port', 8080);
config.set('server.host', 'localhost');
console.log(config.get<number>('server.port')); // 8080
```