Skip to main content

Introduction

KhunQuant is an ultra-lightweight personal AI assistant written in Go. It connects to your exchange and broker accounts and lets you manage your entire investment portfolio through natural language — via Telegram, LINE, Discord, or any supported chat platform.

What is KhunQuant?

KhunQuant runs entirely on your own machine. Ask it to check your balances, analyse market data, place orders, or run scheduled tasks. It supports 25+ LLM providers and 16 chat platforms without rewriting the agent core.

Architecture overview

Exchange support

ExchangeType
BinanceCrypto (global)
BinanceTHCrypto (Thailand)
BitkubCrypto (Thailand)
OKXCrypto (global)
SettradeThai equities (SET)

Dollar Cost Averaging (DCA)

KhunQuant includes a built-in DCA engine with indicator-based execution gates.

  • Create automated investment plans with cron scheduling
  • Gate execution on technical conditions (RSI, MACD, Bollinger Bands, etc.)
  • Track PnL with VWAP average cost and unrealized gain/loss metrics
  • 7 DCA tools: create, update, delete, list, execute, summary, history

Credential security

API keys and tokens are stored with AES-256-GCM encryption. Keys are derived using HKDF-SHA256 with a dual-factor input: your SSH key + a passphrase. Credentials never leave your device.

Supported platforms (build targets)

linux/amd64 · linux/arm · linux/arm64 · linux/mips · linux/riscv64 · darwin · windows

Requirements

RequirementMinimum
OSmacOS 12+, Ubuntu 20.04+, Windows (WSL2)
RAM100 MB free
Disk500 MB
Go1.22+ (for building from source)
info

Pre-built binaries are available for macOS (Apple Silicon & Intel), Linux (amd64 / arm / arm64 / mips / riscv64), and Windows (WSL2).

Acknowledgements

KhunQuant is a fork of PicoClaw, an open-source project maintained by the Sipeed team. We are grateful for their continued work on the upstream codebase that KhunQuant builds upon.

If you find KhunQuant useful, consider checking out picoclaw.io — the product built and maintained by the original PicoClaw team.

Design philosophy

Everything is pluggable. The agent core does not know what LLM it is talking to or what chat app it is receiving messages from. Providers and channels are registered at startup and swapped via config — no code changes required.

Local-only data processing is a first-class design constraint. This makes KhunQuant PDPA-compliant by architecture, not policy — your investment data never leaves your device.