Skip to main content
By default, AI features in Forest are processed by Forest servers. To keep your data private, you can route AI requests through your own back-end using the 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 with createAiProvider to addAi:

Options

All provider-specific options are also supported: ChatOpenAI options (configuration, temperature, maxTokens, etc.) and ChatAnthropic options (anthropicApiUrl, temperature, maxTokens, topK, etc.).

Supported models

Any model with function/tool calling support works. See the list of unsupported models for details.