Environment variables¶
Check here when you deploy a server or debug a run. It lists every variable that oryva, the
generated SDKs and the MCP server read. <NAME> is the API's name in upper snake case, such as
LEDGER.
| Variable | Read by | Meaning |
|---|---|---|
ORYVA_KEY |
oryva |
The oryva key. Wins over key_file in oryva.yml. See oryva keys. |
GITHUB_ACTIONS, GITHUB_REPOSITORY_OWNER |
oryva |
Set by GitHub Actions. When GITHUB_ACTIONS is true, a key issued for GitHub organizations works only if GITHUB_REPOSITORY_OWNER is one of them. See oryva keys. |
ANTHROPIC_API_KEY |
oryva eval |
Runs the tasks. Lint only needs no key. |
ANTHROPIC_AUTH_TOKEN |
oryva eval |
A bearer token, used when ANTHROPIC_API_KEY is not set. |
ANTHROPIC_BASE_URL |
oryva eval |
The Anthropic API's URL. Default: https://api.anthropic.com. |
<NAME>_API_KEY, and the other credential variables |
SDKs, MCP server | The API's credentials, one variable per credential. Naming lists them; x-oryva-env and credentials in oryva.yml rename them. |
<NAME>_BASE_URL |
SDKs, MCP server | Call another host instead of the default environment's. |
<NAME>_LOG |
SDKs | debug logs every request, with credentials redacted. |
<NAME>_WEBHOOK_SECRET |
SDKs | The secret that client.webhooks.unwrap checks signatures with. |
<NAME>_MCP_OUTPUT_DIR |
MCP server | Where tools write binary responses. Default: a temporary directory. |
ORYVA_GATEWAY_SECRET |
hosted server | At least 32 random characters, the same on every instance. Seals registrations, codes and tokens; changing it signs everyone out. Secret. |
ORYVA_GATEWAY_URL |
hosted server | The public URL, without a path; https unless it is localhost. Clients connect to it with /mcp added. |
ORYVA_GATEWAY_CONNECT_URL |
hosted server | With connect: the connect page, when it is not connect.url. Empty: people paste their credential instead. |
PORT |
hosted server | The port serve listens on when --port is not given. Default: 8000, and 8080 in the Docker image. |
SLACK_SIGNING_SECRET |
Slack app | Checks that requests come from Slack. Secret. |
SLACK_CLIENT_ID, SLACK_CLIENT_SECRET |
Slack app | The app's credentials, for Sign in with Slack and /slack/install. The secret is secret. |
SLACK_BOT_TOKEN |
Slack app | The bot token (xoxb-...) of a workspace the app runs in without /slack/install. Secret. |
SLACK_APP_TOKEN |
Slack app | An app-level token (xapp-...) with connections:write: Socket Mode, with no public URL, instead of SLACK_SIGNING_SECRET. Secret. |
SLACK_API_URL |
Slack app | The Slack Web API. Default: https://slack.com/api/. |
ORYVA_CHAT_DB |
Slack app, setup-gcp.sh |
The app's database: a SQLite file (default ./oryva-chat.db) or a Postgres URL that several instances share. For setup-gcp.sh, a Postgres URL used instead of a new Cloud SQL instance. |
ORYVA_CHAT_MODEL |
Slack app | The Claude model that answers DMs. Default: claude-opus-5-5. |
ANTHROPIC_API_KEY |
Slack app, setup-gcp.sh |
With ask: for Claude. setup-gcp.sh asks for it when it is not set. Secret. |
SLACK_CONFIG_TOKEN |
setup-gcp.sh |
A Slack app configuration token. The script then creates or updates the Slack app from its manifest. |
In an oryva eval task file, ${VAR} and ${VAR:-default} in the server section read any
variable from your environment.