clawft

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 | iex

See the installation guide for Docker, cargo, npm, and source builds.

Verify:

weft --version

Initialize a Project

Navigate to any project directory and run weftos init:

cd ~/my-project
weftos init

This creates two things:

  1. weave.toml -- project configuration (tick rate, sources, embedding, governance, mesh settings). See the configuration reference for all fields.

  2. .weftos/ -- runtime state directory containing:

    • chain/ -- local chain checkpoints
    • tree/ -- resource tree state
    • logs/ -- kernel logs
    • artifacts/ -- 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 --force

Boot the Kernel

weftos boot

Output:

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 status

Output 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 restart

Build 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-sandbox

See 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

On this page