Carapace
All Guides
LLM

OpenAI

Bring your own GPT-5 / GPT-5.2 API key

OpenAI Setup Guide

Provides your agent with access to OpenAI models (GPT-5, GPT-5.2, etc.) using your own API key.

Prerequisites

Step 1: Create an API Key

  1. Go to platform.openai.com/api-keys
  2. Click Create new secret key
  3. Optionally name the key (e.g., "Carapace Agent")
  4. Copy the key (starts with sk-) — it's shown only once

Step 2: Connect in Carapace

  1. Go to Dashboard > Connections
  2. Find OpenAI and click Connect
  3. Paste the API key
  4. Click Save Credentials

Credential Fields Reference

FieldRequiredFormatDescription
api_keyYesStarts with sk-OpenAI API secret key

Gotchas

Key shown only once: If you lose the key, generate a new one. Old keys can be revoked from the same page.

Billing must be enabled: API keys without an active billing plan will receive 429 rate limit errors. Ensure your OpenAI account has a payment method and sufficient credits.

Project keys: Newer OpenAI keys may start with sk-proj- instead of just sk-. Both formats work.

See Also