<?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: don</title>
    <description>The latest articles on DEV Community by don (@0don).</description>
    <link>https://dev.to/0don</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%2F1318635%2F185c3514-9e6c-47ab-9339-ab85a67ffd9a.jpeg</url>
      <title>DEV Community: don</title>
      <link>https://dev.to/0don</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/0don"/>
    <language>en</language>
    <item>
      <title>Why I Use the Same LLM Key for Claude Code and My Character Chats</title>
      <dc:creator>don</dc:creator>
      <pubDate>Mon, 08 Jun 2026 21:54:15 +0000</pubDate>
      <link>https://dev.to/0don/why-i-use-the-same-llm-key-for-claude-code-and-my-character-chats-502n</link>
      <guid>https://dev.to/0don/why-i-use-the-same-llm-key-for-claude-code-and-my-character-chats-502n</guid>
      <description>&lt;p&gt;For a while I had two LLM setups. One key wired into my coding agent (Claude Code, Cline). A different key, different provider, for the character-chat client I mess with on weekends. Two dashboards, two top-ups, two model lists to keep straight.&lt;/p&gt;

&lt;p&gt;That split is everywhere in this space, and once you notice it you can't unsee it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Every AI gateway picks one lane
&lt;/h2&gt;

&lt;p&gt;Look at the OpenAI-compatible gateways and they sort cleanly into two camps:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Developer gateways&lt;/strong&gt; - &lt;a href="https://megallm.io" rel="noopener noreferrer"&gt;MegaLLM&lt;/a&gt;, &lt;a href="https://portkey.ai" rel="noopener noreferrer"&gt;Portkey&lt;/a&gt;, &lt;a href="https://litellm.ai" rel="noopener noreferrer"&gt;LiteLLM&lt;/a&gt;, &lt;a href="https://openrouter.ai" rel="noopener noreferrer"&gt;OpenRouter&lt;/a&gt;. The pitch is reliability, failover, cost, analytics. They are headless: you get an API, you bring your own interface. Great for shipping code, nothing to actually &lt;em&gt;use&lt;/em&gt; without building a client first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Roleplay / chat marketplaces&lt;/strong&gt; - the nano-gpt-style services. The pitch is a big catalog of creative models and a chat UI for hobbyists. Good for character chat, but they are not where you point a coding agent, and the dev story is an afterthought.&lt;/p&gt;

&lt;p&gt;So you end up with one tool for work and another for play, even though under the hood they are the exact same thing: an OpenAI-compatible endpoint in front of a pile of models.&lt;/p&gt;

&lt;h2&gt;
  
  
  The thing I actually wanted: one key for both
&lt;/h2&gt;

&lt;p&gt;That is the gap &lt;a href="https://unorouter.ai" rel="noopener noreferrer"&gt;UnoRouter&lt;/a&gt; fills, and it is the only reason I bring it up. It is one OpenAI-compatible key that works in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Coding agents&lt;/strong&gt; - OpenCode, Cline, Kilo Code, Codex, Claude Code. Same base URL, latency-based routing across 200+ models, automatic failover.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A built-in chat and character client&lt;/strong&gt; - personas, lorebooks, presets, branch-editing, SillyTavern card v2/v3 import - &lt;em&gt;and&lt;/em&gt; the same key drops into SillyTavern, Janitor.AI, RisuAI, or Chub if you prefer those.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Not an RP app with an API bolted on. Not a headless proxy with no face. The gateway and the client are the same product, sharing the same key, the same models, the same credits.&lt;/p&gt;

&lt;h2&gt;
  
  
  Switching is a base-URL change
&lt;/h2&gt;

&lt;p&gt;Because it is OpenAI-compatible, moving an existing app over is one line:&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="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;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://api.unorouter.ai/v1&lt;/span&gt;&lt;span class="sh"&gt;"&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="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;YOUR_KEY&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;gpt-5.5&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;            &lt;span class="c1"&gt;# or claude / gemini ids - format auto-detected
&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&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;The same key, pasted into a chat client's "custom OpenAI endpoint" field, reaches the same catalog. No second account.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it fits
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;You want&lt;/th&gt;
&lt;th&gt;Reach for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Lowest setup, widest catalog&lt;/td&gt;
&lt;td&gt;OpenRouter&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lowest markup at scale, self-hosted&lt;/td&gt;
&lt;td&gt;LiteLLM&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Production observability/governance&lt;/td&gt;
&lt;td&gt;Portkey&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;One key for code &lt;em&gt;and&lt;/em&gt; a chat/character client&lt;/td&gt;
&lt;td&gt;UnoRouter&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you only ever ship code, a pure dev gateway is fine. If you only ever do character chat, a chat marketplace is fine. I wanted to stop running both - that is the whole story.&lt;/p&gt;

&lt;p&gt;What are you using, and do you keep your "work" and "play" LLM setups separate too?&lt;/p&gt;

</description>
      <category>webdev</category>
    </item>
  </channel>
</rss>
