# GearTrade MCP Server Configuration
# Copy this file to .env and fill in your values
# ============================================
# MEM0 MEMORY API (Required for memory features)
# ============================================
# Get your API key from https://app.mem0.ai
MEM0_API_KEY=
# ============================================
# Hyperliquid Trading Configuration
# ============================================
# API Wallet Private Key (from your Hyperliquid API wallet)
# This is the private key of the agent/API wallet you created on Hyperliquid
# Format: 0x followed by 64 hex characters (total 66 characters)
#
# Example Private Keys (DO NOT USE - for format reference only):
# 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
#
AGENT_WALLET_PRIVATE_KEY=0x_your_api_wallet_private_key_64_hex_chars
# Main Wallet Address (your primary Hyperliquid account)
# This is the public address of your main trading account
# Format: 0x followed by 40 hex characters (total 42 characters)
# Example: 0x1234567890abcdef1234567890abcdef12345678
MAIN_WALLET_ADDRESS=0x_your_main_wallet_address_40_hex_chars
# ============================================
# TESTNET vs MAINNET Configuration
# ============================================
# IMPORTANT: This env is NOT used by trading tools!
# Trading tools use "isTestnet" and "confirmMainnet" parameters instead.
#
# Use testnet instead of mainnet for the default API calls
# Set to 'true' to use testnet (https://api.hyperliquid-testnet.xyz)
# Set to 'false' to use mainnet (https://api.hyperliquid.xyz)
HYPERLIQUID_TESTNET=true
# HOW TO SWITCH BETWEEN TESTNET AND MAINNET:
# ─────────────────────────────────────────────────────────────
# Each trading tool has these parameters:
#
# For TESTNET (safe, fake money):
# - isTestnet: "true"
# - confirmMainnet: "" (empty or omit)
#
# For MAINNET (REAL MONEY - be careful!):
# - isTestnet: "false"
# - confirmMainnet: "true" (REQUIRED for safety confirmation)
#
# Example Testnet Call:
# hyperliquid_testnet_futures_trade({
# symbol: "BTC",
# side: "buy",
# sizeInUsd: "100",
# isTestnet: "true" // Uses fake money
# })
#
# Example Mainnet Call (REAL MONEY):
# hyperliquid_mainnet_futures_trade({
# symbol: "BTC",
# side: "buy",
# sizeInUsd: "100",
# isTestnet: "false",
# confirmMainnet: "true" // REQUIRED confirmation
# })
#
# MAINNET SAFETY CHECKS:
# ✓ Minimum order: $10
# ✓ Max position size: 25% of account equity
# ✓ Asset whitelist enforced
# ✓ Requires explicit confirmMainnet: true
# ─────────────────────────────────────────────────────────────
# Enable verbose logging
VERBOSE_LOGGING=true
# ============================================
# RPC Configuration (DRPC) - For Deposit/Withdraw
# ============================================
# Arbitrum RPC endpoint (for L1 bridge operations)
# Get your DRPC key from https://drpc.org
# Testnet uses Arbitrum Sepolia, Mainnet uses Arbitrum One
ARBITRUM_RPC_URL=https://arbitrum.drpc.org
ARBITRUM_TESTNET_RPC_URL=https://arbitrum-sepolia.drpc.org
# Optional: DRPC API Key for higher rate limits
# Format: dkey_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DRPC_API_KEY=
# Hyperliquid RPC endpoint (required for spot trading)
# Use DRPC for better reliability (requires DRPC_API_KEY)
HYPERLIQUID_RPC_URL=https://lb.drpc.org/ogrpc?network=hyperliquid
HYPERLIQUID_TESTNET_RPC_URL=https://lb.drpc.org/ogrpc?network=hyperliquid-testnet
# Or use default Hyperliquid endpoints
# HYPERLIQUID_RPC_URL=https://api.hyperliquid.xyz
# HYPERLIQUID_TESTNET_RPC_URL=https://api.hyperliquid-testnet.xyz