Secrets & repos
Manage org secrets your agents use, and list connected repositories.
Secrets
Secrets are org-scoped credentials your agents read at runtime — model keys, API tokens, and anything else your custom agents need. Values are write-only: Premia never returns them after they're set.
Where secrets are used
Set a model key here (e.g. ANTHROPIC_API_KEY) to bring your own model, or give a
custom agent the tokens it needs. See Models & secrets.
premia secrets set
Create or replace an org secret. Provide the value as an argument, or pipe it via stdin (so it never lands in your shell history).
premia secrets set <KEY> <value>
echo -n "$VALUE" | premia secrets set <KEY>| Argument | Required | Description |
|---|---|---|
key | yes | Secret name, UPPER_SNAKE_CASE. |
value | no | The value. Omit to read from stdin. |
premia secrets set ANTHROPIC_API_KEY sk-ant-…
echo -n "$GH_TOKEN" | premia secrets set GITHUB_TOKEN✓ Set ANTHROPIC_API_KEY (org scope)Piping is the safer path in CI and shared machines — the value never appears as a
process argument. With no value argument and no stdin, the command exits 1.
premia secrets list
List secret names (values are never shown).
premia secrets list [--json]KEY
ANTHROPIC_API_KEY
GITHUB_TOKEN
OPENAI_API_KEYpremia secrets delete
premia secrets delete <KEY>✓ Deleted OPENAI_API_KEYRepos
premia repos list
List the repositories connected to your org.
premia repos list [--json]REPO BRANCH
acme/web main
acme/api main
acme/infra masterConnect and disconnect repos from the dashboard — see Connect GitHub.