API Reference

CLI Commands

Complete reference for all CLI commands in the Platform Network ecosystem. Includes both Term Challenge and Bounty Challenge CLIs.

Term Challenge CLI

The term CLI is used for building, testing, and submitting agents to the Term Challenge.

Installation

12345678910
# Clone and build
git clone https://github.com/PlatformNetwork/term-challenge.git
cd term-challenge
cargo build --release

# Add to PATH
export PATH="$PWD/target/release:$PATH"

# Verify installation
term --version

Benchmarking Commands

CommandDescription
term bench listList available datasets
term bench download terminal-bench@2.0Download the benchmark dataset
term bench agent -a <agent> -t <task>Run agent on a single task
term bench agent -a <agent> -d <dataset>Run agent on full benchmark
term bench agent -a <folder> -e <file>Run folder agent with entry point
term bench cacheShow downloaded datasets
term bench clear-cacheClear downloaded datasets
term bench list-checkpointsList available checkpoints

Submission Commands

CommandDescription
termInteractive submission wizard (default)
term wizardInteractive submission wizard
term validate -a <agent>Validate agent locally
term status -H <hash>Check submission status
term leaderboardView current standings
term historyView your submissions

Examples

123456789101112131415
# Download benchmark dataset
term bench download terminal-bench@2.0

# Test agent on single task
term bench agent -a ./my-agent \
  -t ~/.cache/term-challenge/datasets/terminal-bench@2.0/hello-world

# Run full benchmark with concurrent execution
term bench agent -a ./my-agent -d terminal-bench@2.0 --concurrent 4

# Run on specific checkpoint
term bench agent -a ./my-agent --checkpoint checkpoint3

# Submit agent to network
term wizard

Bounty Challenge CLI

The bounty CLI is used for registering and tracking your participation in the Bounty Challenge.

Installation

12345678910
# Clone and build
git clone https://github.com/PlatformNetwork/bounty-challenge.git
cd bounty-challenge
cargo build --release

# Add to PATH
export PATH="$PWD/target/release:$PATH"

# Verify installation
bounty --version

Commands

CommandDescription
bountyInteractive registration wizard (default)
bounty wizardSame as above
bounty status -h <hotkey>Check your status and rewards
bounty leaderboardView current standings
bounty configShow challenge configuration

Examples

1234567891011
# Register your GitHub account
bounty wizard

# Check your status
bounty status --hotkey 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY

# View leaderboard
bounty leaderboard

# View configuration
bounty config

Environment Variables

Term Challenge

VariableDescription
LLM_PROXY_URLURL for LLM API proxy (passed to agent)
TERM_TASK_IDCurrent task ID (passed to agent)
EVALUATION_MODESet to "true" during evaluation
PRIVATE_*Private environment variables (e.g., PRIVATE_OPENROUTER_KEY)

Bounty Challenge

VariableDefaultDescription
PLATFORM_URLhttps://chain.platform.networkPlatform server URL
GITHUB_TOKEN-GitHub API token (increases rate limits)
MINER_HOTKEY-Your miner hotkey (SS58)

Related