
Prerequisites
Relic runs in the terminal. For the best experience with the TUI, use a modern terminal emulator:Other terminals work for the CLI, but may have rendering issues with colors and UI elements in the
TUI.
Installation
- curl
- Homebrew
- npm
- Bun
How Relic Is Organized
Secrets in Relic follow a hierarchical structure:- Project: A container for all secrets related to an application or service.
- Environment: Separates secrets by deployment target. Every project has at least one.
- Folder: Optional grouping within an environment. Useful for organizing secrets by service or domain (e.g.
database,api,web). - Secret: A key-value pair. The key is stored in plaintext, the value is encrypted with AES-256-GCM.
relic run -e production, all secrets in that environment are injected. Add -f database to include only secrets from a specific folder.
Getting Started
Sign in
Open the TUI and sign in with your Google or GitHub account:
You can also sign in directly from the CLI:Both methods use device authorization. A browser window opens, you approve the request, and the session is stored locally.

Manage secrets
After signing in, the TUI opens your project list. From here you can:
- Create projects
- Add environments (development, staging, production)
- Create and organize secrets within environments
Initialize your project
Navigate to the root of your project and run:This creates:
relic.tomlwith your project ID.relic/directory for local cache
Add
.relic/ to your .gitignore to keep cache files out of version control.Inject secrets
Run any command with secrets injected as environment variables:Secrets are decrypted locally and passed to your process at runtime. Nothing is written to disk.See CLI guide for all available options.