Skip to main content
The webAI SDK exposes AI capabilities through the intelligence facade (sdk.intelligence). It covers on-device inference through the selected backend, registered cloud backends, runtime diagnostics, and active persona state. Common operations include chat completions (streaming or one-shot), text generation, backend listing, cloud key registration, and state inspection. Apps access it through the platform bridge object:
const sdk = window.apogeeSDK || null;
if (!sdk) return;
const state = sdk.intelligence.getState();
Declare intelligence in your shell manifest under requires.managers.

Full reference

The complete intelligence facade reference — method signatures, parameter tables, event payloads, and return types — lives in the in-app Developer panel.

Open the Developer panel

  1. Open Settings → Experimental and toggle Developer Mode on.
  2. A terminal icon appears in the top right of the app. Click it to open the Developer panel.
  3. Go to the Documentation section → Docs tab → intelligence.
The Lab tab in the same panel lets you run methods interactively against a live runtime.

Learn more

Build apps

Build your first app using the webAI SDK and platform facades.

On-device AI

How the AI runtime works — backends, model tiers, LoRA adapters.