Khy OS — AI platform operating system with an extensible default app runtime
Project description
Khy OS
Khy OS is an AI platform CLI and runtime. The default built-in app is khyquant.
Positioning
khyis the primary Khy OS command (platform shell + app runtime).khyquantis the default upper-layer app/plugin compatibility command.- AI lite mode is explicit: use
khy ai ...(orkhy --lite ...).
Quick Start
python3 -m pip install -U khy-os
khy --help
khy doctor
khy app list
Development install:
python3 -m pip install -e .
Core Commands
khy app list
khy gateway status
khy linux status
khy server start
Explicit AI Lite Mode
khy ai "summarize this project status"
khy ai -p "only output JSON"
khy ai run qwen3.5:4b "hello"
# compatibility alias (kept for older scripts)
khy run qwen3.5:4b "hello"
OS Build Entry
bash scripts/build-khy-os.sh
Windows (Docker Desktop + PowerShell):
khy iso build --output dist/khy-os.iso
# equivalent source script:
# powershell -ExecutionPolicy Bypass -File scripts/alpine/build-iso-windows.ps1
Component mode:
bash scripts/build-khy-os.sh --component core --component vmware-plan
bash scripts/build-khy-os.sh --component moonbit --strict
WASM App Runtime
khy app register math --runtime wasm --wasm /abs/path/math.wasm --abi numeric-v1 --export add
khy app run math add 1 2
khy app register echo --runtime wasm --wasm /abs/path/echo.wasm --abi string-v2 --export run
khy app exports echo
khy app run echo hello khy os
khy app register score --runtime wasm --wasm /abs/path/score.wasm --abi json-v2 --export run
khy app run score --json '{"symbol":"AAPL","price":192.3,"rsi":63.2}'
# M1 IPC simulation (loopback netd/fsd/wmd)
khy app register weather --runtime wasm --wasm /abs/path/weather.wasm --abi json-v2 --export run --caps ipc,net
khy app ipc weather net http_get --json '{"city":"shanghai"}'
Required Environment
- Python >= 3.8
- Node.js >= 18
- Linux/macOS/Windows
Pip Distribution Boundary
- Prebuilt ISO/model artifacts are intentionally excluded from pip packages.
- You can build ISO locally after installation (
khy iso build ...). - You can download and register models on demand:
khy models pull qwen3.5:4b
khy models list
khy gateway model
See:
docs/architecture/CORE_ARCHITECTURE.mddocs/guides/ENV_REQUIREMENTS.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
khy_os-0.1.0.tar.gz
(7.1 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file khy_os-0.1.0.tar.gz.
File metadata
- Download URL: khy_os-0.1.0.tar.gz
- Upload date:
- Size: 7.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fa6728c622234ea8bb9c96b3205dfc7f229e40c3d12eac0223198c94ef682a0
|
|
| MD5 |
4ef3122f168b2e53c37ec0ebf404e9ea
|
|
| BLAKE2b-256 |
fb665d262ef65b4c63badb0258776eb4948127bb206e178680020759b741887e
|
File details
Details for the file khy_os-0.1.0-py3-none-any.whl.
File metadata
- Download URL: khy_os-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
092bff5ee17ab3d0070ebb75785275293aba9d3f68fe57f501aa6f47b66db73c
|
|
| MD5 |
034a52c444ea49757a18d608312d26b1
|
|
| BLAKE2b-256 |
15b5598f40ef80883ab44401f22d56dc46a5dec33345fd49b1646a6acdeb73b2
|