# Load Secrets

> Fallback for missing credentials — loads the secrets managed in VibeStudio (for example OPENAI_API_KEY, GITHUB_TOKEN) into your environment. Only use this after a skill or command actually fails with a missing API key, token, or environment variable; environments launched from VibeStudio already have these secrets loaded, so don't run it preemptively.

- Skill: `altrinaai/load-secrets` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add altrinaai/load-secrets`
- Raw SKILL.md: https://api.skillmd.com/api/skills/altrinaai/load-secrets/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: AltrinaAI (https://skillmd.com/u/altrinaai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/altrinaai/load-secrets

---


# Load secrets — VibeStudio activation (fallback)

VibeStudio keeps your API keys and secrets in one place and renders them to a
single env file. Terminals launched from VibeStudio source that file
automatically, so the secrets are normally **already in your environment** —
check first (e.g. `[ -n "$OPENAI_API_KEY" ]`). Reach for this skill only as a
last resort, when a command has actually failed because a key, token, or
environment variable is missing.

## Load the secrets

Run this once, through `eval`, pointing at this skill's folder:

```bash
eval "$(bash ./activate.sh --print)"
```

(Use the absolute path to `activate.sh` if your shell isn't already in this
folder.) It exports every managed secret into the **current** shell and, where
possible, wires your shell startup files so shells started later inherit them
too. It prints only the variable **names** it activated — never the values.

## Sandboxed agents (read-only HOME, fresh shell per command)

Some agents (for example Codex) run each command in a **fresh shell** with a
**read-only HOME**, so a separate `activate` step doesn't persist and the
startup files can't be patched. There, source the env file **in the same
command** that needs the secrets — this only *reads* a file, so it works even
when HOME is read-only:

```bash
. "${VIBESTUDIO_ENV:-$HOME/.config/vibestudio/env}" && your-command
```

If it reports that no secrets are configured, add them in VibeStudio and run
it again.

