Master All 5 Layers of Every Agentic OS
A 24-minute Earth-layers framework for building AI operating systems that don't decay.
June 30thA 44-minute walkthrough of the five-layer stack behind running open-weight AI on your own hardware — and the trick of using Claude Code itself to build the whole thing for you.
Open-weight AI models running on hardware you own are now good enough for most day-to-day work, and the fastest way to set one up is to point a closed-source coding agent like Claude Code at the task and let it build, configure, and maintain the open-source stack for you.
The video's argument: relying entirely on closed-source AI carries real vendor risk — models can vanish or get quietly nerfed overnight, and today's subsidized subscription pricing won't last as costs catch up to the venture capital funding it. The fix isn't abandoning Claude or GPT, it's adding a local backup. The stack breaks into five layers: hardware, open-weight models, an inference engine (llama.cpp or vLLM), a gateway (LiteLLM) that lets any app swap models without rewiring, and an interface (Open WebUI) plus optional agent harnesses. The unlock is using Claude Code or Codex to research your hardware limits, download and configure the right quantized model, wire up Tailscale for remote access, and even build a full local dashboard — turning a historically painful setup into one guided conversation.
Sign in and you get 23 free chat messages on us — ask for the hook, quote a framework, find the exact transcript moment, generate a markdown action plan. Bring your own key when you want unlimited.
Create a free account →
Anthropic pulled public access to Claude Fable 5 and Mythos 5 overnight, and Kashef frames that outage as the reason to have an open-weight backup.

Kashef lays out the video's structure: key concepts, picking the right model and tools, then building an open-source command center.

A tour of Kashef's own dashboard running entirely on a Mac Mini: AI chat, a Hermes agent, document Q&A/RAG, image generation, and Tailscale-based remote access.

Kashef rejects the 'pick a side' framing — he uses closed models heavily but argues open source is essential as a redundancy plan.

Vendor risk (models can vanish), the closed-source subsidy ending, data privacy for sensitive work like personal DNA analysis, and cheap 24/7 ambient agents.

Acknowledges that Ollama-era models like Llama 2 disappointed people, but argues today's models plus agent harnesses have changed that.

The core framework: hardware, open-weight models, inference engine (llama.cpp/vLLM), gateway (LiteLLM), and interface/harness — the mental model for the rest of the video.

Uses Claude Code to pull OpenRouter's public rankings API and categorize the last six months of open models into text-only vs multimodal.

Feeds hardware specs (his M5 Max, 128GB unified memory) to Claude Code to get a shortlist of models that will actually run at usable speed.

Claude Code checks Hugging Face for a downloadable, Mac-tailored quantized build, installs prerequisites, and gets a 65GB model serving at 60 tokens/sec.

Repeats the exact same hardware-check-and-install prompt over SSH on a headless Mac Mini instead of the local laptop.

llama.cpp is 'cooking for a party of one' (single-user local inference); vLLM is the industrial-kitchen version built to serve many concurrent users.

LiteLLM exposes an OpenAI-compatible API so every app talks to one gateway, and swapping the underlying model is just changing a config value.

A private encrypted mesh (free personal plan, up to 6 users/unlimited devices) that lets any device reach the home AI rig without port-forwarding.

A named roster: Gemma (Google, sometimes overly restrictive), the Chinese labs (Qwen, GLM, Kimi) which Kashef says now outperform expectations, DeepSeek, and MiniMax for voice.

Wires OpenRouter into Claude Code so a 'Claude OS' alias can run open models (Kimi K3, GLM 4.6) through Claude Code's own tool-calling harness.

Parameter count is a rough proxy for capability; the rule of thumb is divide the parameter count by roughly two to estimate required RAM in GB.

Compressing a model's weights (16-bit down to 4-bit and below) trades fidelity for size and speed, the same way image resolution degrades.

GGUF is the universal, cross-platform format; MLX is Apple Silicon-only but performs better on that specific hardware.

Long conversations accumulate context that has to be re-processed each turn; shrinking the system prompt, trimming context, and cache quantization all help.

