addAi method, your data never leaves your infrastructure.
Self-hosted AI is available for the
@forestadmin/agent Node.js agent.Installation
Configuration
Pass a provider built withcreateAiProvider to addAi:
Options
| Option | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Unique identifier for this AI configuration |
provider | 'openai' | 'anthropic' | Yes | AI provider |
model | string | Yes | Model to use (see supported models below) |
apiKey | string | No | API key (defaults to OPENAI_API_KEY or ANTHROPIC_API_KEY env var) |
configuration, temperature, maxTokens, etc.) and ChatAnthropic options (anthropicApiUrl, temperature, maxTokens, topK, etc.).