Skip to content

Releases

Keg v0.15.7

Choose a tag to compare

@rahult rahult released this 30 Nov 20:47

Keg 0.15.7 makes the Mac's Linux machine start sooner and smaller. Nothing in how you use Keg changes.

Changed

  • The Mac's VM starts in about 0.22 s, from a quarter of a second. A stop now closes the data disk properly, and a disk closed cleanly is not checked again at the next start; that check was 40 ms of every start. After a crash it is checked as before.
  • A smaller VM: a kernel of 14.6 MB (15.2 before), and Keg's own programs in it a seventh smaller, which is memory the VM no longer holds.

Fixed

  • The console wrote a small rate with every digit: a container's network read "70.07007007007007 bytes/s". Sizes under a thousand bytes are written whole.
  • A stop of the Mac's VM could leave the data disk's journal open, when a container was starting as the stop was asked. Nothing was lost; the next start replayed it, and took longer for it.

Experimental

Off until you turn it on (keg settings experimental on NAME, or Settings › Experimental):

  • deep-sleep (from 0.15.6) and quiet-sleep (from 0.15.5) are as they were. deep-sleep was tried 25 times over, every third time woken the moment it slept: each wake ran its container, in 0.3 s at the median and 0.57 s at worst, and the VM held none of the Mac's memory asleep. A node with a service deployed never sleeps this way; quiet-sleep is for it.

Nothing graduated, and nothing is new. See EXPERIMENTAL.md.

Upgrading from 0.15.6

  • keg update. On a Mac the app updates itself; then Stop Keg and Start Keg, which starts the Linux machine anew with the smaller kernel. The first start after that checks the disk once more, the last stop having been the old kind.
  • No capability files are new; nothing changes in an app's database.

See keg.rahultrikha.com for more.

Keg v0.15.6

Choose a tag to compare

@rahult rahult released this 30 Nov 11:06

Keg 0.15.6 fixes a fault in 0.15.5 on a Mac: a command run in a container (keg exec, docker exec, a health check, a command in a machine) ran in the Linux machine's own files, not the container's. If you have 0.15.5, update.

Fixed

  • On a Mac, a command run in a container ran in the VM's own files (0.15.5 only). A program only the image has was "not found", a health check that ran one failed and its container was unhealthy, and what such a command wrote did not reach the container. Containers started with run were not affected, nor was any Linux node. After updating, Stop Keg and Start Keg: the fix is in how the Linux machine starts.
  • The memory meter read an idle VM as nearly full (0.15.5 only). Memory the VM had handed back to macOS was counted as in use, in the Mac app and the console.
  • A container cannot open the VM's own kind of socket (AF_VSOCK), the door between Keg's VM and the Mac. One could reach what the Mac listens on for the VM, such as an SSH agent shared with keg vm start --ssh-agent. A privileged container, which is root on the node by design, still can.

Changed

  • The Mac's VM answers in about a quarter of a second, and a request to the node takes a third of the time: kegd listens on the Mac's virtio sockets itself.
  • A smaller kernel in the Mac's VM, 15.2 MB.
  • The VM keeps less memory it is not using, and is given more at once when it says it is short.

Experimental

Off until you turn it on (keg settings experimental on deep-sleep, or Settings › Experimental):

  • deep-sleep: the Mac's VM is powered off after its idle minute when no container, machine or service runs at all, and holds none of the Mac's memory. The next command starts it again in about a quarter of a second. Rough: what was only in the VM's memory is gone at the next start, as after keg vm stop.

quiet-sleep, from 0.15.5, is as it was. Nothing graduated. See EXPERIMENTAL.md.

Upgrading from 0.15.5

  • keg update. On a Mac the app updates itself; then Stop Keg and Start Keg, which starts the Linux machine anew: until then the fault of 0.15.5 stays.
  • No capability files are new; nothing changes in an app's database.

See keg.rahultrikha.com for more.

Keg v0.15.5

Choose a tag to compare