Instead of reading every token of a conversation every time, sparse attention selectively picks the most relevant past tokens, saving compute.

Generation speed is bottlenecked by memory bandwidth, not raw compute; smaller quantized weights move through that 'pipe' faster.

A harness is what turns a model into an agent that can read/write files and run bash; pi.dev is a minimal open-source harness alternative to Claude Code/Codex.

Feeds Ahmed Osman's open-source ODS/Osmentic GitHub repo to Claude Code, which fans out sub-agents to install and configure the entire local dashboard in about 45 minutes.

Closes over the finished personal dashboard with a pitch for the free Local AI Engineering Guide plus his paid Early AI Adopters community.
Running open-weight models locally is now a realistic backup plan, and the fastest path to owning one is pointing a closed-source coding agent at the setup instead of doing it by hand.
“You're basically cooking for a party of one.”
“As soon as you're forced to drive that same car on a highway with a speed limit of 300 miles an hour, you're gonna have problems.”
“You have this open source model as a brain in a jar. Harness allows you to attach limbs to this brain.”
“You can think of GGUF as this universal passport.”
“The model is not the product.”
“Swap the model. The apps never notice.”
“Make sure you own your AI. AI in the cloud is not aligned with you — it's aligned with the company that owns it.”
See every word as it's spoken — crank it to 2× and still catch all of it. The same dual-channel trick behind Amazon's Kindle + Audible.
Last week Anthropic pulled public access to Claude Fable 5 and Mythos 5 overnight — a reminder that whatever closed-source workflow you depend on can change in the snap of a finger. Kashef uses that scare as the on-ramp into a five-layer stack for running your own AI, with a twist: he uses Claude Code and Codex to build the open-source setup for you.
The mental model Kashef uses for the entire video: any local AI project is a stack of these five layers, built from the hardware up.
Kashef's case for local AI as insurance rather than replacement: sudden access loss, unsustainable subscription pricing, sensitive data handling, and cheap always-on background agents.
Practical levers for speeding up a local agent that's slowed down over a long conversation.
Divide a model's parameter count by roughly two to estimate the gigabytes of RAM needed to run it comfortably.
“check out my early AI adopters community... I've also put together this local AI engineering guide... you'll get both of these resources completely for free down in the second link below”
Soft dual CTA delivered direct-to-camera over the finished dashboard at the very end (free lead-magnet guide + paid community), echoing an earlier lighter mention of the same community around 12:23 mid-video — no hard sales pitch either time.
00:00
00:46
01:13
01:45
01:51
01:58
02:52
03:30
04:14
05:00
05:28
05:43
05:57
07:19
08:14
08:42
09:08
09:38
10:11
11:15
12:23
13:15
14:18
15:16
16:04
16:43
17:21
18:00
18:44
19:32
20:20
21:08
21:32
21:48
21:59
22:09
22:39
23:01
23:13
23:48
24:21
24:24
25:07
25:29
26:16
26:51
27:29
28:07
28:53
29:44
30:36
31:28
31:58
32:46
33:20
33:47
34:17
34:43
34:57
35:22
35:46
36:02
36:54
37:18
37:54
38:04
38:14
38:28
38:46
39:04
39:28
39:47
40:23
41:00
41:49
42:30
43:13
43:34
44:04
44:22A 24-minute Earth-layers framework for building AI operating systems that don't decay.
June 30thA 36-minute blueprint for moving a personal AI agent stack into a locked-down, compliance-ready AWS environment — built over a month and nearly 10 million tokens.
June 25thA 9-minute system for mining your JSONL session logs, measuring the behavioral gap between Fable and any other model, and injecting a distilled playbook at every session start.
June 14thA 14-minute cost-routing playbook for the most powerful and expensive model Anthropic has ever shipped.
June 11thA breakdown of why maxing out effort settings on Claude, GPT, Grok, and Gemini rarely makes the output better — and the framework for picking the right level every time.
July 13thA two-host deep dive on why self-hosting open-source AI is a freedom fight, not just a cost play — covering hardware tiers, model benchmarks, geopolitical risk, and the case for owning your inference stack.
June 24th