Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/deniszidbaev-cmyk/polyclaw-trading/llms.txt

Use this file to discover all available pages before exploring further.

PolyClaw Trading supports four distinct installation paths depending on your operating system and preference for containerization. All paths share the same Python core (polyclaw_engine, openclaw_bot) and the same runtime/ JSON contract — you can switch between them without losing state. Choose the tab that matches your environment, then review the requirements section below for what each path needs before enabling live trading.
The native shell path uses Python 3.12+ and uv for dependency management. POSIX launchers under scripts/ and the root cron_run.sh handle scheduling and helper service startup.1. Install prerequisitesEnsure Python 3.12+ and uv are available on your PATH. The recommended way to install uv is via its official installer:
curl -LsSf https://astral.sh/uv/install.sh | sh
2. Clone and sync
git clone https://github.com/deniszidbaev-cmyk/polyclaw-trading.git
cd polyclaw-trading
uv sync
3. Configure the environment
cp .env.example .env.local
# Edit .env.local — fill in only what you need.
# Confirm LIVE_TRADING=0 before running anything.
4. Set shell permissionsThe cron runner and helper scripts require execute permission:
chmod +x cron_run.sh scripts/*.sh
5. Run the audit
uv run python scripts/run_pipeline.py audit
6. Run a dry-run pass
uv run python scripts/run_pipeline.py dry-run \
  --fixture tests/fixtures/btc_market.json
Scheduling with cron or launchdcron_run.sh uses the checkout directory by default. If you run it from cron or launchd outside the project directory, set OPENCLAW_WORKSPACE to the absolute path of your checkout:
# Example crontab entry (every 5 minutes)
*/5 * * * * OPENCLAW_WORKSPACE=/path/to/polyclaw-trading /path/to/polyclaw-trading/cron_run.sh dry-run
Optional helper scripts
./scripts/launch_openclaw_gateway.sh   # OpenClaw gateway
./scripts/launch_openclaw_tui.sh       # OpenClaw TUI
./scripts/launch_kilo_worker.sh        # Kilo worker loop

Requirements

Required for all modes

RequirementNotes
Python 3.12+Required by polyclaw_engine and openclaw_bot
uvDependency and virtual-environment manager (docs.astral.sh/uv)

Required for live trading only

RequirementNotes
Funded walletFund with only what you are prepared to lose; start with the minimum
PolyClaw CLIFrom chainstacklabs/polyclaw; path configured via POLYCLAW_PATH in .env.local
Rotated API keysPOLYMARKET_WALLET_ADDRESS, POLYCLAW_PRIVATE_KEY, and any LLM/data keys you intend to use
Manual wallet approvalThe PolyClaw wallet approval step must be completed before setting LIVE_TRADING=1

Optional

RequirementNotes
DockerRequired for the Docker Compose installation path
Xcode / Swift toolchainRequired for the native macOS Swift runner only
Telegram bot tokenTELEGRAM_BOT_TOKEN + TELEGRAM_CHAT_ID for trade/report notifications
LLM API keysOPENROUTER_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY — required only if you enable multi-role LLM orchestration
OpenClaw gatewayOPENCLAW_GATEWAY_URL + OPENCLAW_GATEWAY_TOKEN for the gateway-backed TUI and Kilo worker

Build docs developers (and LLMs) love