# Set up credentials

For Nango setup (cloud or local), follow [Use Nango as a credential store](/typescript-sdk/credentials/nango). Short version:

* Set `NANGO_SECRET_KEY` in the root `.env`.
* For local Nango, start services from `agents-optional-local-dev` (`docker-compose --profile nango up -d`) and set `NANGO_SERVER_URL` / `PUBLIC_NANGO_CONNECT_BASE_URL` as needed (see `.env.example`).
* Restart `pnpm dev`, then create a credential in the Visual Builder (Credentials tab).