Skip to main content

Overview

SDK configuration options allow you to customize Moss behavior directly in your application code. These settings override Dashboard defaults when specified, giving developers fine-grained control per deployment, environment, or user segment.
Priority reminder: SDK configuration options take precedence over Dashboard settings. When you configure an option in code, it will override the value set in the Dashboard. This allows developers to customize behavior per-deployment while using Dashboard settings as defaults.

Required Options

These options must be provided in the AgentProvider config:
The userId should be a stable identifier for your user. Avoid using PII (email, name) directly - use a hashed or anonymized identifier instead.

Common Options

These options are frequently used to customize SDK behavior:

Language

Set the UI language for the SDK interface.
Default: undefined (auto-detects browser language)
Leave undefined to automatically use the user’s browser language preference.

Vision

Enable or disable screenshot analysis capabilities.
Default: true (from Dashboard)

Session Recording

Control whether user sessions are recorded for replay.
Default: true (from Dashboard)

Screen History

Include user action history in AI context.
Default: true (from Dashboard)

Appearance

Customize the visual theme of the Moss assistant UI.

Using Presets

Available presets:

Custom Appearance

Override specific properties by passing a partial object:

Customizable Properties

Partial objects are deep-merged with the base theme. You only need to specify the properties you want to override.

Session Options

Configure session management behavior:

Developer Options

Advanced settings for debugging and customization:

Screenshot Mode

Default: 'fullpage'
Use viewport for apps with very long pages to reduce processing time.

Log Level

Default: LogLevel.INFO logLevel takes the LogLevel enum exported by the SDK, not a string. Each level includes everything more severe than itself (DEBUG shows everything, SILENT disables logging).

Debug Mode

Default: false Enables verbose logging and debug features for troubleshooting.

DOM Target Selector

Default: 'body' CSS selector for the DOM element to observe. Change this to limit observation to a specific part of your page.

DOM Stability

Configure how the SDK waits for the page to stabilize:
See the SDK Advanced Configuration guide for detailed layer-by-layer documentation.

Complete TypeScript Interface

Here’s the full TypeScript interface for SDK configuration:

Settings Not Available in SDK

The following settings can only be configured through the Dashboard:
  • AI Assistant Instructions - Custom instructions for the AI
  • API Keys - Authentication credentials
  • Domain Access Control - Allowed domains list
  • Vector Store Configuration - RAG system settings
These settings are Dashboard-only for security reasons. They affect application-wide behavior and authentication.

Next Steps

Examples

See complete configuration examples for different use cases

Dashboard Settings

Configure application defaults in the Dashboard