SecretReveal

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

View source
sk-kso-AbC123r7Yq2LmV9xTzWfK4pHdNs8gJcU6bE1oQiwxyz

Shown once. Store it now.

KAESO_BASE_URL=https://kaeso.example.com/v1KAESO_API_KEY=sk-kso-AbC123r7Yq2LmV9xTzWfK4pHdNs8gJcU6bE1oQiwxyz
import { SecretReveal } from "@logicplanes/kaeso-ui";

Props

  • apiKey
    string

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

  • baseUrl
    string

    The gateway's address, for the .env tab and the code snippets.

  • 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).