Skip to main content
The SDK reads its config from three places. You rarely need more than the two credentials.

Settings

SettingEnv varConstructor kwargDefault
Public API key idMUDRAID_API_KEY_IDapi_key_id=required
SecretMUDRAID_SECRETsecret=required
MudraID base URLMUDRAID_BASE_URLbase_url=https://api.mudraid.ai
The v0.1 alpha still ships an older placeholder as its built-in default. Set MUDRAID_BASE_URL=https://api.mudraid.ai explicitly until the package default is updated.

Precedence

Kwarg beats OS env. OS env beats .env file.
# .env sets one value, but an explicit kwarg wins:
agent = Agent(base_url="https://api.mudraid.ai")

The .env file

The SDK loads .env on its own. Put your credentials there:
MUDRAID_API_KEY_ID=muid_kid_...
MUDRAID_SECRET=muid_sk_...
Add .env to .gitignore.

What’s not configurable

Timeouts and cache TTLs are internal. They’re stable in v1. You don’t tune them.