Installation & Environment
CastClaw is installed via npm and requires Bun, Python, and uv at runtime. Prepare the runtime first, then launch the CLI for a quick smoke test.
Prerequisites: Bun ≥ 1.3.11, Python ≥ 3.10, uv, and at least one LLM API key.
| Dependency | Version | Purpose |
|---|---|---|
| Bun | ≥ 1.3.11 | Runtime and package manager |
| Python | ≥ 3.10 | ML backend for forecasting models |
| uv | Latest | Python dependency management |
| GPU (optional) | CUDA 12.8 | Deep learning acceleration |
| Ascend NPU (optional)Recommended | Atlas 800 A2/A3 (Ascend HDK 25.5.1) | Huawei Ascend acceleration for deep learning. Recommended if you want to try domestic compute infrastructure. |
# Install the CastClaw CLI
npm install -g castclaw
# Verify the base runtime
castclaw --version
python --version
uv --version
# Sync Python backend dependencies
cd python && uv syncYou can configure your LLM through environment variables or castclaw.json. Either approach works:
export ANTHROPIC_API_KEY=your_key_here
export OPENAI_API_KEY=your_key_here
export DEEPSEEK_API_KEY=your_key_hereFor your first run, connect only one provider you already know well. Avoid debugging several API stacks at the same time.