---
title: Configure Your Environment
url: https://docs.kaltura.com/docs/getting-started/general/credentials-environment
---

## Configure Your Environment

Create a `.env` file in your project root:

```bash
KALTURA_PARTNER_ID=your_partner_id
KALTURA_ADMIN_SECRET=your_admin_secret
KALTURA_SERVICE_URL=https://www.kaltura.com/api_v3
KALTURA_USER_ID=your_user_id
KALTURA_PLAYER_ID=your_player_id
KALTURA_VIDEO_PORTAL_BASE_URL=https://your-site.events.kaltura.com
```

For running curl examples directly, export as shell variables:

```bash
export KALTURA_PARTNER_ID=your_partner_id
export KALTURA_ADMIN_SECRET=your_admin_secret
export KALTURA_SERVICE_URL=https://www.kaltura.com/api_v3
export KALTURA_USER_ID=your_user_id
export KALTURA_PLAYER_ID=your_player_id
```

Add `.env` to your `.gitignore` to keep credentials out of version control.
