<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jake Abendroth</title>
    <description>The latest articles on DEV Community by Jake Abendroth (@abendrothj).</description>
    <link>https://dev.to/abendrothj</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3712372%2F67c97fdc-8496-4a05-9bd5-57c8cff1fc59.jpg</url>
      <title>DEV Community: Jake Abendroth</title>
      <link>https://dev.to/abendrothj</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abendrothj"/>
    <language>en</language>
    <item>
      <title>How I Built an Offline AI Orchestrator in 100% Rust (Goodbye, OpenAI Bills)</title>
      <dc:creator>Jake Abendroth</dc:creator>
      <pubDate>Thu, 15 Jan 2026 09:32:50 +0000</pubDate>
      <link>https://dev.to/abendrothj/how-i-built-an-offline-ai-orchestrator-in-100-rust-goodbye-openai-bills-1he</link>
      <guid>https://dev.to/abendrothj/how-i-built-an-offline-ai-orchestrator-in-100-rust-goodbye-openai-bills-1he</guid>
      <description>&lt;p&gt;&lt;strong&gt;The cloud is great, until you get the bill.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Like many developers, I wanted to build "Agentic Workflows"—systems where one AI model’s output triggers another’s action. But every time I wanted to test a multi-step chain, I hit the same three walls:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The Token Tax:&lt;/strong&gt; Iterating on complex logic meant burning API credits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Privacy:&lt;/strong&gt; I couldn't build workflows that touched sensitive local files because everything had to be shipped to a remote server.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Latency:&lt;/strong&gt; Waiting for a server round-trip just to summarize a local text file felt inefficient.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I realized I didn't need another wrapper around the OpenAI API. I needed a "Unix pipe" for local intelligence.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;LAO (Local AI Orchestrator)&lt;/strong&gt;—a desktop tool written entirely in &lt;strong&gt;Rust&lt;/strong&gt; (from the backend logic to the GUI) that chains local models like Llama 3 and Whisper into powerful, offline workflows.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is LAO?
&lt;/h2&gt;

&lt;p&gt;LAO is a cross-platform desktop application that lets you visually build Directed Acyclic Graphs (DAGs) of AI tasks.&lt;/p&gt;

&lt;p&gt;Instead of writing Python scripts to glue models together, you define steps: &lt;em&gt;"Watch this folder for audio files"&lt;/em&gt; -&amp;gt; &lt;em&gt;"Transcribe with Whisper"&lt;/em&gt; -&amp;gt; &lt;em&gt;"Summarize with Llama 3"&lt;/em&gt; -&amp;gt; &lt;em&gt;"Save to Markdown"&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;And here is the kicker:&lt;/strong&gt; It runs 100% offline. No internet, no API keys, no monthly subscriptions.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Stack: "Full Stack" Rust
&lt;/h2&gt;

&lt;p&gt;I chose Rust not just for performance, but for &lt;strong&gt;correctness&lt;/strong&gt;. When you are orchestrating heavy compute tasks (like loading a 7GB model into RAM), memory safety isn't optional.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The Core (Systems Engineering)
&lt;/h3&gt;

&lt;p&gt;The backend isn't just a script runner. It's a custom &lt;strong&gt;DAG Engine&lt;/strong&gt; that handles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Dependency Resolution:&lt;/strong&gt; Ensuring Step B never runs if Step A fails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hot-Swappable Plugins:&lt;/strong&gt; I built a dynamic plugin system using Rust's &lt;code&gt;libloading&lt;/code&gt;. Plugins (like the Ollama interface or the Whisper engine) are compiled as shared libraries (&lt;code&gt;.so&lt;/code&gt;/&lt;code&gt;.dll&lt;/code&gt;) and loaded at runtime.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;State Management:&lt;/strong&gt; If the app crashes, the &lt;code&gt;WorkflowScheduler&lt;/code&gt; knows exactly where it left off.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. The UI (egui)
&lt;/h3&gt;

&lt;p&gt;Initially, I considered using a web-based frontend. But I wanted LAO to feel like a &lt;em&gt;tool&lt;/em&gt;, not a website.&lt;/p&gt;

&lt;p&gt;I built the entire interface using &lt;strong&gt;egui&lt;/strong&gt; (an immediate mode GUI library for Rust).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Why egui?&lt;/strong&gt; It compiles to a single binary with the backend. No Electron bloat, no 200MB memory overhead just to render a button.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Performance:&lt;/strong&gt; The visual graph editor renders at 60FPS even with complex workflows because it's running natively on the GPU.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Coolest Part: Dynamic Plugin Loading
&lt;/h2&gt;

&lt;p&gt;The hardest technical challenge was making the system extensible without recompiling the core. I needed a way to load new capabilities (like a new model type) on the fly.&lt;/p&gt;

&lt;p&gt;Here is a snippet from the &lt;code&gt;PluginManager&lt;/code&gt; that handles &lt;strong&gt;hot reloading&lt;/strong&gt;. It safely unloads the old plugin code and swaps in the new version while the app is running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="c1"&gt;// core/plugin_manager.rs&lt;/span&gt;

&lt;span class="k"&gt;pub&lt;/span&gt; &lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;hot_reload_plugin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="k"&gt;mut&lt;/span&gt; &lt;span class="k"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Result&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nd"&gt;println!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"🔄 Hot reloading plugin: {}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="c1"&gt;// 1. Emit unload event so the UI can clean up&lt;/span&gt;
    &lt;span class="k"&gt;self&lt;/span&gt;&lt;span class="nf"&gt;.emit_event&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nn"&gt;PluginEvent&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="n"&gt;PluginUnloaded&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;plugin_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="nf"&gt;.to_string&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;

    &lt;span class="c1"&gt;// 2. Safely remove the old library from memory&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="k"&gt;self&lt;/span&gt;&lt;span class="py"&gt;.registry.plugins&lt;/span&gt;&lt;span class="nf"&gt;.contains_key&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// In the real impl, we drop the dynamic library handle here&lt;/span&gt;
        &lt;span class="k"&gt;self&lt;/span&gt;&lt;span class="py"&gt;.registry.plugins&lt;/span&gt;&lt;span class="nf"&gt;.remove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="c1"&gt;// 3. Load the new binary from disk&lt;/span&gt;
    &lt;span class="k"&gt;self&lt;/span&gt;&lt;span class="nf"&gt;.load_plugins&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nd"&gt;println!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"✓ Successfully hot reloaded plugin: {}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nf"&gt;Ok&lt;/span&gt;&lt;span class="p"&gt;(())&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This architecture allows developers to write their own Rust plugins for LAO and drop the &lt;code&gt;.dll&lt;/code&gt; or &lt;code&gt;.so&lt;/code&gt; file into the &lt;code&gt;plugins/&lt;/code&gt; folder, and the engine picks it up instantly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Matters
&lt;/h2&gt;

&lt;p&gt;We are moving toward a future where "Edge AI" is the standard. Not every task needs a massive cluster.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cost:&lt;/strong&gt; $0.00.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Privacy:&lt;/strong&gt; Your data never leaves your SSD.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Control:&lt;/strong&gt; You own the model, the prompt, and the pipeline.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are interested in Systems Programming, Rust, or Local AI, check out the code. I’m actively looking for contributors to help build new plugins!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repo:&lt;/strong&gt; &lt;a href="https://github.com/abendrothj/lao" rel="noopener noreferrer"&gt;github.com/abendrothj/lao&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>opensource</category>
      <category>ai</category>
      <category>rust</category>
    </item>
  </channel>
</rss>
