โ๏ธ KoRT-Code
A sovereign AI coding terminal built for power users. Routes through the KoRT Gatekeeper's multi-model pipeline โ Flash pre-processor, heavy lifter, reviewer โ all on your own infrastructure.
Sovereign Infrastructure Stack
Quick Start Guide
โ๏ธ KoRT-Code Setup
Prerequisites
Install Node.js 20+, Python 3.11+, Docker, and git. All modern Linux distros and macOS work. Windows via WSL2.
Clone & Configure
Run git clone https://git.kortx.ca/kort-code and copy config/global/opencode.json to ~/.config/opencode/config.json.
Start Gatekeeper First
KoRT-Code connects to Gatekeeper on :8095. Run python gatekeeper/main.py or docker-compose up gatekeeper first.
Launch KoRT-Code
Run bash scripts/deploy-all.sh or npm install -g opencode-ai && opencode. Web UI opens on http://localhost:4096.
๐ฎ Gatekeeper + Lady of the Lake
Install Dependencies
In gatekeeper/: pip install fastapi uvicorn httpx pydantic. Or use the included requirements.txt.
Start Gatekeeper
Run python main.py. Gatekeeper starts on :8095 with the full 3-stage pipeline. Check /health and /v1/pipeline/status.
Seed the SOP Library
In gatekeeper-offline/: python lady_of_the_lake.py seed. Loads 5 proven SOPs covering timeouts, rate limits, deps, permissions, networking.
Run a Learning Cycle
After some usage: python lady_of_the_lake.py cycle. Analyzes failures, generates new SOPs, suggests routing improvements, expires stale memories.