@rahult rahult released this 30 Nov 08:22

Keg 0.15.5 makes Keg on a Mac faster and lighter: containers start in half the time through docker, the VM starts in a third of it, and memory the VM is not using goes back to macOS. One feature is new and experimental: the VM sleeping while its containers are quiet.

Changed

  • Faster on a Mac. Measured on one Mac with the docker command: docker run --rm alpine true takes about 21 ms (47 before), a container's whole life through the Docker API about 4 ms (61 before), and the VM answers 0.27 s after keg vm start (0.6 to 0.8 s before). --network none is now a network of its own with only loopback.
  • A kernel of Keg's own in the Mac's VM. Linux 6.18.35 with Kata Containers' configuration and patch, one patch of Keg's, and the hardware a Mac's VM never has taken out: 16 MB where the kernel before was 30. Its source, patches and configuration are in this release's GPL source (keg-0.15.5-gpl-source-kernel.tar.xz).
  • Memory the VM is not using goes back to macOS. The VM used to keep every page it had touched. keg vm start --memory-return off keeps the old way.
  • Clean Up is the first section of Storage in the Mac app, and says what it did: what was freed, or why nothing was. The Overview has Clean Up beside its disk meter.

Added

  • Every experimental feature at once: keg settings experimental on all, All Experimental Features in the Mac app's Settings, Turn all on… in the console.

Fixed

  • Clean Up in the Mac app could do nothing: in an app that had run for a while, the button opened nothing.
  • The Mac's VM could stay awake for minutes with nothing running.

Experimental

Off until you turn it on (keg settings experimental on quiet-sleep, or Settings › Experimental):

  • quiet-sleep: the Mac's VM sleeps after its idle minute even with containers running, when none has used the processor or the network in that minute. A connection to any of them wakes it in a few milliseconds. Rough: a container that does something on a timer of its own, without being asked, does it late, when something next wakes the VM.

Nothing graduated in this release. See EXPERIMENTAL.md.

Upgrading from 0.15.4

  • keg update, then restart the node (sudo systemctl restart kegd). On a Mac the app updates itself; then Stop Keg and Start Keg, which starts the VM on the new kernel.
  • No capability files are new; nothing changes in an app's database.

See keg.rahultrikha.com for more.

Keg v0.15.4

Choose a tag to compare

@rahult rahult released this 29 Nov 21:25

Keg 0.15.4 makes moving a Mac's VM disk to another drive safe from a start in the middle, and makes the Builds list and a build's steps agree. Nothing new is experimental in this release.

Fixed

  • A Mac VM is never started while its disk is being moved. keg vm disk --path <folder> moves the VM's disk while the VM is stopped. A keg vm start, or Start Keg in the app, during the copy used to boot the VM on the old disk, and what it wrote would have been lost once the move let the old disk go. Now a start waits for the move and boots on the moved disk, and a move refuses while a start is going.
  • The Builds list and a build's steps count alike. The list counted only the steps that add files to the image (RUN, COPY, ADD), a build's own steps every step, so they disagreed. Both now say what the steps that add files came to, such as "1 ran, 3 from the cache"; FROM, ENV, WORKDIR, CMD and the like are shown as settings that add no files. In the console and the Mac app.

Experimental

Nothing new is experimental in this release. The switches of 0.15.0 and 0.15.1 are as they were. See EXPERIMENTAL.md.

Upgrading from 0.15.3

  • keg update, then restart the node (sudo systemctl restart kegd). On a Mac the app updates itself; then Stop Keg and Start Keg.
  • No capability files are new; nothing changes in an app's database.

See keg.rahultrikha.com for more.

Keg v0.15.3

Choose a tag to compare

@rahult rahult released this 29 Nov 14:16

Keg 0.15.3 makes two of the new timelines of 0.15.2 more useful on a node that has gone quiet, and reads more of the times log lines write. Nothing new is experimental in this release.

Fixed

  • An app's threads chart and the Events page's strip fill their width once things are quiet. They used to run from the oldest thread or event to now, so work done a day ago was squeezed into a sliver at the left. While a thread is still going the chart still runs to now; otherwise both end at the last thing that happened, and say when that was.
  • Log lines dated with slashes are placed on the timeline. Go's standard log, nginx and NATS write their dates as 2026/11/27 09:29:39; a container's output, in the console and the Mac app, now reads that as the line's time instead of counting it as "Earlier".

Experimental

Nothing new is experimental in this release. The switches of 0.15.0 and 0.15.1 are as they were. See EXPERIMENTAL.md.

Upgrading from 0.15.2

  • keg update, then restart the node (sudo systemctl restart kegd). On a Mac the app updates itself; then Stop Keg and Start Keg.
  • No capability files are new; nothing changes in an app's database.

See keg.rahultrikha.com for more.

Keg v0.15.2

Choose a tag to compare

@rahult rahult released this 29 Nov 07:42

Keg 0.15.2 redraws six pages of the console and the Mac app so you can see how things connect and when they happened: a map of your services beside their list, timelines in a container's output, a change's progress, a build's steps, how events flow, and an app's agents' threads. A build's log now says how long each step took. Nothing new is experimental in this release.

New

  • Services: a map beside the list. For each environment: where each service is reached, the service with its state and release, and what it uses — its database, then sign-in, agents, mail and the rest. A stopped service shows no address. Click a service to go to its container.
  • A container's output over time. A strip of bars above the lines shows when they were written, errors and warnings on top. It follows the find box and the level you pick. Click a bar to jump to its first line.
  • Where a change got to. A change shows its steps — proposed, checks, approval, deployed — with the one that failed or waits marked, and every release of that service in that environment, each one click away.
  • A build's steps, by time. Each step is as wide as the time it took and coloured by what happened: ran, reused from the cache, failed, or not reached. The longest is named. Click a step to see its part of the log. Builds made before 0.15.2 show their steps at equal width.
  • How events flow. The Events page opens with who wrote the latest events, what kinds they were, and which of Keg's services each is told to, with failed and waiting deliveries marked; and the latest events over time.
  • An app at a glance. An app's service map in each environment, and its agents' newest threads over time: each thread a bar from when it began to when it ended, coloured by state.
  • Build logs say how long each step took, as ---> took 1.2 s after the step.

Fixed

  • A page or a log cut inside a character is no longer garbled: a reply's chunks are put back together as bytes.
  • The Mac app's Members… button says whose members it opens.

Experimental

Nothing new is experimental in this release. The switches of 0.15.0 and 0.15.1 are as they were. See EXPERIMENTAL.md.

Known in this release

  • A log line's time is read from the line itself where it writes one; a line that writes none shows when it reached the page, and lines from before the page opened without a time are counted as "Earlier".
  • The new sentences in the Mac app were translated by machine and checked for completeness and their blanks only.

Upgrading from 0.15.1

  • keg update, then restart the node (sudo systemctl restart kegd). On a Mac the app updates itself; then Stop Keg and Start Keg.
  • No capability files are new; nothing changes in an app's database.

See keg.rahultrikha.com for more.

Keg v0.15.1

Choose a tag to compare

@rahult rahult released this 27 Nov 23:58

Keg 0.15.1 tells an app's agent whether a mailed sender is genuine, lets a member of an app's organisation hold more than one role, shows an app's agents' threads in the console, and makes docker run --init work as it does with Docker. It fixes what a full or failing disk did to a node, and what an outside review found before release. Everything new is experimental and off until you turn it on: see "Experimental" below.

New

  • Whether a mailed sender is genuine. Mail-in checks SPF, DKIM and DMARC as a message arrives and writes the verdict with it: each check's result, and from_verified, true only when DMARC passes. An agent asks keg.mail_from_verified(event) or keg.mail_verified_sender(event), and is answered only of mail it may read. Map a sender to a member only when it is verified.
  • A member may hold more than one role. Each keeps the one role they had; an administrator grants more (keg.grant_role, keg.take_role), and every check of a role reads the whole set: asks, approvals, organisations' tools, audiences, replays, and keg.actor_has_role(R) in a policy. A supervisor who is also an agent can read the ticket they decide on. keg app members, the console and the Mac app show them.
  • An app's agents' threads, in the console. Apps → an app → an environment → Threads: each thread's agent, organisation, state, what it waits for and until when, and spend; its events, labelled by who wrote each; its asks, their arguments as Keg writes them out; and Wake, Stop and a dry Replay.
  • docker run --init and keg run --init. PID 1 is Keg's own small init, as Docker's is: it reaps orphans, passes signals on and ends with the command's status. It runs from a sealed copy in memory and holds nothing of the node's.
  • Webhooks on a Mac node, or any node with no public name: deliveries are taken at the node's local names port, which the Mac forwards to its own localhost. keg app hooks says where to point a tunnel.
  • keg app check [NAME] runs a project's check as a piece of work's gate does, with its own database and a fake model, on a read-only copy of your folder.
  • Agents wait for what is theirs. thread.waitFor and thread.listen take match, so a thread waits for the reply to its own message and nothing else wakes it. A thread's own tools read the event that started or woke it. A thread an emitted event starts outlives the agent that emitted it, held to that agent's lineage: one budget, at most 100 threads, all stopped with it. A wait is written on the thread, and a wake says who woke it.
  • A node's disk sync mode, keg vm disk --sync full|fsync|none, for a throwaway node such as one tests run on. full stays every node's default.

Fixed

  • A full or failing disk. A disk path given before a node's first start is used, never replaced by a new file on the Mac's internal disk. The Mac's free space is checked before a start and while the node runs. A node whose disk failed or went read-only says so plainly and takes no new work, instead of answering every write with a raw I/O error.
  • Security: from an outside review before release. A lineage of threads stops whatever state its first thread is in, and only as far as the person stopping it may read; a job's events count against its lineage; turning a feature off reaches every app's database, or the node names the one it could not tell; every invisible character in what an ask shows is written out, and a secret is hidden before anything is; one sender or a web page cannot stop webhook deliveries at a node with no public name; keg app check reads only inside its project.
  • Mail sent to a Mac node from the Mac itself arrives. Every certificate the node signs is accepted by strict clients such as Python 3.13. Keg services no longer offer the old models service to install. keg vm acts on the node its --socket names. A firewall rule is no longer put back for a node that is gone, and a container's network allowance is checked before its image is fetched.

Experimental

New in this release, each off until you turn it on with keg settings experimental on NAME or in Settings › Experimental. The switches of 0.15.0 are as they were. See EXPERIMENTAL.md.

  • mail-verdict: SPF, DKIM and DMARC for mail in (needs mail).
  • member-roles: members with more than one role.
  • app-check: keg app check.

Known in this release

  • The console's and the Mac app's own escaping, used where a node gives no escaped form, still writes out fewer invisible characters than the node does.
  • A vault entry set before 0.15.1 is hidden in its written-out form only once it is set again.
  • On a Mac, --sync fsync and none can lose what the VM wrote last if the power goes or an external disk is cut off: use them only for a node nothing on is worth keeping.
  • The translations were made by machine and checked for completeness and their blanks only.

Upgrading from 0.15.0

  • keg update, then restart the node (sudo systemctl restart kegd). On a Mac the app updates itself; then Stop Keg and Start Keg.
  • Each app's database that uses agents is given capability files 026 to 031 at its next deploy. Run keg app client in an app that uses @keg/app to bring its client up to date.
  • Everything new is off until you turn it on; a node's disk stays synced full.

See keg.rahultrikha.com for more.

Keg v0.15.0

Choose a tag to compare

@rahult rahult released this 27 Nov 08:27

Keg 0.15.0 lets an app's agent be reached from outside, by mail and by webhooks, and run an organisation's own tools walled; makes the model gateway part of the node, with providers of your own and the SDKs' own endpoints; gives what you run by hand entries of the vault; and adds previews, git and an SSH door to workspaces. Everything new is experimental and off until you turn it on: see "Experimental" below. Read "Upgrading from 0.14.0" before you upgrade.

New

  • Mail in. An app declares an address in a migration, keg.mail_address(word, agent); a message to it starts a thread of that agent, with its attachments kept. Keg receives only: it relays, sends and bounces nothing.
  • Webhooks in. keg.hook(name, scheme, secret, agent) takes deliveries signed as GitHub, Stripe or Slack sign, or by a shared secret, and can start a thread of an agent.
  • An organisation's own tools. A member of a role the app names uploads a tool of JavaScript; the node runs each call in a container of its own that reaches nothing, under that organisation's limits.
  • The model gateway is part of the node. Apps and works call POST /v1/chat/completions, /v1/responses and /v1/messages at their door, so standard SDKs and agent frameworks reach the model through Keg, counted for their thread and organisation. keg assistant provider add adds a provider of your own, its key kept in the vault. keg workspace model NAME on --usd-per-day N gives a workspace the model.
  • The vault for what you run by hand. keg run --secret NAME, a Compose file's external secrets, a build's --secret, and keg login take entries of the vault, each use written down as vault.used.
  • Workspaces grow. Previews of what a workspace serves, at a private address of their own; git in a workspace (git_status, git_commit, a remote you give it, a release proposed from it); and an SSH door (keg access ssh on) that lands in a workspace and nowhere else, through a helper with no rights.
  • keg setup server walks a Linux server with Keg on it to a door an app can be let in at, as a checklist.
  • Containers that run containers. A privileged container on Keg can run Docker or Keg inside it: it is given its own cgroup tree and the node's devices, as Docker gives them, under the node's limits. A Keg inside a Keg container chooses a network range of its own.
  • The Mac app has Access, Workspaces, Agents, Models and Settings › Experimental pages, and every sentence of it is translated; a release of the app now refuses any sentence left untranslated.
  • The Go client runs an app's agents (k.Agent, k.Work).

Fixed

  • Security: what arrives from outside cannot fill the disk or spend an organisation's money. Each mail or hook address, and each app, takes so many bytes a day (64 MiB and 256 MiB by default, keg.inbound_limits), and is then told to try later; what was received is kept 30 days by default and then removed; threads started from outside are capped per organisation per day (200 by default). From an outside review before release, with fairer mail connections (15 s to name a recipient, 421 when busy) and verified senders such as GitHub no longer held by the limit meant for strangers.
  • Security: previews live under a domain of their own. A preview's page could set cookies for the node's public name, and so for every app you share and the connector door. Previews now need a domain that shares no parent with the node's public name, and the door refuses form posts from other sites.
  • Security: an entry of the vault handed by hand is handed at the node's own socket only, as keg vault show is: a build's or a run's --secret from the console or another machine is refused. docker build --secret id=NAME takes the vault's entry only when the client offers it empty (src=/dev/null), and says so.
  • Security: an organisation's tool cannot reach past its call. The wrapper reads only plain values of what a tool returns or throws, writes one line and ends; tools run by their image's pinned digest; one organisation takes at most a share of an environment's tool time; keg sandbox is walled to the internet.
  • A workspace given the model stops when an identity it was shared with loses it; a late detach no longer removes the next container's allowance; a hook's body and a message's attachments reach the app whole.

Experimental

Each of these is off on a node until a person turns it on, with keg settings experimental on NAME or in Settings › Experimental in the console or the Mac app; turned off, what it made is kept and what it runs stops. keg settings experimental lists them. See EXPERIMENTAL.md.

  • workspaces: workspaces, lasting walled machines to build in.
  • door: the connector door, for ChatGPT, Claude or Grok (needs workspaces).
  • previews: previews of what a workspace serves (needs workspaces).
  • workspace-git: git remotes, pushes and a project in a workspace (needs workspaces).
  • ssh-door: the SSH door to a workspace (needs workspaces).
  • setup-server: keg setup server's checklist.
  • model-gateway: providers of your own, the OpenAI- and Anthropic-shaped endpoints at a door, and the model for a workspace.
  • vault: the vault's uses for what you run by hand, and keg vault show, export, import, stale and restart.
  • mail: mail in, to an app's addresses.
  • hooks: webhooks in, to an app.
  • org-tools: an organisation's own tools, run walled for it.

Known in this release

  • Previews need a second domain of your own, with a wildcard DNS name pointing at the server. Previews can still set cookies on their shared domain and so overload one another's requests. Two domains under a private suffix such as duckdns.org are refused as sharing a parent.
  • The SSH door starts without its keg-sshd user; the setup check fails on it and the log says so.
  • An agent's machine and its backing service run on the node's own network, the machine as root, so an agent reaches what the node serves on its loopback. The node's wall lets in any root process on the node's network, not only Keg's own.
  • A hook signed with no time (github, or hmac-sha256 without a timestamp) can be replayed once its record is gone (30 days by default). Old records of an app are removed only when something new arrives for it. A sender with many networks can still hold every mail place; real mail servers are told 421 and retry.
  • A privileged container can stop its own exec commands through their cgroup.
  • The Mac app does not yet say why previews were turned off.
  • The translations were made by machine and checked for completeness and their blanks only.
  • A Keg node used as an engine for Keg's own tests is slow under the whole suite at once (kegd and the shared database start late); in smaller groups it is not.

Upgrading from 0.14.0

  • keg update, then restart the node (sudo systemctl restart kegd). On a Mac the app updates itself; then Stop Keg and Start Keg.
  • Each app's database that uses agents is given capability files 023 to 025 at its next deploy. Run keg app client in an app that uses @keg/app to bring its client up to date.
  • A node that already used the connector door or workspaces keeps them on, and says so once; everything else new is off until you turn it on.
  • Previews answered under the node's own public name are turned off at the upgrade, every preview closed, with the reason in keg access. Give them a domain of their own with keg access previews DOMAIN.
  • keg build --secret, keg run --secret and keg compose up with entries of the vault are refused over --node-url: run them on the node. docker build --secret id=NAME takes the vault's entry only with src=/dev/null.

See keg.rahultrikha.com for more.

Keg v0.14.0

Choose a tag to compare

@rahult rahult released this 26 Nov 09:09

Keg 0.14.0 lets an app's agent ask its people before it acts, wait for days and replay what it did; lets a chat app such as ChatGPT, Claude or Grok build in a walled workspace on your own server; and lets a piece of work run its project's checks before the gate does. Read "Upgrading from 0.13.0" before you upgrade.

New

  • An agent in an app asks its own people, and a tool that changes things runs only on a person's approval. thread.ask asks one exact call of a tool to be approved, one of a few things to be chosen, or a question to be answered, of the people the app names. A tool declared changes => true runs once, as the person who approved that very call; an edit is a new call and a new ask. Every argument is shown beside the sentence the person approves, and characters that hide or turn text are written out.
  • An agent waits, for minutes or days, and is woken once. thread.sleepUntil, thread.waitFor (a time, an event, a message or an answer) and thread.listen; an agent can start a child agent with a budget carved from its own and be woken with its result. A thread refused for the day's allowance sleeps until it resets. keg app threads wake wakes one; keg app threads marks one that has nothing left to wake it.
  • A thread is replayed, dry. keg app threads replay APP ID --instructions-file F forks a thread at an event and runs it again with a changed prompt or model, writing nothing and telling no one; compare shows then beside now. Replays are for the roles an agent names, counted as evaluations, and bounded per organisation.
  • Each organisation of an app is counted, and held to a ceiling when you set one. keg assistant limits app:APP/ENV --per-organization-usd-per-day N. The model's door checks a signed claim of which thread and organisation a call is for, so an app cannot spend as another of its organisations.
  • Cached input is charged at the cached price. A coding agent's round now costs about a fifth of what it did. Prices are shipped for the catalogue's models and reach a node upgraded from 0.13.0.
  • A piece of work runs its project's checks itself. In its round, keg-check NAME asks the node to run one of the project's checks exactly as the gate would, on a snapshot the node takes, against a throwaway database. It never counts as evidence: the gate still runs every check. In our own trial a work that took sixteen rounds before took one. keg work self-checks sets its bounds.
  • Workspaces, and a door for chat apps. On a Linux server with a public name, keg access name, keg access door and keg access open let you add your node to the ChatGPT, Claude or Grok apps (or Claude Code) as a custom connector. An app is let in only when you type, on the server, the six-digit code it shows (keg access approve CODE); it then gets walled workspaces of its own, which reach the public internet and nothing of your server's, and can make one, write files and run commands. keg access ls, revoke and rename; the console's Access and Workspaces pages. The door is shut until you name it and open it; see WORKSPACES.md.
  • docker load, docker save and docker import work once docker talks to Keg.
  • keg version says this program's build, the node's, and whether they match.
  • keg work approve N, keg work reject N, keg work evidence N, keg work attach --replace and keg work send-back --note-file.

Fixed

  • A tar made on a Mac is imported, loaded and pulled. A layer whose files carried an attribute Linux has no place for (every file on a current Mac does) failed to unpack. Security: a layer can no longer write attributes that are Keg's own to write.
  • docker rm -f of a container that keeps restarting is no longer refused now and then.
  • Security: the connector door, before it faces the internet. From an outside review before release: each sign-in keeps a waiting page of its own, so another page cannot swap the code you are shown; there is room for new callers however many others ask, counted by network; a connector already let in renews its token whatever else arrives; and a stranger cannot tell whether the door is open. Apps sign in by registering with the door: Keg fetches nothing a stranger names (keg access door --client-documents on turns client-id documents on, if an app ever needs them).
  • A replay evaluates again; a child's result reaches its parent as written; a ceiling no call fits under is refused when it is set; amounts set side by side are never printed alike when they differ.

Known in this release

  • Previews of what a workspace serves, git tools in a workspace, the SSH door and keg setup server are not in this release (0.15.0).
  • Claude Code is documented to register with a door that offers no client documents, as Claude and ChatGPT do, but this has not been tried; if its sign-in is refused, add Keg in it again.
  • OpenAI's help centre gives custom connectors' write tools only to Business and Enterprise plans: on another ChatGPT plan, check whether "Add custom MCP server" allows write actions before relying on it.
  • The Mac app has no Access or Workspaces page yet, and some of its new sentences are shown in English in every language.

Upgrading from 0.13.0

  • keg update, then restart the node (sudo systemctl restart kegd). On a Mac the app updates itself; then Stop Keg and Start Keg.
  • Each app's database that uses agents is given capability files 016 to 022 at its next deploy. Run keg app client in an app that uses @keg/app to bring its client up to date: an agent's calls to the model that carry no claim are refused where a per-organisation ceiling is set.
  • The connector door stays shut on an upgraded node: nothing is opened to the internet until you run keg access name and keg access open.

See keg.rahultrikha.com for more.

Keg v0.13.0

Choose a tag to compare

@rahult rahult released this 25 Nov 07:03

Keg 0.13.0 adds a vault for passwords and keys, lets an app run an agent of its own on Keg, says how to use the Kubernetes cluster once it runs, and makes container starts steady under load. Read "Upgrading from 0.12.1" before you upgrade.

