Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Environment Variables

All configuration can be set via environment variables, which take precedence over config files.

Authentication

VariableDescription
ZORA_API_KEYAPI key for higher rate limits. Overrides ~/.config/zora/config.json. Get one at zora.co/settings/developer.
ZORA_PRIVATE_KEYWallet private key (hex, with or without 0x prefix). Overrides ~/.config/zora/wallet.json.

Advanced

VariableDescription
ZORA_API_TARGETOverride the API base URL. Useful for local development or staging environments.
ZORA_NO_ANALYTICSSet to 1 to disable anonymous usage analytics.
DO_NOT_TRACKSet to 1 to disable analytics (standard convention).

Example: Agent Setup

# Full agent configuration — no interactive prompts needed
export ZORA_PRIVATE_KEY=0xabcdef1234567890...
export ZORA_API_KEY=your-api-key-here
export ZORA_NO_ANALYTICS=1

Example: .env File

# .env
ZORA_PRIVATE_KEY=0xabcdef1234567890...
ZORA_API_KEY=your-api-key-here
ZORA_NO_ANALYTICS=1

Load with your preferred tool:

# Node.js
node --env-file .env your-script.js
 
# Shell
source .env && npx @zoralabs/cli balance --json
 
# Docker
docker run --env-file .env your-agent

Precedence

Setting1st (highest)2nd3rd (lowest)
API KeyZORA_API_KEY env var~/.config/zora/config.jsonNone (rate-limited)
WalletZORA_PRIVATE_KEY env var~/.config/zora/wallet.jsonError (wallet required)