selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

the0 logo

Self-host the0

v1.21.0

Open-source algorithmic trading engine for self-hosted bots

ReleaseOpen SourceApache-2.0
Updated5 days ago
LanguageTypescript
Setup difficultyAdvanced
Stars
432
RAM
4GB
Storage
20GB
Ports
3000 (REST API), 3001 (Web dashboard), 3002 (Platform documentation)
Requires
MongoDB, NATS, PostgreSQL
Docker
ghcr.io/alexanderwanyoike/the0/runtime
Install with Docker Compose

What is the0?

An open-source platform for running algorithmic trading bots as production services. Developers implement strategies in seven supported languages using official SDKs. The system manages container isolation, cron or continuous scheduling, persistent state, structured logging with metrics, and a real-time web dashboard. A microservices architecture powers it: a NestJS API, Go runtime services, Next.js frontend, plus PostgreSQL, MongoDB, NATS, and S3-compatible storage. Deploy via Docker Compose for single hosts or Helm on Kubernetes for scale. A CLI manages the stack, and an MCP server lets AI assistants deploy and debug bots. Licensed Apache 2.0 from AlphaNeuron.

Should you self-host the0?

the0 scores 51/100 on selfhost.directory (how scoring works) and ranks #6 of 9 in Fintech. It has 432 GitHub stars.

It shipped 10 stable releases in the past year. The latest, v1.21.0, came out on 23 October 2026.

Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Typescript.

Its closest alternative on selfhost.directory is bitcoind (87/100, 90 527 stars). It scores higher overall, so compare the two before you pick. See the0 vs bitcoind side by side.

Features

  • CLI for deployment and management
  • Container isolation
  • Custom React frontends
  • Docker Compose Deployment
  • Live dashboard
  • MCP server for AI assistants
  • Migration guides for upgrades
  • Multi-language bot support
  • Persistent key-value state
  • Root admin bootstrap
  • Scheduled and realtime execution
  • Structured logs and metrics

the0 README

How to install the0

Install the0 with Docker Compose

Initialize and configure the local root admin

the0 local init --email [email protected] --password testuse123

Start all services

the0 local start

Requires Docker 20.10+ with Compose plugin, 4GB RAM, 20GB disk

How to configure the0

  • BOT_CPU_SHARES512Bot container CPU shares

    Bot container CPU shares

  • BOT_MEMORY_LIMIT_MB512Bot container memory limit in MB

    Bot container memory limit in MB

  • CHECK_INTERVAL10sBot scheduler check interval

    Bot scheduler check interval

  • JWT_EXPIRES_IN24hJWT token expiration

    JWT token expiration

  • JWT_SECRETJWT signing secret

    JWT signing secret

  • MINIO_ROOT_PASSWORDthe0passwordMinIO root password

    MinIO root password

  • MINIO_ROOT_USERthe0adminMinIO root username

    MinIO root username

  • NATS_URLnats://nats:4222NATS connection URL

    NATS connection URL

  • POSTGRES_DBthe0_ossPostgreSQL database name

    PostgreSQL database name

  • POSTGRES_PASSWORDthe0_passwordPostgreSQL password

    PostgreSQL password

  • POSTGRES_USERthe0PostgreSQL username

    PostgreSQL username

  • RECONCILE_INTERVAL30sBot runner reconciliation interval

    Bot runner reconciliation interval

  • SWAGGER_ENABLEDtrueEnable Swagger UI at /docs

    Enable Swagger UI at /docs

    values: true/false

  • THE0_ADMIN_EMAILRoot admin email

    Root admin email

  • THE0_ADMIN_PASSWORDRoot admin password

    Root admin password

the0 releases & version history

More in Fintech

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…