# CreateAgentOptions

<!-- https://uncage.vercel.app/docs/api/agent/interfaces/createagentoptions/ -->

Defined in: agent/src/agent.ts:53

## Properties

| Property | Type | Description | Defined in |
| ------ | ------ | ------ | ------ |
| <a id="property-adapters"></a> `adapters` | `RuntimeAdapter`[] \| ((`siteId`) => `RuntimeAdapter`[]) | Runtime adapters, or a factory called once per site (each site gets its own core instance). | agent/src/agent.ts:56 |
| <a id="property-agentversion"></a> `agentVersion?` | `string` | Overrides the version sent in `hello` (tests). | agent/src/agent.ts:64 |
| <a id="property-config"></a> `config` | [`AgentConfig`](https://uncage.vercel.app/docs/api/agent/interfaces/agentconfig.md) | - | agent/src/agent.ts:54 |
| <a id="property-exec"></a> `exec?` | [`ExecFn`](https://uncage.vercel.app/docs/api/agent/type-aliases/execfn.md) | Runs commands (the self-upgrade). Injectable for tests. | agent/src/agent.ts:66 |
| <a id="property-exit"></a> `exit?` | (`code`) => `void` | Called after a self-upgrade attempt. Default `process.exit`. | agent/src/agent.ts:70 |
| <a id="property-fetch"></a> `fetch?` | (`input`, `init?`) => `Promise`\<`Response`\> | HTTP client for `/agent/info` and the HTTP streaming transport. Default: the global `fetch` (tests inject one). | agent/src/agent.ts:72 |
| <a id="property-home"></a> `home?` | `string` | Defaults to the user's home directory (`~/.uncage`, `~/Uncage`). | agent/src/agent.ts:58 |
| <a id="property-logger"></a> `logger?` | [`AgentLogger`](https://uncage.vercel.app/docs/api/agent/interfaces/agentlogger.md) | - | agent/src/agent.ts:59 |
| <a id="property-machine"></a> `machine?` | `object` | Machine name / OS reported to websites. Default: host name, `darwin <release>`. | agent/src/agent.ts:62 |
| `machine.name?` | `string` | - | agent/src/agent.ts:62 |
| `machine.os?` | `string` | - | agent/src/agent.ts:62 |
| <a id="property-timing"></a> `timing?` | `Partial`\<[`AgentTiming`](https://uncage.vercel.app/docs/api/agent/interfaces/agenttiming.md)\> | - | agent/src/agent.ts:60 |
| <a id="property-upgradecommand"></a> `upgradeCommand?` | \[`string`, `string`[]\] | The self-upgrade command. Default `selfUpgradeCommand()` (resolved when an upgrade is needed). | agent/src/agent.ts:68 |
