# HostedAgentConfiguration

- Module: [Aspire.Hosting.Foundry](/reference/api/typescript/aspire.hosting.foundry.md)
- Version: `13.4.0-preview.1.26281.18`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

A configuration helper for hosted agents.

## Definition

```typescript
interface HostedAgentConfiguration {
  cpu: number;
  description: string;
  readonly environmentVariables: Dict<string,string>;
  memory: number;
  readonly metadata: Dict<string,string>;
}
```

## Properties

- `cpu`: `number` `get - set` -- CPU allocation for each hosted agent instance, in vCPU cores.
- `description`: `string` `get - set` -- The description of the hosted agent.
- `environmentVariables`: `Dict<string,string>` `get` -- Environment variables to set in the hosted agent container.
- `memory`: `number` `get - set` -- Memory allocation for each hosted agent instance, in GiB. Must be 2x the CPU allocation.
- `metadata`: `Dict<string,string>` `get` -- Additional metadata to associate with the hosted agent.
