---
sidebar_position: 5
---

# OpenAI Configuration

## Global Access Configuration

To give everyone using your instance of unsaged access to OpenAI models like GPT-4, set the following environment variables:

```sh title="apps/web/.env.local"
OPENAI_API_KEY=your_openai_api_key
```

## Advanced Configuration

See [OpenAI Environment Variables](/docs/model-providers/openai#environment-variables) for a full list of environment variables that can be set to configure OpenAI models.
