---
title: "Interface: AgentConfig"
editUrl: true
head: []
template: doc
sidebar:
  hidden: false
  attrs: {}
pagefind: true
draft: false
---

[**Prefactor TypeScript SDK**](../../index.md)

***

[Prefactor TypeScript SDK](../../modules.md) / [@prefactor/openclaw-prefactor-plugin](../index.md) / AgentConfig

# Interface: AgentConfig

Defined in: [packages/openclaw-prefactor-plugin/src/agent.ts:124](https://github.com/prefactordev/typescript-sdk/blob/231423a775642bec119a2db45acf108c6383d05d/packages/openclaw-prefactor-plugin/src/agent.ts#L124)

Configuration for the Prefactor Agent HTTP client.

## Properties

### apiUrl

> **apiUrl**: `string`

Defined in: [packages/openclaw-prefactor-plugin/src/agent.ts:125](https://github.com/prefactordev/typescript-sdk/blob/231423a775642bec119a2db45acf108c6383d05d/packages/openclaw-prefactor-plugin/src/agent.ts#L125)

Base URL of the Prefactor API.

***

### apiToken

> **apiToken**: `string`

Defined in: [packages/openclaw-prefactor-plugin/src/agent.ts:126](https://github.com/prefactordev/typescript-sdk/blob/231423a775642bec119a2db45acf108c6383d05d/packages/openclaw-prefactor-plugin/src/agent.ts#L126)

Bearer token used to authenticate API requests.

***

### agentId

> **agentId**: `string`

Defined in: [packages/openclaw-prefactor-plugin/src/agent.ts:127](https://github.com/prefactordev/typescript-sdk/blob/231423a775642bec119a2db45acf108c6383d05d/packages/openclaw-prefactor-plugin/src/agent.ts#L127)

Unique identifier for this agent in the Prefactor backend.

***

### maxRetries?

> `optional` **maxRetries**: `number`

Defined in: [packages/openclaw-prefactor-plugin/src/agent.ts:128](https://github.com/prefactordev/typescript-sdk/blob/231423a775642bec119a2db45acf108c6383d05d/packages/openclaw-prefactor-plugin/src/agent.ts#L128)

Maximum number of retry attempts for failed HTTP requests. Defaults to `3`.

***

### initialRetryDelay?

> `optional` **initialRetryDelay**: `number`

Defined in: [packages/openclaw-prefactor-plugin/src/agent.ts:129](https://github.com/prefactordev/typescript-sdk/blob/231423a775642bec119a2db45acf108c6383d05d/packages/openclaw-prefactor-plugin/src/agent.ts#L129)

Initial delay in milliseconds before the first retry, doubled on each subsequent attempt. Defaults to `1000`.

***

### requestTimeout?

> `optional` **requestTimeout**: `number`

Defined in: [packages/openclaw-prefactor-plugin/src/agent.ts:130](https://github.com/prefactordev/typescript-sdk/blob/231423a775642bec119a2db45acf108c6383d05d/packages/openclaw-prefactor-plugin/src/agent.ts#L130)

HTTP request timeout in milliseconds. Defaults to `30000`.

***

### openclawVersion?

> `optional` **openclawVersion**: `string`

Defined in: [packages/openclaw-prefactor-plugin/src/agent.ts:131](https://github.com/prefactordev/typescript-sdk/blob/231423a775642bec119a2db45acf108c6383d05d/packages/openclaw-prefactor-plugin/src/agent.ts#L131)

Version string of the OpenClaw runtime (used in the agent version identifier).

***

### pluginVersion?

> `optional` **pluginVersion**: `string`

Defined in: [packages/openclaw-prefactor-plugin/src/agent.ts:132](https://github.com/prefactordev/typescript-sdk/blob/231423a775642bec119a2db45acf108c6383d05d/packages/openclaw-prefactor-plugin/src/agent.ts#L132)

Version string of the Prefactor plugin (used in the agent and schema version identifiers).

***

### userAgentVersion?

> `optional` **userAgentVersion**: `string`

Defined in: [packages/openclaw-prefactor-plugin/src/agent.ts:133](https://github.com/prefactordev/typescript-sdk/blob/231423a775642bec119a2db45acf108c6383d05d/packages/openclaw-prefactor-plugin/src/agent.ts#L133)

Caller-supplied version tag appended to the agent version identifier.

***

### userAgentName?

> `optional` **userAgentName**: `string`

Defined in: [packages/openclaw-prefactor-plugin/src/agent.ts:134](https://github.com/prefactordev/typescript-sdk/blob/231423a775642bec119a2db45acf108c6383d05d/packages/openclaw-prefactor-plugin/src/agent.ts#L134)

Human-readable name for this agent shown in the Prefactor UI. Defaults to `"OpenClaw Agent"`.

***

### spanTypeRiskConfigs?

> `optional` **spanTypeRiskConfigs**: `Record`\<`string`, `DataRisk`\>

Defined in: [packages/openclaw-prefactor-plugin/src/agent.ts:135](https://github.com/prefactordev/typescript-sdk/blob/231423a775642bec119a2db45acf108c6383d05d/packages/openclaw-prefactor-plugin/src/agent.ts#L135)