---
title: "Get an OpenAI key"
url: "https://docs.mekodata.ai/byoc/prerequisites/openai-key/"
---

# Get an OpenAI key

The OpenAI API key that Meko BYOC uses to extract memories

Meko uses OpenAI's `gpt-5-mini` model to extract memories from the conversations your agents store. Without a working key the install still completes and every service reports healthy, but nothing is remembered. For that reason the install refuses to run without `OPENAI_KEY`.

Meko sends the text of the conversations it extracts memories from to OpenAI. If that conflicts with your data policies, resolve it before you install.

1. In the [OpenAI platform](https://platform.openai.com/), create a project for Meko. A project of its own lets you set a spending limit and revoke the key without touching anything else.
2. Create an API key in that project and save it as `OPENAI_KEY`.
3. Make sure the project can use `gpt-5-mini`.

Check the key. The call prints `200` when the key is valid and can see the model:

```sh
curl -s -o /dev/null -w '%{http_code}\n' https://api.openai.com/v1/models/gpt-5-mini \
  -H "Authorization: Bearer <OPENAI_KEY>"
```

A `401` means the key is invalid or revoked. A `404` means the project cannot use the model.

## Next

[Configure your identity provider](/byoc/prerequisites/identity-provider/).
