# Interface TokenCounterConfig

Configuration for the token counter.

interface TokenCounterConfig {
anthropicApiKey?: string;
googleApiKey?: string;
maxCacheSize?: number;
cacheTtlMs?: number;
}

- Defined in packages/nexus-agents/src/context/token-counter-types.ts:48

##### Index

### Properties

anthropicApiKey?
googleApiKey?
maxCacheSize?
cacheTtlMs?

## Properties

### `Optional` anthropicApiKey

anthropicApiKey?: string

Anthropic API key (optional, required for Anthropic counting)

- Defined in packages/nexus-agents/src/context/token-counter-types.ts:50

### `Optional` googleApiKey

googleApiKey?: string

Google API key (optional, required for Gemini counting)

- Defined in packages/nexus-agents/src/context/token-counter-types.ts:52

### `Optional` maxCacheSize

maxCacheSize?: number

Maximum cache entries (default: 1000)

- Defined in packages/nexus-agents/src/context/token-counter-types.ts:54

### `Optional` cacheTtlMs

cacheTtlMs?: number

Cache TTL in milliseconds (default: 5 minutes)

- Defined in packages/nexus-agents/src/context/token-counter-types.ts:56