Prerequisites
You need:- A Fireblocks API key — obtained from the Fireblocks Console under Developer Center > API Users
- An RSA private key — the
.keyfile generated when creating the API user
Credential Resolution Order
The CLI resolves credentials in priority order:- CLI flags —
--api-keyand--secret-keypassed directly on the command line - Environment variables —
FIREBLOCKS_API_KEYandFIREBLOCKS_SECRET_KEY(orFIREBLOCKS_SECRET_KEY_PATH) - Config file profile — stored in
~/.config/fireblocks/config.json
Interactive Setup
The easiest way to configure credentials is the interactiveconfigure command:
~/.config/fireblocks/config.json with file permissions 0600.
To configure a named profile:
Config File Format
Environment Variables
For CI/CD pipelines and non-interactive environments, set credentials as environment variables:CLI Flags
Pass credentials directly on the command line to override environment variables and the config file:--secret-key accepts either a file path or an inline PEM string.
Multiple Profiles
Use profiles to manage multiple workspaces or environments:API Base URL
The default base URL ishttps://api.fireblocks.io. Override it per command, in a profile, or via FIREBLOCKS_BASE_URL.
Verify Your Setup
Runwhoami to confirm credentials are configured correctly and that the API key can authenticate:
GET /v1/users/me and returns the masked API key, base URL, and user details on success.
To preview the resolved auth context without making a network call: