Experimental features
Some of what a Keg node has is still being tried. Each such feature is off until a person turns it on, and off means off everywhere: the node refuses its requests, whoever sends them, leaves its tools out of what the assistant and a connected chat app are offered, runs none of its doors or loops, and keg --help, the console and the Mac app leave out its commands and pages.
keg settings experimental # each feature, whether it is on, what is rough about it
keg settings experimental on accounts # turn one on: a person's to do
keg settings experimental off accounts # turn it off: what it made is kept
keg settings experimental on all # every one, each after what it needs; `off all` turns every one off
The console has them on its Keg services page, under Experimental features, with Turn all on…; the Mac app in Settings, under Experimental, with All Experimental Features at the top. An agent can read which are on (keg agents says which are off) but cannot turn one on.
A refusal of one that is off says so, the same everywhere:
accounts is experimental and off on this node: a person turns it on with `keg settings experimental on accounts` or in Settings › Experimental
The features
| Name | What it is | Needs |
|---|---|---|
accounts |
Sign in to a Keg account in a browser (keg account login, or Sign In in the Mac app's settings), ask who is signed in (keg account whoami) and sign out. The node checks the sign-in itself, keeps who its owner is, and is listed with the account's other nodes at cloud.runkeg.com, which it tells every five minutes that it is there (its name, version and how many containers it has; nothing of what they are). The console and the Mac app show who is signed in. An account is optional, and nothing is allowed or refused by it yet. Also keg cloud new [NAME] and keg cloud rm NAME, which make and remove an instance of your own at Keg Cloud where it has turned that on for the account; keg cloud ls and keg cloud connect NAME, for an instance Keg Cloud runs for the account, whose way in is good for a week and asked for again by keg up; and keg cloud adopt, by which a node made for an account takes its owner once. See KEG-CLOUD.md. |
Not experimental, and always on: the vault itself (entries, and grants to an app's or a work's service, since 0.13.0), Keg's own model gateway that the assistant, works and apps use, and Chat Completions at a work's door.
keg settings experimental says what is known to be rough about each, and the release it came in.
Part of Keg since 0.15.14
These were experimental and are not: they are on on every node from 0.15.14, with nothing to turn, and their commands, pages and tools are there for everyone. None of them does anything until it is used: a door answers once it is given a name, mail once an app has an address, a service is public only where its definition says so.
| Name | What it is |
|---|---|
workspaces |
Workspaces: lasting, walled machines to build in |
door |
The connector door, for ChatGPT, Claude or Grok |
previews |
Previews of what a workspace serves |
workspace-git |
Git remotes, pushes and a project in a workspace |
ssh-door |
The SSH door to a workspace |
setup-server |
keg setup server's checklist |
model-gateway |
Model providers of your own, OpenAI- and Anthropic-shaped endpoints at an app's and a work's door, and the model for a workspace |
vault |
The vault's uses for what you run by hand: keg run --secret, a Compose file's external secrets, a build's secrets, keg login, and keg vault show, export, import, stale and restart |
mail |
Mail in, to an app's addresses |
mail-verdict |
A verdict on each mailed message's sender (SPF, DKIM, DMARC), written with its event |
hooks |
Webhooks in, to an app |
org-tools |
An organisation's own tools, run walled for it |
member-roles |
A member of an app's organisation holds more than one role, as an administrator grants them |
app-check |
keg app check: a person runs a project's check, with a database and a fake model of its own, outside a piece of work |
self-host |
A list of open source apps to run on your own node (Vaultwarden, AFFiNE, Memos and four more to begin with), each installed with one press and opened at a name of its own. Registries add more; a recipe of your own is installed the same way. keg selfhost, and Self-host in the Mac app and the console (Containers mode). See SELF-HOST.md. |
public-services |
A service whose definition says public: true under run is answered to the world over HTTPS at a name of its own under the node's public name (https://SERVICE.<node's name>), from its deploy there until a deploy that no longer says so. Only on a node started with --public-domain. New in 0.15.11: the name gains its environment's if another has it and only the node's log says so; there is no sign-in in front of it, and whoever can deploy to the node can make a service public |
remote-builds |
keg up to an environment on another node whose processor is not this one's (an Apple silicon Mac to an x86 server) sends the folder there, and that node builds it and deploys it: the same command, the same keg.yaml. What the folder's .dockerignore leaves out is not sent. With the same processor it is built here and the image sent, as before. On at both nodes. |
One exception: a node where a person had turned one of them off keeps it off. Becoming part of Keg does not turn back on what someone turned off (a door they shut, a service they took back from the world, roles they withdrew by turning member roles off). It stays in that node's keg settings experimental list, off, until a person turns it on; then it is part of Keg there as anywhere.
keg settings experimental on NAME for one of these says it is part of Keg, and changes nothing, so that a script or an instance's first start written for an earlier release goes on working; off is refused. A node before 0.15.14 still lists them, each off until turned on there, and the command line, the console and the Mac app go by what the node says.
Two more were experimental and are now ordinary settings, each off until a person turns it on and kept as each node had it: how a Mac's VM sleeps.
keg settings sleep # both, and whether each is on
keg settings sleep quiet on # the VM sleeps while its containers are quiet
keg settings sleep deep on # the VM is powered off while nothing runs
- quiet (was
quiet-sleep): the VM sleeps after its idle minute even with containers running, when none has used the processor in that minute; a connection to any of them wakes it. A container that does something on a timer of its own does it late. - deep (was
deep-sleep): the VM is powered off after its idle minute when nothing runs at all, and holds none of the Mac's memory; the next command starts it again in about a quarter of a second. What was only in its memory is gone at the next start.
They are in the Mac app's Settings, under General, and on the console's Keg services page. GET and PUT /v1/system/settings carry them as quiet_sleep and deep_sleep.
Turning one on and off
- Turned off, a feature stops and keeps what it made. Turned on again, it is as it was.
- A feature that needs another is turned on only once that one is, and turning one off turns off what needs it too, and says so.
How a feature stops being experimental
Every new feature is experimental from its first commit, and graduates in the release after the one it came in, once it has had real use and has no flaky tests: it is taken out of the list in crates/kegd/src/experimental.rs (and its commands and pages out of the lists in crates/keg/src/experimental.rs, the console and the Mac app). A feature that is not fully tested, or has a flaky test, stays experimental whatever its age. Each release's notes say what is experimental and what graduated.
Keg's documentation. Something wrong or missing? Say so.