Quickstart
Get from zero to a running WeftOS kernel in a project directory.
WeftOS Quickstart
This guide gets you from zero to a running WeftOS kernel in a project directory.
Install
The fastest way to install WeftOS:
# macOS / Linux
curl -fsSL https://github.com/weave-logic-ai/weftos/releases/latest/download/clawft-cli-installer.sh | sh
# Or via Homebrew
brew install weave-logic-ai/tap/clawft-cli# Windows
irm https://github.com/weave-logic-ai/weftos/releases/latest/download/clawft-cli-installer.ps1 | iexSee the installation guide for Docker, cargo, npm, and source builds.
Verify:
weft --versionInitialize a Project
Navigate to any project directory and run weftos init:
cd ~/my-project
weftos initThis creates two things:
-
weave.toml-- project configuration (tick rate, sources, embedding, governance, mesh settings). See the configuration reference for all fields. -
.weftos/-- runtime state directory containing:chain/-- local chain checkpointstree/-- resource tree statelogs/-- kernel logsartifacts/-- build/analysis artifacts
The .weftos/ directory is automatically added to .gitignore if one exists.
If the project is already initialized, use --force to reinitialize:
weftos init --forceBoot the Kernel
weftos bootOutput:
Booting WeftOS in /home/user/my-project...
WeftOS running
State: Running
Services: 3
Processes: 0
Press Ctrl+C to stop.The kernel runs in the foreground. Press Ctrl+C for graceful shutdown.
Check Status
weftos statusOutput when initialized:
WeftOS initialized in current directory
Config: weave.toml
Runtime: .weftos/Kernel Management with weave
The weave CLI provides detailed kernel management:
# Start kernel as a background daemon
weave kernel start
# Start in foreground (blocking)
weave kernel start --foreground
# Check kernel state, uptime, process/service counts
weave kernel status
# List registered services
weave kernel services
# List process table entries
weave kernel ps
# Stream logs in real time
weave kernel attach
# Show recent log entries
weave kernel logs -n 50
# Stop the daemon
weave kernel stop
# Restart the daemon
weave kernel restartBuild with More Features
The default build includes only the native feature (process table, agent
supervision, IPC). For production use, enable additional subsystems:
# Single-node production: cognitive substrate + audit trail + self-healing
scripts/build.sh native --features ecc,exochain,os-patterns
# Multi-node: add mesh networking and clustering
scripts/build.sh native --features ecc,exochain,os-patterns,mesh,cluster
# Everything
scripts/build.sh native --features ecc,exochain,os-patterns,mesh,cluster,onnx-embeddings,wasm-sandboxSee the feature flags guide for the complete reference.
Project Structure After Init
my-project/
weave.toml # WeftOS configuration
.weftos/ # Runtime state (gitignored)
chain/ # Chain checkpoints
tree/ # Resource tree
logs/ # Kernel logs
artifacts/ # Analysis output
.gitignore # Updated with .weftos/ entry
... your code ...What Next
- Configuration Reference -- every
weave.tomlfield with types, defaults, and examples - Feature Flags -- compile-time feature flags across all crates
- Installation -- detailed installation (Docker, ONNX embeddings, debug builds)
- First Project -- step-by-step tutorial for your first WeftOS project
- Kernel Phases -- kernel phase architecture (K0-K6)
- Kernel Modules -- kernel module descriptions
- Architecture -- system architecture overview