๐ Installation Guide
This guide walks you through preparing your environment, installing the @jango-blockchained/hoox-cli tool, cloning the microservices monorepo recursively, and validating your local system prerequisites.
๐ System Prerequisites
Before installing the Hoox command-line workspace, ensure your system meets the following standard software requirements:
1. ๐ง Bun JavaScript Runtime (Version โฅ 1.2)
Hoox uses Bun as its primary package manager, script runner, and native testing engine. Bunโs blazing-fast startup time and zero-config TypeScript compilation are critical to our local developer feedback loops.
- macOS / Linux:
curl -fsSL https://bun.sh | bash - Windows (via Powershell):
powershell -c "irm https://bun.sh/install.ps1 | iex"
2. โก Cloudflare Account & Wrangler CLI
All Hoox workers are compiled to run on Cloudflareโs Edge V8 isolates. You will need a free Cloudflare account:
- Account: Register a free account (the free tier provides 100,000 requests/day, D1 database, KV storage, Queues, R2, and vector searchโcosting $0/month).
- Cloudflare CLI: Ensure you have
wranglerinstalled globally (though Hoox manages local wrangler operations automatically, having it indexed globally is recommended):bun add -g wrangler
3. ๐ณ Docker & Docker Compose (Optional)
If you prefer running the entire Hoox local trading workspace in fully isolated container environments with one command, ensure you have Docker Desktop installed and running:
- Check status:
docker compose version
๐ฆ Option A: Install via Package Manager (Recommended)
To install the global management CLI tool directly from npm/bun registry to manage new workspaces:
# Install globally using Bun
bun add -g @jango-blockchained/hoox-cli
Once installed, verify that the hoox command is registered globally in your system path:
hoox --version
๐ ๏ธ Option B: Build & Run from Source
If you plan to contribute to the Hoox CLI packages or prefer working directly inside a monolithic source clone:
# 1. Clone the parent repository with git submodules recursively
git clone --recursive https://github.com/jango-blockchained/hoox-setup.git hoox-trading
cd hoox-trading
# 2. Install all monorepo workspace dependencies via Bun
bun install
# 3. Verify the locally linked CLI runs from root
bun run build:cli
./packages/cli/bin/hoox.js --help
Warning: You MUST use
git clone --recursiveor rungit submodule update --init --recursiveafter cloning. If you omit submodules, the worker directories underworkers/will be empty and deployments will fail.
๐ Bootstrapping Your Trading Workspace
Now, initialize your new algorithmic trading workspace. This compiles directories, configures workspace settings, and sets up Git tracking.
# Bootstrap your trading folder
hoox clone my-trading-empire
cd my-trading-empire
This command automatically structures your directories as a clean monorepo:
my-trading-empire/
โโโ packages/
โ โโโ cli/ # Workspace CLI management binaries
โ โโโ tui/ # 9-view Terminal UI monitoring cockpit
โ โโโ shared/ # Reusable routers, rate-limiters, & errors
โโโ workers/
โ โโโ hoox/ # Gateway, rate-limiter, DO idempotency lock
โ โโโ trade-worker/ # Multi-exchange execution engine
โ โโโ ... # Other analytical and web3 wallet workers
โโโ package.json
๐ช Running the Interactive Setup Wizard
With your folder structured, execute the interactive bootstrap wizard:
hoox init
The CLI wizard will guide you through 4 critical setup phases:
- Toolchain Validation: Probes your machine for
bun,git,wrangler, anddockerconfigurations. - Cloudflare Authentication: Prompts for your Cloudflare API token (with
Account.D1,Account.KV,Account.Workerspermissions) and Account ID. - Microservice Profile Selection: Lets you declaratively toggle which edge workers to enable (e.g., enable Gateway and Trade Worker, disable Web3 Wallet if you only trade centralized exchanges).
- Local Credentials Encryption: Generates safe local
.dev.varsmatrices and sets up initial KV configuration structures.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ hoox Setup & Initialization โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ bun (v1.2.1) found โ
โ โ wrangler (v3.50.0) found โ
โ โ git found โ
โ โ Cloudflare Credentials Verified โ
โ โ
โ Enable central Gateway Worker? [Y/n]: y โ
โ Enable Multi-Exchange trade-worker? [Y/n]: y โ
โ Enable agent-worker AI Risk Manager? [Y/n]: y โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Verifying Local Prerequisites
Verify that all dependencies and Cloudflare edge routes are accessible:
# Perform detailed pre-flight diagnostic checklist
hoox check prerequisites
If all diagnostic checks pass, you are ready to proceed with configuration!
Tip: Got installation issues? Run
hoox repair checkto automatically analyze common path resolution issues, missing environment variables, or node-gyp build failures, and recover your local workspace seamlessly.
๐ Next Steps
- Configuration Matrix โ Map out your 31-key environment variables and 16-key KV registries.
- 5-Minute Quick Start Guide โ Execute your first simulated edge trade in under 5 minutes.