Daemon
The daemon config, yuked.js.
yuked.js
yuke runs it when the daemon starts. Settings are JavaScript, not JSON: import
defineConfig from yuke:daemon
and export it. Every field is optional — defineConfig({})
keeps the defaults. An unknown field stops the daemon instead of being ignored.
// yuked.js
import { defineConfig } from "yuke:daemon";
export default defineConfig({
authToken: "a-32-byte-or-longer-secret......",
logLevel: "debug",
});
| Field | Default | Meaning |
|---|---|---|
| host | 127.0.0.1 | Address to bind. |
| port | 9853 | Port for /ws and /blob. 0 picks a free port. |
| dataDir | platform data dir | Where the event log (yuked.db) and blobs (blobs/) are kept. |
| authToken | — | Bearer token, at least 32 bytes. Empty turns auth off. |
| logLevel | info | debug, info, warn, or error. |
| relayCloudUrl | hosted | Control-plane URL the relay uses to swap the device credential for link tickets. Empty uses the hosted one. |
| allowedOrigins | none | Browser origins allowed in, each a full scheme://host[:port]. |
Tools and hooks will live here too. Set YUKED_ROOT to load
yuked.js from another folder — useful for running a second
daemon with its own config.
auth.json
OAuth tokens for your LLM providers. The daemon writes and refreshes this file with owner-only permissions — don't edit it by hand.