Regions
Smritea runs in two regions. You pick one when you create an app, and your code must call that region's host.
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.
| Region | Host | Label in the dashboard |
|---|---|---|
| United States | https://api-us.smritea.ai | us-east-1 (aws) |
| India | https://api-in.smritea.ai | ap-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.
| SDK | Setting | Example |
|---|---|---|
| Python | base_url | SmriteaClient(api_key=..., app_id=..., base_url="https://api-in.smritea.ai") |
| TypeScript | baseUrl | new SmriteaClient({ apiKey, appId, baseUrl: 'https://api-in.smritea.ai' }) |
| Go | BaseURL | smritea.ClientConfig{APIKey: ..., AppID: ..., BaseURL: "https://api-in.smritea.ai"} |
| Java | third constructor argument | new SmriteaClient(apiKey, appId, "https://api-in.smritea.ai", 2) |
| C# | baseUrl | new 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.
Related pages
Last updated on



