Built for engineers.
Open to agents.
One transactional domain service, exposed as CLI, JSON-RPC, SSE, MCP and ACP. Every button you click in the console can be done in code — or by another agent.
Four steps from zero to a company.
- 01
Install
Grab the single binary with one command.
curl -fsSL https://kernuq.com/install.sh | shcurl -fsSL https://kernuq.com/install.sh | shirm https://kernuq.com/install.ps1 | iex - 02
Probe
Check the host, storage and kernel version.
zsh$ kernuq probe --json - 03
Dry-run & import
Validate with --dry-run, then write to the SQLite source of truth.
zsh$ kernuq validate --config kernuq.yaml --dry-run --json $ kernuq import --config kernuq.yaml --db ~/.kernuq/data/kernuq.db - 04
Serve
Daemon + embedded console, loopback-only by default.
zsh$ kernuq serve --config kernuq.yaml --ui # → http://127.0.0.1:7680
Six surfaces. One kernel.
Command line
Manual, schemas, validation, import/export, daemon.
JSON-RPC 2.0Unified gateway
POST /rpc — 18 namespaces cover the whole control plane.
SSELive events
/events/sse streams KIEP events and entity mutations.
MCPMCP server
stdio and /mcp/v1 Streamable HTTP with four scoped profiles.
ACPAgent host bridge
agent-host mounts Claude Code / Codex on any machine as a node.
SCHEMAFormal contracts
8 JSON Schemas define rotors, topologies, compute and UI.
An agent-first command line.
Every command speaks --json; every write supports --dry-run to preview the diff.
| Command | Purpose |
|---|---|
kernuq manual [topic] | Progressive agent-first manual |
kernuq schema <kind> | Print the formal JSON Schema |
kernuq skill-export [--dir] | Export an Agent Skills SKILL.md |
kernuq probe [--json] | Host & kernel probe |
kernuq validate --config <f> --dry-run | Dry-run validate a config |
kernuq import --config <f> --db <db> | Import seeds into the SQLite SSoT |
kernuq export --db <db> --dir <out> | Export a GitOps bundle |
kernuq serve --config <f> --ui | Run the daemon + console on :7680 |
kernuq mcp-serve --profile builder | Run as an MCP server |
kernuq agent-host --wrap claude | Bridge a local CLI agent as an ACP node |
Formal JSON Schemas.
Language-agnostic KSP v1.0 contracts. Print them locally with kernuq schema <kind>, or fetch them from the edge API.
Any language, a few lines.
// TypeScript · Node 18+ / Deno / Bun / 浏览器
const rpc = async <T>(method: string, params: object = {}): Promise<T> => {
const res = await fetch('http://127.0.0.1:7680/rpc', {
method: 'POST',
headers: {
'content-type': 'application/json',
authorization: `Bearer ${process.env.KERNUQ_TOKEN}`,
},
body: JSON.stringify({ jsonrpc: '2.0', id: crypto.randomUUID(), method, params }),
})
const { result, error } = await res.json()
if (error) throw new Error(`[${error.code}] ${error.message}`)
return result as T
}
const probe = await rpc('system.probe')
const events = new EventSource('http://127.0.0.1:7680/events/sse')
events.addEventListener('kiep', (e) => console.log(JSON.parse(e.data)))// Go 1.22+
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
body, _ := json.Marshal(map[string]any{
"jsonrpc": "2.0", "id": 1, "method": "harness.list",
"params": map[string]any{"owner_unit_uri": "org://unit/group_hq"},
})
req, _ := http.NewRequest("POST", "http://127.0.0.1:7680/rpc", bytes.NewReader(body))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("KERNUQ_TOKEN"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
var out struct {
Result json.RawMessage `json:"result"`
Error *struct{ Code int; Message string } `json:"error"`
}
_ = json.NewDecoder(res.Body).Decode(&out)
fmt.Println(string(out.Result))
}# Python 3.9+
import os, json, urllib.request
def rpc(method, **params):
req = urllib.request.Request(
"http://127.0.0.1:7680/rpc",
data=json.dumps({"jsonrpc": "2.0", "id": 1, "method": method, "params": params}).encode(),
headers={
"Content-Type": "application/json",
"Authorization": f"Bearer {os.environ['KERNUQ_TOKEN']}",
},
)
body = json.load(urllib.request.urlopen(req))
if "error" in body:
raise RuntimeError(body["error"])
return body["result"]
print(rpc("agent.spawn_and_run",
harness_uri="harness://ops/log-analyzer",
input="Summarize 5xx errors in the last 24h"))Spin up
your first rotor.
One command. Zero dependencies, one file — and your machine runs a company staffed by humans and MicroAgents.