SecretReveal

The one-time secret: calm, centered, certain. Copy it, store it, see how to use it.

View source
sk-kso-AbC123r7Yq2LmV9xTzWfK4pHdNs8gJcU6bE1oQiwxyz

Shown once. Store it now.

from openai import OpenAI client = OpenAI(base_url="https://gateway.northwind.example/v1", api_key="sk-kso-AbC123r7Yq2LmV9xTzWfK4pHdNs8gJcU6bE1oQiwxyz") response = client.responses.create(    model="gpt-5-mini",    input="Write one sentence about gateways.",)print(response.output_text)
import { SecretReveal, EnvironmentSnippet } from "@logicplanes/kaeso-ui";

Props

  • apiKey
    string = $KAESO_API_KEY

    What stands in for the key: the real key right after creation, a placeholder elsewhere.

  • baseUrl
    string

    The gateway's address, for the code snippet that uses the key.

  • model
    string

    A model id for the code snippet.

  • name
    ReactNode

    The key's name, for the heading.

  • onCopied
    (() => void)

    Called when the secret was copied.

  • secret
    string

    The full secret, shown once.

  • snippets
    false | CodeTab[]

    What follows the secret: the SDK snippets for calling models (default), other snippets (a key for the Platform API), or none (false).