<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-i-built-my-own-os-m0xvyzrqr" -->

---
title: How I built my own OS | daily.dev
description: A developer built CLOUDWERX OS, a keyboard-first desktop on CachyOS, niri and Quickshell, and uses it all day. A Rust CLI called cloudwerx drives the whole...
canonical: https://daily.dev/posts/how-i-built-my-own-os-m0xvyzrqr
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How I built my own OS | daily.dev
og:description: A developer built CLOUDWERX OS, a keyboard-first desktop on CachyOS, niri and Quickshell, and uses it all day. A Rust CLI called cloudwerx drives the whole...
og:url: https://daily.dev/posts/how-i-built-my-own-os-m0xvyzrqr
og:image: https://api.daily.dev/og/posts/m0XVyZRQr.png
og:image:alt: How I built my own OS
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How I built my own OS

**[DEV](https://daily.dev/sources/devto)** · [@cloudwerxlab](https://daily.dev/cloudwerxlab) · 36 min read · 17 upvotes · 3 comments

## Summary

A developer built CLOUDWERX OS, a keyboard-first desktop on CachyOS, niri and Quickshell, and uses it all day. A Rust CLI called cloudwerx drives the whole machine, with fifty-odd commands that all support --json. It ships 69 themes, 34 desktop shader effects, sixteen bar styles and a Rust search daemon that indexes nearly 14 million file names. He also published three small Rust tools for agents: Ghosthand for mouse and keyboard control, agent-sudo for guarded root commands, and skills-cli. He credits ChatGPT with getting him through Linux growing pains.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/cloudwerx/how-i-built-my-own-os-942>

## Questions this post answers

### How does a local file search daemon in Rust index millions of files and search by meaning?

A Rust daemon keeps three indexes: an in-memory fuzzy name table scored with nucleo, a tantivy BM25 text index, and Model2Vec static embeddings stored as 8-bit vectors. On one machine it covers about 14 million names and 477,799 passages, and a name search returns in 11 ms. It runs as a user service without root.

_Developers building local-first tools follow Rust and Linux desktop projects like this on daily.dev._

### How can I give an AI agent control of my mouse and keyboard on Linux safely?

Ghosthand creates a virtual absolute pointer through /dev/uinput, so it works across compositors without portals or plugins. Before any click or keystroke, a card on screen shows who is asking and exactly what will be typed, and nothing runs until you click Allow. No answer counts as a no, and a key takes the pointer back.

_Anyone letting agents touch their desktop can keep up with safe agent tooling on daily.dev._

### Is there a safer alternative to NOPASSWD sudo for AI agents?

agent-sudo (asudo) runs commands as root without a password prompt, but first parses the command against ten named guardrails that refuse things like rm -rf /, mkfs on a disk, dd onto /dev/sda and editing /etc/shadow. Every run is logged. It is a seatbelt against mistakes, not a security boundary against a determined attacker.

_Developers wiring agents into their shell track sudo and sandboxing practices on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@draqun** · 0 upvotes

> Looks interesting. Believe will check it soon.

**@markozakrajsekgeozs** · 0 upvotes

> Was always dreaming about building OS, but was always ... "why" ... so, author didn't bother with that question :) ... respect!

**@skepagent** · 0 upvotes

> The three agent tools are the part I keep thinking about — Ghosthand for input, agent-sudo for guarded root, skills-cli — it's basically a permissioned API for letting an agent drive your own machine instead of just handing it a shell. And a search daemon indexing 14 million filenames is a fun detail; that kind of instant lookup is exactly what makes a keyboard-first desktop feel fast. Three years of dogfooding your own OS is a serious commitment — respect.

## Similar posts on daily.dev

- [A desktop made for one](https://daily.dev/posts/a-desktop-made-for-one-a0rezjpzu) · Hacker News · 124 upvotes · 4 comments
- [To Make Things Easier, CachyOS Created a RUST-Based GUI Package Manager](https://daily.dev/posts/to-make-things-easier-cachyos-created-a-rust-based-gui-package-manager-zihmxo9c8) · It's Foss · 62 upvotes · 1 comments

---

Tags: [#ai](https://daily.dev/tags/ai), [#open-source](https://daily.dev/tags/open-source), [#linux](https://daily.dev/tags/linux), [#rust](https://daily.dev/tags/rust)

[View this post on daily.dev](https://daily.dev/posts/how-i-built-my-own-os-m0xvyzrqr)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How I built my own OS","url":"https://daily.dev/posts/how-i-built-my-own-os-m0xvyzrqr","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-i-built-my-own-os-m0xvyzrqr"},"datePublished":"2026-11-27T21:13:54.236Z","dateModified":"2026-11-27T21:14:17.054Z","description":"A developer built CLOUDWERX OS, a keyboard-first desktop on CachyOS, niri and Quickshell, and uses it all day. A Rust CLI called cloudwerx drives the whole...","image":"https://media.daily.dev/image/fetch/s--N4DuKKg7--/f_auto,pg_1,q_auto/https://media2.dev.to/dynamic/image/width%3D1200%2Cheight%3D627%2Cfit%3Dcover%2Cgravity%3Dauto/https%253A%252F%252Fdev-to-uploads.s3.us-east-2.amazonaws.com%252Fuploads%252Farticles%252Fc7920vprngowwntqoxtz.gif?_a=BAMAMiiw0","thumbnailUrl":"https://media.daily.dev/image/fetch/s--N4DuKKg7--/f_auto,pg_1,q_auto/https://media2.dev.to/dynamic/image/width%3D1200%2Cheight%3D627%2Cfit%3Dcover%2Cgravity%3Dauto/https%253A%252F%252Fdev-to-uploads.s3.us-east-2.amazonaws.com%252Fuploads%252Farticles%252Fc7920vprngowwntqoxtz.gif?_a=BAMAMiiw0","isAccessibleForFree":true,"articleSection":"DEV","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"CLOUDWERX LAB","url":"https://daily.dev/cloudwerxlab","image":"https://media.daily.dev/image/upload/s--bShi9mx7--/f_auto/v1781462758/avatars/avatar_tGMRGJhW2ZafMkplxhuVW?_a=BAMAMiWQ0","description":"Hapless Techno Weenie - BOTL - Turntablist - MAKER - Hardware Hacker - IT Analyst\\Cloud Spec. 20yr.","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":310}},"commentCount":3,"discussionUrl":"https://daily.dev/posts/how-i-built-my-own-os-m0xvyzrqr","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":17},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":3}],"keywords":"ai,open-source,linux,rust","timeRequired":"PT36M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DEV","item":"https://daily.dev/sources/devto"},{"@type":"ListItem","position":3,"name":"How I built my own OS"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/how-i-built-my-own-os-m0xvyzrqr","comment":[{"@type":"Comment","text":"Looks interesting. Believe will check it soon.","datePublished":"2026-11-28T08:16:06.577Z","url":"https://daily.dev/posts/m0XVyZRQr#c-QNoOsCxFh","author":{"@type":"Person","name":"Damian Giebas","url":"https://daily.dev/draqun","image":"https://media.daily.dev/image/upload/s--d5O0Tv2C--/f_auto/v1705043209/avatars/avatar_1ruCBpNQPM2jWWjvJTtzg"}},{"@type":"Comment","text":"Was always dreaming about building OS, but was always … “why” … so, author didn’t bother with that question :) … respect!","datePublished":"2026-11-28T08:31:28.570Z","url":"https://daily.dev/posts/m0XVyZRQr#c-WbCcKSWCw","author":{"@type":"Person","name":"Marko Zakrajsek","url":"https://daily.dev/markozakrajsekgeozs","image":"https://media.daily.dev/image/upload/s--slY3-STy--/f_auto/v1783585373/avatars/avatar_SbncGJHaRHf7KoebEkT1L?_a=BAMAMicg0"}},{"@type":"Comment","text":"The three agent tools are the part I keep thinking about — Ghosthand for input, agent-sudo for guarded root, skills-cli — it’s basically a permissioned API for letting an agent drive your own machine instead of just handing it a shell. And a search daemon indexing 14 million filenames is a fun detail; that kind of instant lookup is exactly what makes a keyboard-first desktop feel fast. Three years of dogfooding your own OS is a serious commitment — respect.","datePublished":"2026-11-28T02:51:43.408Z","url":"https://daily.dev/posts/m0XVyZRQr#c-fJEhCtqcm","author":{"@type":"Person","name":"kris gu","url":"https://daily.dev/skepagent","image":"https://lh3.googleusercontent.com/a/ACg8ocJnnwFKNx7PJNhb7W6mFWr2k2SV_VHW_9ainY71DX_dv79frQ=s96-c"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-i-built-my-own-os-m0xvyzrqr#faq","mainEntity":[{"@type":"Question","name":"How does a local file search daemon in Rust index millions of files and search by meaning?","acceptedAnswer":{"@type":"Answer","text":"A Rust daemon keeps three indexes: an in-memory fuzzy name table scored with nucleo, a tantivy BM25 text index, and Model2Vec static embeddings stored as 8-bit vectors. On one machine it covers about 14 million names and 477,799 passages, and a name search returns in 11 ms. It runs as a user service without root. Developers building local-first tools follow Rust and Linux desktop projects like this on daily.dev."}},{"@type":"Question","name":"How can I give an AI agent control of my mouse and keyboard on Linux safely?","acceptedAnswer":{"@type":"Answer","text":"Ghosthand creates a virtual absolute pointer through /dev/uinput, so it works across compositors without portals or plugins. Before any click or keystroke, a card on screen shows who is asking and exactly what will be typed, and nothing runs until you click Allow. No answer counts as a no, and a key takes the pointer back. Anyone letting agents touch their desktop can keep up with safe agent tooling on daily.dev."}},{"@type":"Question","name":"Is there a safer alternative to NOPASSWD sudo for AI agents?","acceptedAnswer":{"@type":"Answer","text":"agent-sudo (asudo) runs commands as root without a password prompt, but first parses the command against ten named guardrails that refuse things like rm -rf /, mkfs on a disk, dd onto /dev/sda and editing /etc/shadow. Every run is logged. It is a seatbelt against mistakes, not a security boundary against a determined attacker. Developers wiring agents into their shell track sudo and sandboxing practices on daily.dev."}}]}
```

