Registry

Your key

Blocks are installed with your project key. Create it, keep it in .env, and let the shadcn CLI send it.

Components, themes and the base items install without a key. Blocks need one: the shadcn CLI sends it with every request for a block, and the registry checks which blocks your plan opens.

Create your key

  1. Sign in and open your dashboard.
  2. Under Your key, click Create my key.
  3. Copy the key at once. It starts with trame_ and is shown only once: we keep a hash, not the key.

Any account can create a key, free accounts included. See Free and Pro blocks for what it opens.

Put it in .env

Add the key to the .env file at the root of your project:

TRAME_KEY=trame_your_key_here

Keep .env out of git. Check that your .gitignore lists it:

.env

Send it from components.json

components.json names the variable, never the key. The CLI reads TRAME_KEY from .env and sends it as a header.

For Vue:

{
  "registries": {
    "@trame": {
      "url": "https://trame-ui.com/r/vue/{name}.json",
      "headers": { "Authorization": "Bearer ${TRAME_KEY}" }
    }
  }
}

For React:

{
  "registries": {
    "@trame": {
      "url": "https://trame-ui.com/r/react/{name}.json",
      "headers": { "Authorization": "Bearer ${TRAME_KEY}" }
    }
  }
}

This replaces the short form "@trame": "https://…" from Installation. You can commit components.json: it holds no secret.

Then add a block:

npx shadcn-vue@latest add @trame/steps-cards

Rotate your key

Your account has one key at a time. To change it, open your dashboard and click Replace my key. The old key stops working at once. Put the new one in every .env and CI secret that used the old one.

Replace your key if it was committed, shared or pasted in a chat. Your dashboard shows when each key was last used.