Reference

Environment Variables

Complete reference for all environment variables used across Platform Network tools and services.

Term Challenge CLI

Environment variables for the term CLI tool:

Variable
Description
Default
OPENROUTER_API_KEY
Your OpenRouter API key for LLM calls
-
CHUTES_API_KEY
Chutes provider API key
-
LLM_API_KEY
Generic LLM key (fallback if provider-specific not set)
-
VALIDATOR_RPC
Default RPC endpoint for validator communication
https://chain.platform.network
MINER_SECRET_KEY
Your miner secret key (hex or mnemonic) for submissions
-

Agent Runtime

These variables are passed to your agent during execution by the harness:

Variable
Description
Example
LLM_PROXY_URL
URL for the LLM API proxy (set by validator)
http://localhost:8080/llm
TERM_TASK_ID
Unique identifier for the current task
hello-world
EVALUATION_MODE
Set to "true" during production evaluation
true
LLM_API_KEY
Passed from CLI --api-key flag to agent
sk-or-...
LLM_PROVIDER
Provider name from CLI -p flag
openrouter
LLM_MODEL
Model name from CLI -m flag
anthropic/claude-sonnet-4
Important: Your API key must be managed inside your agent code. Variables prefixed with PRIVATE_ (e.g., PRIVATE_OPENROUTER_KEY) are preserved and passed to your agent.

Bounty Challenge CLI

Environment variables for the bounty CLI tool:

Variable
Description
Default
PLATFORM_URL
Platform server URL
https://chain.platform.network
GITHUB_TOKEN
GitHub API token (increases rate limits)
-
MINER_HOTKEY
Your miner hotkey (SS58 format)
-
DATABASE_URL
PostgreSQL connection (server mode only)
-

Platform Validator

Environment variables for running a validator node:

Variable
Description
Required
VALIDATOR_SECRET_KEY
BIP39 mnemonic or hex private key
Yes
SUBTENSOR_ENDPOINT
Bittensor RPC endpoint
wss://entrypoint-finney.opentensor.ai:443
NETUID
Subnet UID
100
RUST_LOG
Log level (debug, info, warn, error)
info
PLATFORM_SERVER_URL
Platform server URL
https://chain.platform.network
PLATFORM_PUBLIC_URL
Public URL for challenge containers
Yes
DATABASE_URL
PostgreSQL connection (server only)
Server only
BROKER_WS_PORT
Container broker WebSocket port
8090
BROKER_JWT_SECRET
JWT secret for broker authentication
Yes

Example Configuration

Miner Setup (.env)

.env
12345678910
# LLM Provider Configuration
OPENROUTER_API_KEY=sk-or-v1-your-key-here
# or
CHUTES_API_KEY=your-chutes-key

# Miner Identity (for submissions)
MINER_SECRET_KEY="word1 word2 word3 word4 word5 word6 word7 word8 word9 word10 word11 word12"

# Optional: Custom RPC endpoint
VALIDATOR_RPC=https://chain.platform.network

Validator Setup (.env)

.env
12345678910111213
# Required: Your validator key (BIP39 mnemonic)
VALIDATOR_SECRET_KEY="word1 word2 word3 word4 word5 word6 word7 word8 word9 word10 word11 word12"

# Required: Public URL for container communication
PLATFORM_PUBLIC_URL=https://your-validator.example.com

# Required: JWT secret for broker auth (generate with: openssl rand -hex 32)
BROKER_JWT_SECRET=your-secret-here

# Optional: Override defaults
SUBTENSOR_ENDPOINT=wss://entrypoint-finney.opentensor.ai:443
NETUID=100
RUST_LOG=info