# loadAgentConfig

<!-- https://uncage.vercel.app/docs/api/agent/functions/loadagentconfig/ -->

```ts
function loadAgentConfig(home?): Promise<AgentConfig>;
```

Defined in: agent/src/config.ts:156

Loads `~/.uncage/agent.yaml` (missing → no sites, bypass off). The file holds machine tokens, so
a group/world-readable file is tightened to 0600.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `home?` | `string` |

## Returns

`Promise`\<[`AgentConfig`](https://uncage.vercel.app/docs/api/agent/interfaces/agentconfig.md)\>
