Skip to main content
Solutions for common issues you may encounter while using Relic.

Discord

The Cupola Discord invite is https://discord.gg/2vNRzRMY6K.Do not use:
  • discord.gg/relic — not Cupola (unrelated Roblox community)
  • discord.gg/heycupola — expired invite
If an old link fails, use the canonical invite above.

Session & Authentication

Your session token has a limited lifetime. When it expires, re-authenticate:
Session data is stored at ~/.config/relic/session.json (%APPDATA%\relic\session.json on Windows). If the file is corrupted, delete it and log in again.
JWT tokens refresh automatically. If the error persists, clear your session and re-authenticate:

Secret Injection

If relic run -e <name> prints Server Error or Environment not found, the environment name is missing or wrong.
  1. Run relic and open your project.
  2. Create an environment (for example development), or copy the exact name you already have.
  3. Run again: relic run -e development -- <command>
relic init alone does not create environments. Create at least one environment before relic run.
Check the following:
  1. Verify the environment name matches exactly: relic run -e development -- ...
  2. Make sure relic.toml exists in your project root (run relic init if not)
  3. Clear stale cache:
The next relic run will fetch fresh data from the server.
Cache invalidation happens automatically when secrets are updated. If you still see old values, delete the local cache:
When using API keys (CI/CD mode), caching is disabled and secrets are always fetched fresh.

TUI

Relic’s TUI requires a terminal with true color support. Use one of these:You can verify your terminal supports true color:
If you see xterm or screen, your terminal may not support the full color range the TUI needs.
Run with debug logging enabled to see what’s happening:
Then check the log file:

Debugging

When something isn’t working, enable debug logs to get more information.
1

Enable debug logging

Set the RELIC_LOG environment variable:
2

Check the log file

Logs are written to ~/.config/relic/logs/ (%APPDATA%\relic\logs\ on Windows):Override the log path with RELIC_LOG_FILE if needed.
3

Watch logs in real time

Tail the log file while running Relic in another terminal:

Windows

Windows support is in beta. These are the differences you are most likely to run into.
The PowerShell installer adds %USERPROFILE%\.relic\bin to your user PATH, but terminals that were already open keep the old value. Open a new terminal window, or update the current session:
Your execution policy blocks the installer. Run it with the policy bypassed for that one process:
The runner looks up commands in PATH using the extensions in PATHEXT, limited to .com, .exe, .bat, and .cmd. The current directory is not searched.
  • For a script in the current directory, use a path: relic run -e dev -- .\build.cmd
  • For cmd.exe built-ins such as echo or set, go through the shell. From PowerShell: relic run -e dev -- cmd /c echo %API_URL%
  • For PowerShell scripts, call PowerShell: relic run -e dev -- pwsh -File .\deploy.ps1
The child process only inherits a fixed set of system variables. See the runner environment allowlist. If your tool needs another variable from your shell, store it as a Relic secret.
Windows does not allow a running relic.exe to be replaced. If you installed with npm, Bun, or Scoop, relic upgrade prints the command to run once it exits, for example:
Installs from the PowerShell installer upgrade in place: the installer moves the running binary aside to relic.exe.old and removes it on the next install.
Use Windows Terminal, which is the default terminal on Windows 11. The legacy console host (conhost.exe) on older Windows 10 builds may render colors and box characters incorrectly.
PowerShell sets environment variables differently from Unix shells:

Cache

Relic caches data locally to reduce API calls. If you need to reset it:
Clearing the user key cache does not delete your encryption keys from the server. You will not lose access to your secrets.

What never to paste (Discord / GitHub / DMs)

Hygiene only — no crypto claims. Secret names are OK. Secret values are never OK — including in screenshots, screen recordings, and “redacted” snippets that still show part of a token. Never paste (or show on camera):
  • Secret values, API tokens, JWTs, cookies, Authorization headers, private keys / PEM blocks, master passwords
  • Full .env bodies or any RELIC_* / Wrapper credential values
  • Wrapper share codes, attach links, or session URLs (anyone with the link can reach the shared session)
  • Device-auth / OIDC one-time codes, login callback URLs, or magic links
  • PTY dumps, agent transcripts, MCP tool output, or CI logs that contain values
  • Request IDs that embed account data (when in doubt, omit)
OK to paste:
  • OS + Relic / Wrapper version (relic --version)
  • Exact command with environment name only (for example -e development)
  • Error text / exit code with values removed
  • Secret names only (for example OPENAI_API_KEY exists / missing)
If you already pasted a value: treat it as compromised — rotate that secret, revoke the share/session if applicable, then continue support with names-only evidence.
Names yes. Values never. No .env dumps. No tokens. No share links. No PTY pastes. Screenshots count.

Still stuck?

Discord

Ask in #support with OS + command (names only — no secret values).

Open an issue

Report bugs or request features on GitHub.

Security issues

For security vulnerabilities, email us directly. Do not open public issues.
Last modified on October 26, 2026