Panthra Shell Client

Install, configure, and trade with the Panthra API from any shell.

Install

Cross-platform one-liner. Installs to ~/.local/bin and updates ~/.profile.

curl -sSL https://raw.githubusercontent.com/Panthra-ai/panthra-shell-client/main/install-remote.sh | bash

Post-install

Apply PATH and verify.

source ~/.profile
panthra --version
which panthra

Configuration

Step 1: Get your API credentials from Panthra Platform → API Settings

Step 2: Configure using interactive setup (recommended) or environment variables

Option 1: Interactive Configuration

# Run interactive setup
panthra configure

# You will be prompted for:
# - API Key
# - API Secret
# (Base URL is automatically set to https://api.panthra.ai/v1)

# Credentials stored in ~/.panthra/credentials with secure permissions

Option 2: Environment Variables

export PANTHRA_API_KEY="your-api-key"
export PANTHRA_API_SECRET="your-api-secret"
export PANTHRA_BASE_URL="https://api.panthra.ai/v1"  # Optional

Step 3: Verify your configuration

# View current config (credentials masked)
panthra config

# Test connection
panthra balances USD --output table
panthra orders list --output table

Usage

Output formats: json (default) or table. CSV not supported.

# Orders
panthra orders list --output table
panthra orders create --symbol TSLA --side BUY --quantity 1 --type MARKET
panthra orders create --symbol AAPL --side BUY --quantity 100 --type LIMIT --price 150.50
panthra orders cancel <order-id>

# Positions
panthra positions list --output table
panthra positions list-all --output table

# Balances
panthra balances USD --output table
panthra balances get USD --output table

# Search & Quotes
panthra search META --output table
panthra quotes META USD --output table

Resources