New

  • A vault: one entry for each password or key, given only where you grant it. keg vault set NAME reads a value from the terminal, never from an argument, and seals it with the node's key. keg vault grant NAME --service S --env E gives it to one service in one environment, and nothing else is handed it. The console has a Vault page; no value is ever sent to it. keg secret set still works and now writes the vault.
  • One flow gives any node its model key, kept in the vault. keg assistant setup --env-file <path to a .env> reads the key from that file once; after that the file is never read again. The assistant, a piece of work's coding agent and an app's agent all draw on that one entry through Keg's model gateway, and none of them holds a key. A piece of work no longer reads its project's .env.
  • An app can run an agent of its own. uses: [model] gives an app a door to the model with no key in the app: it sends its own prompt and gets back text and tool calls as data, with spend held to the app's daily ceiling. uses: [agents] gives it threads in its own database: each run of an agent is an append-only list of events under the app's row security, a step happens once however many workers race for it, and a tool's change and its record commit together. @keg/app has keg.agent, keg.model and keg.tools; a check can be given a scripted model (model: fake) so an agent's tests run at the gate without spending; keg app threads shows them to the node's person. Keg writes no prompt and runs no loop: the app owns both.
  • Kubernetes says what to do once it is set up. keg k8s start ends with next steps; keg k8s info prints how to connect at any time; keg k8s load IMAGE brings an image Keg has into the cluster; keg k8s start --publish PORT makes a port of the cluster reachable from this computer. The console's and the Mac app's Kubernetes pages have a Connect box, and there is a guide, KUBERNETES.md.
  • keg docker restore puts docker back to what it talked to before keg docker use, and the Mac app has a button for it.

Fixed

  • Container starts are steady under load. A start after many containers were removed at once waited up to a second behind the kernel clearing their network links; a start could return before its port passed traffic; and a start could wait on the node's database copying its log. With a hundred containers running, no start in 2,400 took over 100 ms (the worst 62 ms), where the worst had been over a second. The node's database log, which could grow without bound under constant writes, stays under 70 MB, and the kernel's table of neighbours no longer fills after about 900 containers started in quick succession.
  • Importing from another Docker engine works the same once docker talks to Keg. The import finds each engine by where its socket really leads, says when one is not running and how to start it, and the Mac app lists running engines first. It used to offer a stopped Docker Desktop first and fail without saying why.
  • Kubernetes. The settings written for kubectl name the port that really leads to this cluster, where another program already had 6443. Security: the cluster's API is published on the node's loopback only; on a Linux server it had been reachable on every address of the node. A first start no longer fails at random; keg save of an image Keg built is accepted by other tools; keg k8s kubectl works at a terminal and with a manifest piped in.
  • Security: an app can no longer write an event of Keg's. keg.emit refuses a type that begins keg..
  • Security: a release that no person approved is handed a vault entry only by a person's exact grant. A piece of work's build deployed to local is not given a key granted for another environment.

Known in this release

  • Eleven new sentences in the Mac app are shown in English in every language.
  • The vault's uses for a container run by hand, a Compose file, a build and a registry login are not built yet; nor are the agent's ask of a person and replaying a thread.
  • A node keeps the address it may open for a local model server only in memory. (Choosing your own model provider and address is not in this release.)

Upgrading from 0.12.1

  • keg update, then restart the node (sudo systemctl restart kegd). On a Mac the app updates itself; then Stop Keg and Start Keg.
  • Every secret already set moves into the vault by itself at the node's first start, with the grant it had; nothing is typed again. If a value cannot be read back, nothing is moved and the node says so and does not start: nothing is lost, and going back to 0.12.1 then works. Once the vault has been written to, going back to 0.12.1 is not supported.
  • A piece of work on a node with no model key set up is refused, saying to run keg assistant setup --env-file <path>: it no longer reads a key from the project's .env.
  • A vault grant names one environment. keg vault grant without --env is refused.
  • On a Linux server, the Kubernetes API is no longer reachable from other machines. Reach it through SSH (ssh -L 6443:127.0.0.1:6443 …).
  • Each app's database is given two new capability files at its next deploy. An app that emitted an event type beginning keg. must rename it.
  • Upgrade every node before using uses: [model] or uses: [agents] in a keg.yaml: an older node refuses them.

See keg.rahultrikha.com for more.