---
title: SDK presentation updates
description: Connect an upgraded gateway to receive signed presentation updates in the background, retain a local fallback and verify the profile served.
canonical_url: https://rebilder.com/docs/sdk-updates
last_updated: "2026-11-28"
---

# [SDK presentation updates](https://rebilder.com/docs/sdk-updates)

> Connect an upgraded gateway to receive signed presentation updates in the background, retain a local fallback and verify the profile served.

This site answers questions directly. Ask at https://rebilder.com/ask?q=your+question instead of reading more pages.

- **Updated:** 2026-11-28
- **Author:** Rebilder
- **Section:** Getting started
- **Description:** Connect an upgraded gateway to receive signed presentation updates in the background, retain a local fallback and verify the profile served.
- **Publisher:** Rebilder

## Rebilder at a glance

AEO gets you seen. Rebilder gets you heard. When customers ask ChatGPT about your business, your site answers with your real prices and policies.

**Common questions**

- **What does it cost?** Connecting is free. Starter is $49/mo, Pro is $99/mo and Agency is $299/mo. [Pricing](https://rebilder.com/pricing)
- **How does my site answer new questions live?** Rebilder reads your pages, products and policies. When an AI assistant asks, your site answers from them. Nothing on your site changes. [See how it works](https://rebilder.com/autopilot)
- **Can someone trick my site into a wrong price or a discount?** No. Every answer comes from your own pages and is checked against them. If your site does not say it, Rebilder does not say it. [Read security details](https://rebilder.com/security)

**How it compares**

- **Why choose Rebilder?** Choose Rebilder when you want your own site to answer AI assistants with your real facts, and to see who asked. [Compare](https://rebilder.com/compare)

| Compared with | The difference |
| --- | --- |
| Profound, Peec AI, Otterly.ai | These tools watch AI answers and tell you where you show up. Rebilder makes your own site answer when AI comes to check. |
| Cloudflare Markdown for Agents, @vercel/agent-readability, Yoast llms.txt | These tools tidy or map your pages for AI. Rebilder answers from those pages and shows you who asked. |
| Intercom Fin, Tidio Lyro | Chatbots answer the customers who contact you. Rebilder answers the AI assistants that visit your site for them. |
| SEO on its own, Shopify agentic storefronts, Writing an llms.txt yourself | Good SEO, your store platform and a simple llms.txt all help. Here is what Rebilder adds to each. |

Source: [Compare](https://rebilder.com/compare)

## Connect your SDK once

- Upgrade to `@rebilder/gateway` 0.4.0 or later, which exports `createCompatibilityUpdater`. Older installations require this one-time code update.
- Enable Autopilot and presentation updates for the site. The feed checks your current Starter, Pro or Agency subscription and configured authority before sending a candidate.
- In [Settings](/console/settings), generate a separate update API key. Store it as `REBILDER_STORE_API_KEY` in your SDK process. This key has `config:read` scope; your existing event key keeps its scope.
- Retrieve the setup document over HTTPS using that key. Save its `audience`, `keyId` and `publicKey` in deployment configuration. Pin the public key once; do not download a new verification key on every refresh.

Install the SDK with update support

```bash
pnpm add @rebilder/gateway@latest
```

Retrieve your public setup configuration

```bash
curl -fsSL "https://api.rebilder.com/v1/autopilot/compatibility?setup=1" \
  -H "Authorization: Bearer $REBILDER_STORE_API_KEY"
```

## Refresh outside request handling

Wire the updater into a long-running server or a deployment scheduler. The source resolvers remain your existing gateway configuration. Durable cache storage should use an atomic write and be scoped to this site.

Server initialization

```ts
import { createCompatibilityUpdater } from '@rebilder/gateway'

const updater = createCompatibilityUpdater({
  url: setup.url,
  audience: setup.audience,
  apiKey: process.env.REBILDER_STORE_API_KEY,
  publicKeys: { [setup.keyId]: setup.publicKey },
  cache: {
    load: () => profileCache.read(setup.audience),
    save: (envelope) => profileCache.writeAtomically(setup.audience, envelope),
  },
})
await updater.restore()
await updater.refresh()
const stopUpdates = updater.start(15 * 60 * 1000)

export const gatewayConfig = {
  storeId,
  sources,
  compatibilityProfile: updater.current,
}
```

The gateway reads the current profile synchronously. A request never starts a configuration fetch or model call. Serverless request scopes do not keep timers running: refresh from scheduled work, persist the signed envelope and restore it during initialization.

## Verify and reverse an update

Fetch a connected page with `Accept: text/markdown`. Its `x-rebilder-profile-id` and `x-rebilder-profile-version` headers identify the presentation actually served. The same fields appear in gateway events. A page whose byte budget cannot fit the candidate uses baseline and reports baseline.

Inspect or roll back locally

```ts
const status = updater.status()
// Emergency local rollback also stops background polling.
updater.rollback()
// After resolving the issue, an explicit refresh resumes updates.
await updater.refresh()
```

Disabling presentation updates causes the next authorized refresh to receive a signed baseline. Revoking the update key prevents further downloads; the current signed configuration expires within one hour. Network failures retain the last valid profile, then baseline at expiry. Your business source data stays in your application.

## What a presentation release establishes

Candidates are compiled-in presentation rules that preserve your source content. The control plane accepts a release only after controlled model comparisons pass factual, qualification and held-out checks. An offline formatting check alone cannot release a candidate. With no qualifying release, the feed serves baseline.

The signed payload includes the evaluation ID for its candidate. Delivery headers establish what your gateway served. External assistant citations, recommendations and answers require separate observations.