> ## Documentation Index
> Fetch the complete documentation index at: https://help.nops.io/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI

> Connect OpenAI Admin API credentials to nOps Inform

## Overview

nOps uses your **OpenAI Admin API key** and an **API key name** label to bring API usage and billing into Inform. Credentials are stored securely, validated before save, and are not shown again after you connect.

## Prerequisites

* OpenAI organization access to create **Admin API keys**
* An Admin API key with **read-only** permissions for billing data
* nOps organization **administrator** access

<Note>
  Only **admins** and **owners** can connect, re-validate, or disconnect. **Members** see **Admin Only** on connectable cards.
</Note>

## Create an OpenAI Admin API key

1. Sign in to the [OpenAI platform](https://platform.openai.com).
2. Open [Admin API keys](https://platform.openai.com/settings/organization/admin-keys).
3. Click **Create new Admin Key**.
4. Enter a descriptive name (for example `nOps Integration`).
5. Select **Read-only** permissions and click **Create admin key**.
6. Copy the Admin API key immediately — it is shown only once.

<Warning>
  Do not share the Admin API key or commit it to source control. If lost, create a new key and connect again in nOps.
</Warning>

## Connect in nOps

### Where to open OpenAI

* **To connect for the first time** — go to **Settings → Integrations** and click the **OpenAI** card.
* **To manage an existing connection** — go to **Settings → Account Status → Connected apps** and click the **OpenAI** chip to re-validate or disconnect.

### Connect steps

1. Click the **OpenAI** card or chip.
2. Enter an **API key name** (for example `Production OpenAI`) and paste the **Admin API key**.
3. Click **Connect**.

nOps validates the Admin API key with OpenAI before storing it.

## Manage your connection

Use **Re-validate** to check stored credentials without re-entering them, or **Disconnect** to remove them. **Action required** usually means a revoked, expired, or non-admin key — create a new Admin API key in OpenAI and connect again.

## Troubleshooting

* **Invalid key** — use an **Admin API key** with read-only billing access, not a standard project API key.
* **No data** — allow up to **24 hours** for initial sync; confirm billing activity in OpenAI.
* **Multiple accounts** — use distinct **API key name** values if you connect more than one OpenAI organization over time.

## Security

Rotate Admin API keys on a schedule. Update the integration in nOps before a key expires if you set an expiration in OpenAI.
