<?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: Francisco Costa</title>
    <description>The latest articles on DEV Community by Francisco Costa (@franciscomcac).</description>
    <link>https://dev.to/franciscomcac</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4203127%2F68acc0b2-e557-4435-8152-79e8297baf5c.jpg</url>
      <title>DEV Community: Francisco Costa</title>
      <link>https://dev.to/franciscomcac</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/franciscomcac"/>
    <language>en</language>
    <item>
      <title>Hello DEV 👋 I'm building Somnus, a desktop AI agent with 50+ models behind one key</title>
      <dc:creator>Francisco Costa</dc:creator>
      <pubDate>Fri, 23 Oct 2026 17:43:01 +0000</pubDate>
      <link>https://dev.to/franciscomcac/hello-dev-im-building-somnus-a-desktop-ai-agent-with-50-models-behind-one-key-8n8</link>
      <guid>https://dev.to/franciscomcac/hello-dev-im-building-somnus-a-desktop-ai-agent-with-50-models-behind-one-key-8n8</guid>
      <description>&lt;p&gt;Hi DEV! I'm Francisco (Chico), a developer from Lisbon, and this is my first post here.&lt;/p&gt;

&lt;p&gt;For the last few months I've been building &lt;strong&gt;&lt;a href="https://somnus.world" rel="noopener noreferrer"&gt;Somnus&lt;/a&gt;&lt;/strong&gt;, a desktop AI agent for Windows and Linux that lets you work with Claude, GPT, Gemini, DeepSeek, Grok, Qwen, Kimi, GLM and more from one workspace and one prepaid balance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I built it
&lt;/h2&gt;

&lt;p&gt;I kept juggling API keys, dashboards and billing pages for every model provider. I wanted one place to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;switch models mid-task without changing tools&lt;/li&gt;
&lt;li&gt;pay as I go instead of stacking subscriptions&lt;/li&gt;
&lt;li&gt;use the same account from a desktop app &lt;em&gt;and&lt;/em&gt; from my terminal&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;The desktop app is based on &lt;a href="https://github.com/NousResearch" rel="noopener noreferrer"&gt;Hermes Agent&lt;/a&gt; by Nous Research (MIT license), with its own identity and a model gateway behind it.&lt;/p&gt;

&lt;p&gt;The gateway is OpenAI-compatible, so existing code only needs a different base URL and key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;openai&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;OpenAI&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;OpenAI&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;SOMNUS_API_KEY&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="n"&gt;base_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://somnus.world/api/public/gateway/v1&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;completions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;claude-sonnet-5&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;role&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;user&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;content&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello DEV!&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}],&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;choices&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Change the &lt;code&gt;model&lt;/code&gt; field and the same code talks to GPT, Gemini or DeepSeek.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it's at
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;✅ Windows and Linux (AppImage and .deb)&lt;/li&gt;
&lt;li&gt;🛠️ Mac is in progress&lt;/li&gt;
&lt;li&gt;💳 Prepaid top-ups from $5, and credit doesn't expire&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I'll write about here
&lt;/h2&gt;

&lt;p&gt;I'm planning to share the build as it goes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;building a desktop agent on top of an open-source project&lt;/li&gt;
&lt;li&gt;running a multi-provider model gateway (routing, usage tracking, billing)&lt;/li&gt;
&lt;li&gt;the not-so-glamorous side: launching on a brand-new domain and learning SEO the hard way&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're building with LLM APIs, I'd love to hear what annoys you most about juggling providers. &lt;/p&gt;

&lt;p&gt;Feedback, questions and criticism are all welcome in the comments.&lt;/p&gt;

&lt;p&gt;Thanks for reading! 🌙&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
