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

# set

> Set a configuration value at a dot-notation path.

[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**

**`path`** `string` — required

Dot-separated key path into the config object (e.g., `"server.port"`).

---

**`value`** `unknown` — required

The value to store at the given path.

---

## **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
```