Use your own Graine install
Point the in-app SDKs and the website widget at your own Graine install — the one address to change, what the install must provide, and what starts fresh for your users.
This page is for a Graine install of your own — a dedicated instance or Graine on your own
infrastructure (Deployment). On Graine's cloud, keep
https://www.graine.ai exactly as every other page shows it.
One address
Your install has its own dashboard address — https://agents.example.com in the examples on
this page; your administrator has yours. It is the only address you give an app or a website.
When the SDK connects, it asks that address for the agent's settings, and the answer tells it where the install runs the conversation and the call. The install serves everything the SDKs and the widget use: the agent's settings and look, chats, voice and calls, bookings, memory and past conversations.
Point each SDK at it
Set baseUrl everywhere the SDK takes one — the agent, every other agent you configure, and the
calls package — to the same address. Everything else in your integration stays as it is.
The calls package keeps its own options on the phone, so it takes the address too — left out,
it is Graine's cloud, https://www.graine.ai. A changed baseUrl takes effect at the app's next
launch:
Starting WebRTC calls yourself with RtcVoiceSessionController? Pass the same baseUrl along
with your client.
Requests your own server makes — server tokens, calls it
starts — go to your install's API address instead of api.graine.ai, with an API key created in
the install's dashboard.
What the install must provide
Nothing below carries over from another deployment: each install issues and checks its own.
Keys from its own dashboard
A publishable key (pk_live_…) works only on the deployment that issued it. Set up each agent in
the install's dashboard, copy its key from Agent → Embed & Widgets, and put app:// (for
apps) and your website's domains on its Allowed domains there. As on Graine's cloud, never
list the install's own dashboard address.
Device checks, set up again
If an agent asks apps or users to prove themselves (Secure your agent), set it up again in the install's dashboard, under Agent → Embed & Widgets → Install → Your app and your users:
- Your apps — the iPhone bundle ID and Team ID; the Android package name and signing certificates.
- Verified app — App Attest needs nothing uploaded; for Play Integrity, upload the service account's JSON key again.
- Verified users — your sign-in's JWKS URL, issuer, audience and user-ID claim; or, for user IDs your server signs, a new signing secret from the install, for your server to sign with.
Devices then prove themselves to the install. Proofs and passes made for another deployment are not accepted there.
Push credentials, uploaded again
For calls the install rings on your users' phones (Hosted ringing), upload your APNs key and your Firebase service account under Workspace settings → In-app calling in the install's dashboard. The install sends each push itself, so it needs outbound access to Apple's and Google's push services.
A public TLS certificate on every address a phone reaches
Phones and browsers connect only over HTTPS and secure WebSockets, and only to a certificate they already trust. Each of these needs a certificate from a public certificate authority:
| Address | What reaches it |
|---|---|
The dashboard address (your baseUrl) | Every SDK, and the website's loader and widget |
| The install's API address | Chats, voice and call audio, and your server's requests |
| The call server and its TURN relay, if your install offers WebRTC calls | Calls over WebRTC |
A self-signed or private certificate does not work: iOS and Android refuse it in apps by default,
and browsers refuse it in the website's widget. Plain http:// is refused too.
Your users start fresh
The install keeps its own data. Nothing moves to it from another deployment:
- Memory — what the agent remembers about each user starts empty, and builds up again from their first conversation on the install.
- Past conversations and Call History start empty. Conversations held elsewhere stay where they happened.
- Devices and calls — every device registers again the first time the app connects to the install. Calls booked on another deployment are not moved.
Keep identifying users exactly as you do today: the same identify call, with the same
identifier, recognises them on the install from then on.
Check it
-
Run the app with the SDK's debug log on (or open your browser's network panel on a page with the widget). Every request goes to
https://agents.example.com, and the conversation's connection to your install's API address. -
Or ask for the agent's settings directly:
The answer names your agent, and its
wsHostis your install's API address. A401means the key was not issued by this install. A403meansapp://is not on the agent's Allowed domains — or the agent accepts only your own apps, in which case check from the app instead.

