Smritea

Regions

Smritea runs in two regions. You pick one when you create an app, and your code must call that region's host.

Ask AI about this page

A region is the place where Smritea stores an app's memories. Smritea has two regions: the United States and India. You choose the region when you create the app. You cannot change it afterward.

Hosts

The table maps each region to its API host and to the label the dashboard shows for it.

RegionHostLabel in the dashboard
United Stateshttps://api-us.smritea.aius-east-1 (aws)
Indiahttps://api-in.smritea.aiap-south-1 (aws)

Every SDK calls the United States host by default. The dashboard does not show the host for your app. Use the table to map the label on your app to its host.

Point your code at a region

Set the base URL when you create the client. If your app is in the United States, you can skip this step.

SDKSettingExample
Pythonbase_urlSmriteaClient(api_key=..., app_id=..., base_url="https://api-in.smritea.ai")
TypeScriptbaseUrlnew SmriteaClient({ apiKey, appId, baseUrl: 'https://api-in.smritea.ai' })
GoBaseURLsmritea.ClientConfig{APIKey: ..., AppID: ..., BaseURL: "https://api-in.smritea.ai"}
Javathird constructor argumentnew SmriteaClient(apiKey, appId, "https://api-in.smritea.ai", 2)
C#baseUrlnew SmriteaClient(apiKey, appId, baseUrl: "https://api-in.smritea.ai")

This example creates a client for the India region. It reads the API key and the app ID from environment variables.

import os

from smritea import SmriteaClient

client = SmriteaClient(
    api_key=os.environ["SMRITEA_API_KEY"],
    app_id=os.environ["SMRITEA_APP_ID"],
    base_url="https://api-in.smritea.ai",
)

The Java value 2 is the retry count on HTTP 429, and 2 is the default.

For the MCP server, set memory_base_url in your settings file. See MCP server.

Why you cannot change the region

The dashboard pins each app to one region when you create it. The edit screen locks the data plane picker, and the server rejects a change. To use a different region, create a new app in that region.

Last updated on