Skip to main content
Run the Margovia API locally:
pnpm dev:api
Then configure the app consuming the SDK:
MARGOVIA_API_KEY=mg_test_xxx
MARGOVIA_BASE_URL=http://localhost:4010
MARGOVIA_DEBUG=1
This is the recommended way to test the SDK from another local product, such as a demo SaaS app or internal AI feature.

Production

For Margovia Cloud, remove MARGOVIA_BASE_URL in production and keep only your project API key:
MARGOVIA_API_KEY=mg_live_xxx
Set MARGOVIA_BASE_URL in production only if you self-host Margovia or run a compatible receiver.