<?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: tomipnh</title>
    <description>The latest articles on DEV Community by tomipnh (@tomipnh).</description>
    <link>https://dev.to/tomipnh</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%2F858262%2Fdc6cf3b4-7012-4d42-a78b-fd7f1c4dd6a6.jpg</url>
      <title>DEV Community: tomipnh</title>
      <link>https://dev.to/tomipnh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tomipnh"/>
    <language>en</language>
    <item>
      <title>Aligning a personal site with IndieWeb and web standards</title>
      <dc:creator>tomipnh</dc:creator>
      <pubDate>Sun, 06 Dec 2026 16:07:04 +0000</pubDate>
      <link>https://dev.to/tomipnh/aligning-a-personal-site-with-indieweb-and-web-standards-1nkn</link>
      <guid>https://dev.to/tomipnh/aligning-a-personal-site-with-indieweb-and-web-standards-1nkn</guid>
      <description>&lt;h2&gt;
  
  
  RECLAIMING THE DOMAIN
&lt;/h2&gt;

&lt;p&gt;I recently decided it was finally time to kill the "coming soon"-like placeholder on my main domain, htsh.pl. The initial plan was simple: throw up a minimalist personal/semi-business vCard and call it a day.&lt;/p&gt;

&lt;p&gt;But scope creep set in. That simple vCard evolved into a full-fledged hub featuring a blog, project showcases, and a repository for technical tidbits and research notes - all wrapped in a dark-mode, teletext-inspired aesthetic.&lt;/p&gt;

&lt;p&gt;Building a site from scratch in 2026, it's easy to assume you already know how the internet works: buy a domain, provision hosting, write some markup. But building something meant to last and interoperate with the broader web means revisiting the actual standards. If you're starting this journey, the &lt;a href="https://indieweb.org/Getting_Started" rel="noopener noreferrer"&gt;IndieWeb Getting Started guide&lt;/a&gt; is the perfect launchpad.&lt;/p&gt;

&lt;p&gt;Here's what I ended up auditing and adding to htsh.pl - from the boring web basics to the IndieWeb-specific pieces.&lt;/p&gt;

&lt;h2&gt;
  
  
  WHO ACTUALLY SETS THE STANDARDS
&lt;/h2&gt;

&lt;p&gt;Before diving into code, it helps to know who's driving the underlying rules of the web. A few key organizations do most of the heavy lifting:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://whatwg.org/" rel="noopener noreferrer"&gt;WHATWG (Web Hypertext Application Technology Working Group)&lt;/a&gt;&lt;/strong&gt; - founded in 2004 by Apple, Mozilla, and Opera, and maintains the HTML Living Standard and DOM specifications.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://www.w3.org/" rel="noopener noreferrer"&gt;W3C (World Wide Web Consortium)&lt;/a&gt;&lt;/strong&gt; - the primary international standards body handling CSS, accessibility guidelines, and the Webmention spec used below.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://www.ietf.org/" rel="noopener noreferrer"&gt;IETF (Internet Engineering Task Force)&lt;/a&gt;&lt;/strong&gt; - standardizes the protocol layer underneath all of this: HTTP itself (RFC 9110) and, more relevant here, &lt;code&gt;robots.txt&lt;/code&gt; (RFC 9309).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://www.ecma-international.org/" rel="noopener noreferrer"&gt;ECMA International&lt;/a&gt;&lt;/strong&gt; - standardizes JavaScript (ECMAScript) and related runtime specs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  THE BORING BASELINE
&lt;/h2&gt;

&lt;p&gt;Before adding any IndieWeb-specific markup, I went through the less exciting parts of the site first. Most of them don't need a framework or another service - they just need to be done properly.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Semantic HTML and accessibility&lt;/strong&gt; - pages use proper landmarks and native elements (&lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;nav&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;main&amp;gt;&lt;/code&gt;) where possible instead of rebuilding browser behaviour from &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;s. On this site, CSS is what turns that plain HTML into the retro ModeSeven-powered teletext interface you're reading right now. Semantic markup gives screen readers and keyboard users a decent baseline for free, but it doesn't remove the need to check focus order, contrast, alt text, and keyboard navigation separately, or the need to build against a real standard: &lt;a href="https://www.w3.org/TR/WCAG22/" rel="noopener noreferrer"&gt;WCAG 2.2&lt;/a&gt; today, not &lt;a href="https://www.w3.org/TR/wcag-3.0/" rel="noopener noreferrer"&gt;WCAG 3.0&lt;/a&gt;, which would overhaul how accessibility is measured but is still a Working Draft as of its September 10, 2026 update.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Responsive layout&lt;/strong&gt; - the teletext aesthetic is intentionally rigid-looking, but the layout itself still has to survive narrow screens without horizontal scrolling or unusable navigation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security headers&lt;/strong&gt; - HSTS, &lt;code&gt;X-Frame-Options&lt;/code&gt;, &lt;code&gt;Referrer-Policy&lt;/code&gt;, and &lt;code&gt;Permissions-Policy&lt;/code&gt; were already present. CSP was the missing piece, so I added it at the same layer that manages the rest of the response headers rather than treating it as a separate feature.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Privacy signals&lt;/strong&gt; - the site doesn't collect much in the first place, but it still makes sense to respect browser-level signals such as &lt;a href="https://www.w3.org/TR/gpc/" rel="noopener noreferrer"&gt;Global Privacy Control&lt;/a&gt;. GPC is still a W3C Working Draft (last updated September 24, 2026), but browser support is already widespread enough that ignoring it would be a strange default.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Crawler policy&lt;/strong&gt; - &lt;code&gt;robots.txt&lt;/code&gt; is no longer only about search-engine indexing. In 2026 it also carries vendor-specific controls for AI use. Some names, such as &lt;code&gt;GPTBot&lt;/code&gt;, &lt;code&gt;ClaudeBot&lt;/code&gt;, and &lt;code&gt;CCBot&lt;/code&gt;, are actual crawlers. Others, including &lt;code&gt;Google-Extended&lt;/code&gt; and &lt;code&gt;Applebot-Extended&lt;/code&gt;, are policy tokens controlling how content collected by the corresponding crawlers may be used.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;My policy is intentionally permissive. I don't mind the site being indexed or used by AI systems, so I explicitly allow the relevant agents and tokens instead of leaving that policy implicit behind &lt;code&gt;User-agent: *&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;None of this is particularly interesting technology. That's probably the point: the boring baseline should already be in place before adding another layer of metadata and protocols on top.&lt;/p&gt;

&lt;h2&gt;
  
  
  JOINING THE INDIEWEB: MICROFORMATS VS JSON-LD
&lt;/h2&gt;

&lt;p&gt;This is where standard web design turns into being a good citizen of the open web. Instead of relying solely on platform algorithms, IndieWeb is about owning your data on your own domain first.&lt;/p&gt;

&lt;p&gt;To get there, htsh.pl runs a dual-strategy: &lt;a href="https://microformats.org/" rel="noopener noreferrer"&gt;microformats2&lt;/a&gt; for IndieWeb tooling, and Schema.org JSON-LD for search engines. They overlap in purpose but serve different readers, and both coexist fine on the same page.&lt;/p&gt;

&lt;h3&gt;
  
  
  Microformats2: h-card and h-entry
&lt;/h3&gt;

&lt;p&gt;Microformats are just HTML class names - &lt;code&gt;h-card&lt;/code&gt;, &lt;code&gt;h-entry&lt;/code&gt;, &lt;code&gt;p-name&lt;/code&gt;, &lt;code&gt;u-url&lt;/code&gt; - that make existing markup machine-readable, no API or schema registry required. On htsh.pl:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The homepage identity block is wrapped in &lt;code&gt;h-card&lt;/code&gt;, with &lt;code&gt;p-name&lt;/code&gt; on my name, &lt;code&gt;u-photo&lt;/code&gt; on my avatar, and &lt;code&gt;u-url&lt;/code&gt; marking the canonical link back to the domain.&lt;/li&gt;
&lt;li&gt;Every blog post and tidbit is wrapped in &lt;code&gt;h-entry&lt;/code&gt;, with &lt;code&gt;p-name&lt;/code&gt; on the title, &lt;code&gt;dt-published&lt;/code&gt; on the publish date (in ISO8601 with a timezone), &lt;code&gt;e-content&lt;/code&gt; around the body, and &lt;code&gt;p-category&lt;/code&gt; for each tag.&lt;/li&gt;
&lt;li&gt;Each entry also carries a &lt;code&gt;p-author h-card&lt;/code&gt; pointing back at my name and homepage - it's &lt;code&gt;hidden&lt;/code&gt;, since the page already displays my identity visibly elsewhere, but parsers read the DOM regardless of CSS visibility. The same link also carries &lt;code&gt;rel="author"&lt;/code&gt; as a compatibility hint for older tooling, even though current IndieWeb practice treats it as legacy - &lt;code&gt;p-author&lt;/code&gt; inside the &lt;code&gt;h-entry&lt;/code&gt; is the modern way to expose authorship, and this site already has that covered.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  rel=me: linking the identity together
&lt;/h3&gt;

&lt;p&gt;The &lt;code&gt;h-card&lt;/code&gt; describes who the page belongs to, but it doesn't by itself connect that identity to profiles elsewhere. That's where &lt;code&gt;rel="me"&lt;/code&gt; comes in: it says that another URL represents the same person.&lt;/p&gt;

&lt;p&gt;On htsh.pl, the GitHub and LinkedIn links carry it directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://github.com/krzlew"&lt;/span&gt; &lt;span class="na"&gt;rel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"me"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;GitHub&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://www.linkedin.com/in/krzysztof-lewczuk/"&lt;/span&gt; &lt;span class="na"&gt;rel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"me"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;LinkedIn&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The useful part is the backlink. My GitHub profile's Website field points back to &lt;code&gt;htsh.pl&lt;/code&gt;, creating a reciprocal relationship between the two URLs - that's what makes &lt;code&gt;rel="me"&lt;/code&gt; checkable by other tools, not just declarative.&lt;/p&gt;

&lt;h3&gt;
  
  
  Schema.org / JSON-LD
&lt;/h3&gt;

&lt;p&gt;Microformats2 covers the IndieWeb side of the site. For search-engine structured data, every post also includes a Schema.org &lt;code&gt;application/ld+json&lt;/code&gt; script block, which is what &lt;a href="https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data" rel="noopener noreferrer"&gt;Google recommends for most structured-data implementations&lt;/a&gt;, so crawlers know exactly who wrote the article and when it was published. Both markup styles read the same underlying facts - they just target different audiences, and neither one replaces the other.&lt;/p&gt;

&lt;h3&gt;
  
  
  POSSE and social cards
&lt;/h3&gt;

&lt;p&gt;I already follow the basic &lt;strong&gt;POSSE&lt;/strong&gt; idea - Publish (on your) Own Site, Syndicate Elsewhere - although the syndication part is manual.&lt;/p&gt;

&lt;p&gt;Posts are published on htsh.pl first, and some of them are then adapted and posted to LinkedIn. There is no automation or publishing API involved; I just treat my own site as the canonical copy and LinkedIn as the distribution channel.&lt;/p&gt;

&lt;p&gt;What I haven't added yet is &lt;code&gt;u-syndication&lt;/code&gt;. For posts that have a corresponding LinkedIn copy, I could point it at that post's permalink and make the relationship explicit in the markup. For everything else there is nothing to advertise, so adding empty or invented syndication links would just be checklist theater.&lt;/p&gt;

&lt;p&gt;Separately, the site publishes Open Graph (&lt;code&gt;og:image&lt;/code&gt;, &lt;code&gt;og:title&lt;/code&gt;) and Twitter Card metadata using the pixel avatar. That's unrelated to POSSE itself - it controls how links render when someone shares them in places such as Discord, LinkedIn or Mastodon.&lt;/p&gt;

&lt;p&gt;To support following the site without a platform in the loop at all, it also serves standard &lt;strong&gt;RSS and Atom feeds&lt;/strong&gt; (&lt;code&gt;/feed.xml&lt;/code&gt; and &lt;code&gt;/atom.xml&lt;/code&gt;). All roads lead back to the domain.&lt;/p&gt;

&lt;h2&gt;
  
  
  VALIDATION, WEBMENTIONS, AND COMMENTS
&lt;/h2&gt;

&lt;p&gt;Before calling this done, test it against the checklists the IndieWeb community built for exactly this purpose:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://indiewebify.me/" rel="noopener noreferrer"&gt;IndieWebify.me&lt;/a&gt;&lt;/strong&gt; - validates h-card, rel-me, h-entry, and Webmention support step by step.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://specification.website/about/" rel="noopener noreferrer"&gt;Specification.website&lt;/a&gt;&lt;/strong&gt; - a broader all-in-one checklist for general web standards compliance.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The social layer
&lt;/h3&gt;

&lt;p&gt;I ended up with two separate interaction paths:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.w3.org/TR/webmention/" rel="noopener noreferrer"&gt;Webmention&lt;/a&gt;&lt;/strong&gt; is a decentralized link-notification protocol that can carry replies, mentions and other cross-site interactions. Two lines in &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; point at a receiving endpoint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"webmention"&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://webmention.io/htsh.pl/webmention"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"pingback"&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://webmention.io/htsh.pl/xmlrpc"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The endpoint itself is hosted by &lt;strong&gt;&lt;a href="https://webmention.io/" rel="noopener noreferrer"&gt;webmention.io&lt;/a&gt;&lt;/strong&gt; - free, and it doesn't do anything until the domain is claimed there via IndieAuth. Claiming works via a RelMeAuth-style check: IndieAuth confirms a domain and an external profile belong to the same person by looking for exactly the reciprocal &lt;code&gt;rel="me"&lt;/code&gt; backlink set up earlier, on GitHub in my case. Webmention itself has no identity requirement at all, though - at the protocol level, a source just tells a target that it links there, and the target fetches the source URL to confirm the link actually exists. &lt;code&gt;rel="me"&lt;/code&gt; only matters for this claiming step, not for the act of sending or receiving a Webmention. Once claimed, when someone links to a post here from a Webmention-aware site, their server notifies the webmention.io endpoint advertised by my page, and the mention shows up in a feed I can check.&lt;/p&gt;

&lt;p&gt;I deliberately skipped webmention.io's webhook option, which pushes new mentions to a callback URL instead of me polling the feed - that needs a server to receive the POST, and this is a static Eleventy site with no backend. Standing up a serverless function just to avoid checking an Atom feed occasionally isn't worth the infrastructure for the mention volume a small personal site actually gets.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://giscus.app/" rel="noopener noreferrer"&gt;Giscus&lt;/a&gt;&lt;/strong&gt; covers traditional, human-readable comments right on the page, backed by GitHub Discussions. Webmention and Giscus aren't competing with each other here; Giscus is for readers who want to leave a comment directly, Webmention is for readers who wrote their own response elsewhere and want this site to know about it.&lt;/p&gt;

&lt;h2&gt;
  
  
  POST-LAUNCH MONITORING
&lt;/h2&gt;

&lt;p&gt;Once the site is live, you need to tell the web it exists:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add the site to &lt;a href="https://search.google.com/search-console" rel="noopener noreferrer"&gt;Google Search Console&lt;/a&gt; and &lt;a href="https://www.bing.com/webmasters" rel="noopener noreferrer"&gt;Bing Webmaster Tools&lt;/a&gt; to monitor indexing and organic performance.&lt;/li&gt;
&lt;li&gt;Implement &lt;strong&gt;&lt;a href="https://www.indexnow.org/documentation" rel="noopener noreferrer"&gt;IndexNow&lt;/a&gt;&lt;/strong&gt; - instead of waiting for crawlers to find new posts, the server notifies participating search engines the moment a page is published or updated. Current participants include Bing, Amazon, Naver, Seznam, Yandex, and Yep; Google isn't among them.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  WHERE I STOPPED
&lt;/h2&gt;

&lt;p&gt;The useful cutoff turned out to be fairly simple: anything that improves interoperability for almost no runtime cost stays. Semantic markup, microformats, feeds, &lt;code&gt;rel="me"&lt;/code&gt;, structured data and Webmention discovery all fall into that category.&lt;/p&gt;

&lt;p&gt;The line moves once another service, credential, deployment target or backend is involved. Syndication happens manually to LinkedIn today, so there is no &lt;code&gt;u-syndication&lt;/code&gt; markup yet - adding it once that copy's permalink actually exists is cheap, but automating the syndication itself is not, so it stays manual. Webmention volume doesn't justify a webhook receiver, so I poll the feed. There is no point adding infrastructure just to tick another IndieWeb box.&lt;/p&gt;

&lt;p&gt;That is probably the part of this rebuild I want to keep: use the standards where they solve an actual problem, and stop when implementing the next one becomes checklist theater.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally posted on &lt;a href="https://htsh.pl/blog/web-standards-audit/" rel="noopener noreferrer"&gt;htsh.pl/blog/web-standards-audit&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>css</category>
      <category>frontend</category>
      <category>html</category>
      <category>webdev</category>
    </item>
    <item>
      <title>GitHub OIDC to AWS and Azure: no more static cloud keys</title>
      <dc:creator>tomipnh</dc:creator>
      <pubDate>Sat, 05 Dec 2026 14:20:57 +0000</pubDate>
      <link>https://dev.to/tomipnh/github-oidc-to-aws-and-azure-no-more-static-cloud-keys-1eo6</link>
      <guid>https://dev.to/tomipnh/github-oidc-to-aws-and-azure-no-more-static-cloud-keys-1eo6</guid>
      <description>&lt;h2&gt;
  
  
  PROBLEM
&lt;/h2&gt;

&lt;p&gt;Before OIDC federation, every deploy workflow carried long-lived cloud credentials. On AWS it was an access key pair stored in an Actions secret; on Azure a client secret in an app registration. Both had the same two problems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;They never expire unless you make them expire, and nobody rotates secrets that haven't caused an incident yet.&lt;/li&gt;
&lt;li&gt;The credential is scope-free at the point of use. Whatever the key can do, any workflow in the repository can do, on any branch, forever.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In a software house building medical software, this also shows up in audits: "who could have touched production with this credential, and when?" A static key in a GitHub secret has an answer nobody likes - "any workflow in the repo, since we created it, and we don't log that."&lt;/p&gt;

&lt;p&gt;So the goal: no static cloud credentials in CI at all. Workflows exchange a short-lived GitHub-issued token for a scoped cloud session, scoped per repository and per branch (or, for production, per GitHub Environment), and every exchange is logged on the cloud side.&lt;/p&gt;

&lt;h2&gt;
  
  
  SUMMARY
&lt;/h2&gt;

&lt;p&gt;GitHub Actions can mint a signed OIDC token for every job (&lt;code&gt;https://token.actions.githubusercontent.com&lt;/code&gt;). AWS IAM and Azure Entra ID both trust that issuer natively. You register the issuer once per cloud, attach a trust policy that names your repository and branch, and then workflows assume a role / identity at deploy time with &lt;code&gt;permissions: id-token: write&lt;/code&gt;. The credential lives for about an hour, is scoped by the trust policy, and every use lands in CloudTrail or Entra sign-in logs - which doubles as ISO 27001 audit evidence.&lt;/p&gt;

&lt;p&gt;This follows naturally from the &lt;a href="https://htsh.pl/blog/multiple-github-runners/" rel="noopener noreferrer"&gt;self-hosted runners setup&lt;/a&gt;: runners no longer need any cloud secret in their environment either. The only credential the runner ever sees is the short-lived session it assumes itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  SETUP - AWS
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Register the OIDC provider
&lt;/h3&gt;

&lt;p&gt;Once per account:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aws iam create-open-id-connect-provider \
  --url https://token.actions.githubusercontent.com \
  --client-id-list sts.amazonaws.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run once per AWS account, in whatever region you manage IAM from - IAM is a global service, so this isn't a per-region step. &lt;code&gt;[ACCOUNT]&lt;/code&gt; below is that account's 12-digit ID.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Create a role per repository
&lt;/h3&gt;

&lt;p&gt;Resist the single god-role. First the trust policy - the &lt;code&gt;sub&lt;/code&gt; claim is the whole game:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"Version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2012-10-17"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"Statement"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"Effect"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Allow"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"Principal"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"Federated"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"arn:aws:iam::[ACCOUNT]:oidc-provider/token.actions.githubusercontent.com"&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"Action"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sts:AssumeRoleWithWebIdentity"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"Condition"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"StringEquals"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"token.actions.githubusercontent.com:aud"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"sts.amazonaws.com"&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"StringLike"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"token.actions.githubusercontent.com:sub"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"repo:your-org/your-repo:ref:refs/heads/main"&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&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;Then create the role from that trust policy and attach only the permissions that repo's deploy actually needs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aws iam create-role \
  --role-name deploy-your-repo \
  --assume-role-policy-document file://trust-policy.json

aws iam attach-role-policy \
  --role-name deploy-your-repo \
  --policy-arn arn:aws:iam::&lt;span class="o"&gt;[&lt;/span&gt;ACCOUNT&lt;span class="o"&gt;]&lt;/span&gt;:policy/deploy-your-repo-permissions
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Repeat per repo/branch. &lt;code&gt;StringLike&lt;/code&gt; supports patterns if you want to allow &lt;code&gt;release/*&lt;/code&gt; branches too - keep the pattern tight.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The workflow
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;id-token&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;   &lt;span class="c1"&gt;# this line is the OIDC mint switch
&lt;/span&gt;  &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;

&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;deploy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;self-hosted&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;linux&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;aws-actions/configure-aws-credentials@v4&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;role-to-assume&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;arn:aws:iam::[ACCOUNT]:role/deploy-your-repo&lt;/span&gt;
          &lt;span class="na"&gt;aws-region&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;eu-central-1&lt;/span&gt;
          &lt;span class="na"&gt;role-session-name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gha-${{ github.run_id }}&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;aws sts get-caller-identity&lt;/span&gt;   &lt;span class="c1"&gt;# sanity check
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No secrets block. Nothing to rotate. Key created 90 days ago in some onboarding doc - gone.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Audit: check for leftovers
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aws iam list-users --query &lt;span class="s1"&gt;'Users[?PasswordLastUsed==null]'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then delete any access key whose last-used date predates the OIDC cutover. CloudTrail will now show &lt;code&gt;AssumeRoleWithWebIdentity&lt;/code&gt; events instead of &lt;code&gt;AssumeRole&lt;/code&gt; with a static key - that's your evidence trail for access reviews.&lt;/p&gt;

&lt;h2&gt;
  
  
  SETUP - AZURE
&lt;/h2&gt;

&lt;p&gt;Azure calls the same thing federated identity credentials, attached to an app registration or (nicer, see step 3) a user-assigned managed identity. The steps below use a managed identity throughout.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Create the managed identity and attach the federation
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;az identity create \
  --name gha-deploy-your-repo \
  --resource-group your-resource-group

az identity federated-credential create \
  --identity-name gha-deploy-your-repo \
  --resource-group your-resource-group \
  --name gha-your-repo-main \
  --issuer https://token.actions.githubusercontent.com \
  --subject repo:your-org/your-repo:ref:refs/heads/main \
  --audiences api://AzureADTokenExchange
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;subject&lt;/code&gt; format is identical to AWS's &lt;code&gt;sub&lt;/code&gt; claim - same &lt;code&gt;repo:org/name:ref:...&lt;/code&gt; grammar, learn once use twice. Note the &lt;code&gt;client-id&lt;/code&gt; on the identity you just created; the workflow below needs it.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. The workflow
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;id-token&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;
  &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;

&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;deploy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;self-hosted&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;linux&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;azure/login@v2&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;client-id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;MANAGED_IDENTITY_CLIENT_ID&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
          &lt;span class="na"&gt;tenant-id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;TENANT_ID&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
          &lt;span class="c1"&gt;# no client-secret. that's the point.
&lt;/span&gt;      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;az account show&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Why a managed identity over an app registration
&lt;/h3&gt;

&lt;p&gt;An app registration still has owners who could attach a client secret to it later - the federation doesn't remove that door, it just adds another one. A user-assigned managed identity, as far as I've been able to confirm, has no client-secret mechanism at all: there's no "add a secret" option in the portal or CLI for it, so federation is the only credential path in. I haven't tested this against every tenant policy or Bicep-managed setup, so if your org enforces custom restrictions on managed identities, verify against your own tenant before relying on it.&lt;/p&gt;

&lt;h2&gt;
  
  
  WHAT DIDN'T WORK / GOTCHAS
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;AADSTS70021: No matching federated identity record found&lt;/code&gt; - the classic. 90% of the time it's the subject string. GitHub sends &lt;code&gt;repo:org/name:ref:refs/heads/main&lt;/code&gt; - full &lt;code&gt;ref:&lt;/code&gt; prefix, full ref path. A trust policy that expects just &lt;code&gt;main&lt;/code&gt; or &lt;code&gt;refs/heads/main&lt;/code&gt; without the &lt;code&gt;repo:&lt;/code&gt; prefix matches nothing. The error message doesn't tell you which part mismatched; decode the token from the failing job (print it with a debug step, then rotate nothing - it's expired already) and compare claim by claim.&lt;/li&gt;
&lt;li&gt;On AWS the equivalent failure is &lt;code&gt;Not authorized to perform sts:AssumeRoleWithWebIdentity&lt;/code&gt; - same cause, same debugging. Also: forgetting &lt;code&gt;permissions: id-token: write&lt;/code&gt; on the job produces a token-less runner and the exact same error, which sends you debugging the trust policy when the policy is fine.&lt;/li&gt;
&lt;li&gt;The AWS thumbprint rabbit hole. Older guides (including AWS's own) had you pin a server certificate thumbprint on the OIDC provider. AWS then rotated their trusted CA set and broke setups that had pinned it. Today AWS fetches GitHub's trusted roots automatically and the thumbprint field is effectively ignored - don't set one, and if an old provider has one, that's a migration item, not a safety feature.&lt;/li&gt;
&lt;li&gt;Fork pull requests. A fork PR could otherwise mint tokens for &lt;code&gt;repo:your-org/your-repo:refs/pull/N/merge&lt;/code&gt;. GitHub's default behavior here is correct: workflows triggered by fork PRs cannot request &lt;code&gt;id-token: write&lt;/code&gt; at all. Don't work around this; it's one of the few trust boundaries the platform enforces for you.&lt;/li&gt;
&lt;li&gt;The self-hosted runner nuance (this is where it connects to &lt;a href="https://htsh.pl/blog/multiple-github-runners/" rel="noopener noreferrer"&gt;multiple GitHub runners&lt;/a&gt;): the OIDC token is minted by GitHub server-side, so the trust policy still keys off the &lt;em&gt;calling repository&lt;/em&gt;, not the runner. But with shared org-level runners, any repo in the org can run a job on your hardware - and if its trust policy is broad, any repo in the org can get cloud credentials too. The fix is not runner-side. Per-repo roles with tight &lt;code&gt;sub&lt;/code&gt; conditions, plus GitHub Environments with required reviewers for anything production-shaped. The runner being self-hosted changes nothing about the token's identity - that's the design working as intended, not a hole.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  HARDENING CHECKLIST
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One role / federated credential per repo+branch. No shared deploy role across repos.&lt;/li&gt;
&lt;li&gt;Prod deploys go through a GitHub Environment with required reviewers; the trust policy then pins &lt;code&gt;environment:prod&lt;/code&gt; instead of a branch - reviewer approval becomes part of the credential mint.&lt;/li&gt;
&lt;li&gt;Cap session length (&lt;code&gt;--duration-seconds&lt;/code&gt;, default 1h) to what the deploy actually takes.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;role-session-name: gha-${{ github.run_id }}&lt;/code&gt; - every CloudTrail entry then maps 1:1 to a workflow run. Free traceability, which in SaMD-land is the difference between "we have logs" and "we have evidence".&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  CONCLUSION
&lt;/h2&gt;

&lt;p&gt;The static key was an identity problem, not a CI one. After the cutover, "who could deploy to production and when" has a concrete answer in CloudTrail or Entra sign-in logs, and there's nothing left in a secrets store to rotate, leak, or forget.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally posted on &lt;a href="https://htsh.pl/blog/oidc-aws-azure/" rel="noopener noreferrer"&gt;htsh.pl/blog/oidc-aws-azure&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>devops</category>
      <category>githubactions</category>
      <category>security</category>
    </item>
    <item>
      <title>Running a Local MoE Model for Claude Code and VS Code</title>
      <dc:creator>tomipnh</dc:creator>
      <pubDate>Fri, 04 Dec 2026 23:05:02 +0000</pubDate>
      <link>https://dev.to/tomipnh/running-a-local-moe-model-for-claude-code-and-vs-code-449d</link>
      <guid>https://dev.to/tomipnh/running-a-local-moe-model-for-claude-code-and-vs-code-449d</guid>
      <description>&lt;h2&gt;
  
  
  THE SETUP
&lt;/h2&gt;

&lt;p&gt;I wanted one local model on my Mac (M2 Pro, 32 GB unified memory) to power both &lt;strong&gt;Claude Code&lt;/strong&gt; and AI tools inside &lt;strong&gt;VS Code&lt;/strong&gt;, without sending code to an external API.&lt;/p&gt;

&lt;p&gt;The setup that finally worked: Qwen3.6 runs behind Rapid-MLX, which serves Claude Code over its native Anthropic &lt;code&gt;/v1/messages&lt;/code&gt; API and Continue/Roo Code over its OpenAI &lt;code&gt;/v1&lt;/code&gt; API from the same process. No LiteLLM proxy, no translation layer.&lt;/p&gt;

&lt;p&gt;My current model is &lt;code&gt;mlx-community/Qwen3.6-35B-A3B-4bit&lt;/code&gt;: a 35B Mixture-of-Experts model using roughly 20 GB of memory at 4-bit quantization, while activating only a fraction of its expert parameters for each token. That makes it a particularly good fit for Apple Silicon with 32 GB of unified memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  WHY MOE?
&lt;/h2&gt;

&lt;p&gt;Apple Silicon inference is often constrained by memory bandwidth. The M2 Pro has up to roughly 200 GB/s of theoretical unified-memory bandwidth, so repeatedly moving model weights becomes expensive.&lt;/p&gt;

&lt;p&gt;Dense models use essentially the whole model for every generated token. Mixture-of-Experts models instead route each token through only a subset of their expert layers, so an MoE model can have a relatively large total parameter count while keeping the amount of active computation much smaller.&lt;/p&gt;

&lt;p&gt;For my machine, the interesting options were:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Qwen3.6-35B-A3B-4bit&lt;/code&gt; - best overall balance for agentic work&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;DeepSeek-Coder-V2-Lite-Instruct-4bit-mlx&lt;/code&gt; - much lighter and faster&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;gemma-4-26b-a4b-it-4bit&lt;/code&gt; - another MoE alternative&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Benchmarks are further below.&lt;/p&gt;

&lt;h2&gt;
  
  
  WHAT DIDN'T WORK
&lt;/h2&gt;

&lt;p&gt;My first setup routed Claude Code through LiteLLM to &lt;code&gt;mlx_lm.server&lt;/code&gt;. Claude Code expects Anthropic's &lt;code&gt;/v1/messages&lt;/code&gt; API, while &lt;code&gt;mlx_lm.server&lt;/code&gt; exposes an OpenAI-compatible &lt;code&gt;/v1/chat/completions&lt;/code&gt; endpoint, so LiteLLM had to translate between them.&lt;/p&gt;

&lt;p&gt;It worked badly enough that I wouldn't recommend it. Anthropic-specific request handling created friction, and tool calling with Qwen3.6 was unreliable in my setup.&lt;/p&gt;

&lt;p&gt;I then tried replacing Claude Code with OpenCode, expecting its OpenAI-compatible provider to remove the translation problem completely. That failed too: OpenCode 1.18.30 consistently crashed on this machine with &lt;code&gt;TypeError: undefined is not an object (evaluating 'a.name')&lt;/code&gt;, inside &lt;code&gt;SystemPrompt.environment&lt;/code&gt;. The crash reproduced against multiple backends, so I stopped debugging it as an MLX problem.&lt;/p&gt;

&lt;p&gt;The fix was to keep Claude Code and replace the server.&lt;/p&gt;

&lt;h2&gt;
  
  
  RAPID-MLX
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://pypi.org/project/rapid-mlx/" rel="noopener noreferrer"&gt;&lt;code&gt;rapid-mlx&lt;/code&gt;&lt;/a&gt; exposes an OpenAI-compatible endpoint and a native Anthropic-compatible &lt;code&gt;/v1/messages&lt;/code&gt; endpoint from the same server, so Claude Code can talk to it directly.&lt;/p&gt;

&lt;p&gt;It also supports model-specific tool-call parsing. For Qwen3.6, Rapid-MLX automatically selects the &lt;code&gt;qwen3_coder_xml&lt;/code&gt; parser. That's what removes LiteLLM entirely - Claude Code talks straight to Rapid-MLX, which talks straight to Qwen3.6.&lt;/p&gt;

&lt;p&gt;I verified this with an actual multi-step Claude Code tool call: create a file, read it back, and confirm its contents.&lt;/p&gt;

&lt;h2&gt;
  
  
  SETUP
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Install Rapid-MLX
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 -m venv ~/mlx-env
&lt;span class="nb"&gt;source&lt;/span&gt; ~/mlx-env/bin/activate

pip install rapid-mlx
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude Code and your VS Code AI extension are assumed to already be installed.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Start the server
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rapid-mlx serve mlx-community/Qwen3.6-35B-A3B-4bit --port 8090
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Rapid-MLX prints both endpoints on startup - the OpenAI-compatible one at &lt;code&gt;http://127.0.0.1:8090/v1&lt;/code&gt;, and the Anthropic-compatible one at the server root, &lt;code&gt;http://127.0.0.1:8090&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Verify it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl http://localhost:8090/v1/models
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  CLAUDE CODE
&lt;/h2&gt;

&lt;p&gt;Point Claude Code directly at the Anthropic-compatible endpoint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;ANTHROPIC_BASE_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"http://127.0.0.1:8090"&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;ANTHROPIC_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"sk-noop"&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;ANTHROPIC_MODEL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mlx-community/Qwen3.6-35B-A3B-4bit"&lt;/span&gt;

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

&lt;/div&gt;



&lt;p&gt;No proxy or special command-line flags are required for normal use.&lt;/p&gt;

&lt;p&gt;Rapid-MLX can also configure Claude Code automatically:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;rapid-mlx agents claude-code --setup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This writes the required configuration to &lt;code&gt;~/.claude/settings.json&lt;/code&gt; after showing the changes and asking for confirmation.&lt;/p&gt;

&lt;p&gt;Claude Code may warn that it doesn't recognize the model name. In my setup this only affects assumptions such as the context window used by auto-compaction; it does not prevent the model from working.&lt;/p&gt;

&lt;h2&gt;
  
  
  VS CODE
&lt;/h2&gt;

&lt;p&gt;The same server can simultaneously expose its OpenAI-compatible API to VS Code extensions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Continue
&lt;/h3&gt;

&lt;p&gt;Add this to &lt;code&gt;~/.continue/config.yaml&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;models&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Local Qwen MoE&lt;/span&gt;
    &lt;span class="na"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;openai&lt;/span&gt;
    &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;mlx-community/Qwen3.6-35B-A3B-4bit&lt;/span&gt;
    &lt;span class="na"&gt;apiBase&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;http://localhost:8090/v1&lt;/span&gt;
    &lt;span class="na"&gt;apiKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;dummy&lt;/span&gt;

&lt;span class="na"&gt;tabAutocompleteModel&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Local Qwen MoE Autocomplete&lt;/span&gt;
  &lt;span class="na"&gt;provider&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;openai&lt;/span&gt;
  &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;mlx-community/Qwen3.6-35B-A3B-4bit&lt;/span&gt;
  &lt;span class="na"&gt;apiBase&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;http://localhost:8090/v1&lt;/span&gt;
  &lt;span class="na"&gt;apiKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;dummy&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Roo Code
&lt;/h3&gt;

&lt;p&gt;Set Provider to "OpenAI Compatible", Base URL to &lt;code&gt;http://localhost:8090/v1&lt;/code&gt;, API Key to &lt;code&gt;dummy&lt;/code&gt;, and Model ID to &lt;code&gt;mlx-community/Qwen3.6-35B-A3B-4bit&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Both clients can use the same running model as Claude Code.&lt;/p&gt;

&lt;h2&gt;
  
  
  VERIFY TOOL CALLING
&lt;/h2&gt;

&lt;p&gt;A normal chat response proves very little. For an agentic coding setup, test actual tools:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;ANTHROPIC_BASE_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"http://127.0.0.1:8090"&lt;/span&gt; \
&lt;span class="nv"&gt;ANTHROPIC_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"sk-noop"&lt;/span&gt; \
&lt;span class="nv"&gt;ANTHROPIC_MODEL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"mlx-community/Qwen3.6-35B-A3B-4bit"&lt;/span&gt; \
claude -p &lt;span class="s2"&gt;"create a file named hello.txt containing 'local moe works', then read it back to confirm"&lt;/span&gt; \
  --tools &lt;span class="s2"&gt;"Bash,Write,Read"&lt;/span&gt; \
  --dangerously-skip-permissions
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This created &lt;code&gt;hello.txt&lt;/code&gt;, read it back, and confirmed its contents - real structured tool calls, not the model just describing what it would do.&lt;/p&gt;

&lt;h3&gt;
  
  
  MCP caveat
&lt;/h3&gt;

&lt;p&gt;A large Claude Code configuration can expose more than 100 tools through MCP servers such as Playwright, Chrome DevTools or Vercel. I hit &lt;code&gt;400&lt;/code&gt; validation errors when one generated MCP tool name exceeded Rapid-MLX's 64-character tool-name limit. For isolated testing, &lt;code&gt;--strict-mcp-config --tools "Bash,Write,Read"&lt;/code&gt; restricts the available tools and avoids the problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  BENCHMARKS
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;mlx-lm&lt;/code&gt; prints prompt and generation throughput, so a simple generation command is enough for a rough comparison:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mlx_lm.generate \
  --model mlx-community/Qwen3.6-35B-A3B-4bit \
  --prompt &lt;span class="s2"&gt;"Write a Python function that reverses a linked list, with tests."&lt;/span&gt; \
  --max-tokens 256
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;All tests below used the same prompt and a 256-token limit on my Mac:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;DeepSeek-Coder-V2-Lite-Instruct-4bit-mlx&lt;/code&gt; - 84.58 tok/s generation, 92.58 tok/s prompt, 9.03 GB peak memory&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Qwen3.6-35B-A3B-4bit&lt;/code&gt; - 61.95 tok/s generation, 7.61 tok/s prompt, 19.66 GB peak memory&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;gemma-4-26b-a4b-it-4bit&lt;/code&gt; - 53.22 tok/s generation, 14.71 tok/s prompt, 14.36 GB peak memory&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;DeepSeek-Coder-V2-Lite is clearly the fastest and lightest of the three. Qwen3.6-35B-A3B remains my preferred model for larger agentic tasks and multi-step tool use - the extra memory usage and lower throughput are worth it once the task goes beyond straightforward code completion.&lt;/p&gt;

&lt;p&gt;For a wider comparison across 29 models on this same machine, see my &lt;a href="https://htsh.pl/tidbits/rapid-mlx-benchmarks/" rel="noopener noreferrer"&gt;rapid-mlx benchmark results&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  PRACTICAL NOTES
&lt;/h2&gt;

&lt;p&gt;On a 32 GB Mac, context size matters almost as much as model size. Large codebases and long agent sessions can push memory pressure high enough to trigger swapping. If that happens, reduce the KV-cache size, shorten the active context, or switch to the smaller DeepSeek-Coder-V2-Lite model.&lt;/p&gt;

&lt;p&gt;For coding work I also tend to keep temperature low, usually around &lt;code&gt;0.0&lt;/code&gt;-&lt;code&gt;0.2&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;I prefer native MLX model conversions from &lt;code&gt;mlx-community&lt;/code&gt; and similar repositories rather than running GGUF through a separate runtime. With this setup, the entire inference stack stays inside MLX and uses Apple Silicon's unified memory directly.&lt;/p&gt;

&lt;h2&gt;
  
  
  CONCLUSION
&lt;/h2&gt;

&lt;p&gt;The API layer mattered more than the model. &lt;code&gt;mlx_lm.server&lt;/code&gt; handles basic OpenAI-compatible inference fine, but Claude Code needs a working Anthropic-compatible API with structured tool calls - Rapid-MLX is the piece that provides both, with no translation layer in between.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally posted on &lt;a href="https://htsh.pl/blog/local-moe-mlx/" rel="noopener noreferrer"&gt;htsh.pl/blog/local-moe-mlx&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>llm</category>
      <category>vscode</category>
    </item>
    <item>
      <title>Multiple GitHub Runners on a Single Machine</title>
      <dc:creator>tomipnh</dc:creator>
      <pubDate>Thu, 03 Dec 2026 23:23:14 +0000</pubDate>
      <link>https://dev.to/tomipnh/multiple-github-runners-on-a-single-machine-2fm4</link>
      <guid>https://dev.to/tomipnh/multiple-github-runners-on-a-single-machine-2fm4</guid>
      <description>&lt;h2&gt;
  
  
  PROBLEM
&lt;/h2&gt;

&lt;p&gt;After GitLab changed its pricing, I migrated our organization's repositories to GitHub. One of the bigger issues in that migration was setting up self-hosted runners.&lt;/p&gt;

&lt;p&gt;GitLab's runner is a single binary with a simple TOML config and just works. &lt;a href="https://docs.github.com/en/actions/concepts/runners/self-hosted-runners" rel="noopener noreferrer"&gt;GitHub's self-hosted runner&lt;/a&gt; is a lot more involved — bash scripts, hundreds of .NET Core DLLs, and a more complicated setup overall. GitLab's runner also has a &lt;code&gt;concurrent&lt;/code&gt; parameter to run multiple jobs in parallel; GitHub's doesn't have an equivalent, so running several jobs at once means running several runner instances.&lt;/p&gt;

&lt;p&gt;Here's how I set that up.&lt;/p&gt;

&lt;h2&gt;
  
  
  SUMMARY
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/myoung34/docker-github-actions-runner" rel="noopener noreferrer"&gt;myoung34/docker-github-actions-runner&lt;/a&gt; handles this well — self-spawning, self-hosted GitHub Actions runners in Docker, with Docker-in-Docker support.&lt;/p&gt;

&lt;p&gt;Usage docs: &lt;a href="https://github.com/myoung34/docker-github-actions-runner/wiki/Usage" rel="noopener noreferrer"&gt;docker-github-actions-runner usage&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  SETUP
&lt;/h2&gt;

&lt;p&gt;I avoided using a personal access token (PAT) tied to a person's account for organization-wide runners, and used a GitHub App instead. You'll need the Owner role on the GitHub organization to set one up.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Create the app under your organization
&lt;/h3&gt;

&lt;p&gt;Create it at the organization level (not your personal account) so ownership stays tied to the org, not to you.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to &lt;code&gt;https://github.com/organizations/&amp;lt;your-org&amp;gt;/settings/apps&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;New GitHub App&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Fill in an app name (e.g. &lt;code&gt;org-runner-manager&lt;/code&gt;) and homepage URL&lt;/li&gt;
&lt;li&gt;Under &lt;strong&gt;Webhook&lt;/strong&gt;, uncheck &lt;strong&gt;Active&lt;/strong&gt; unless you actually want event-driven runners&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  2. Configure permissions
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Repository permissions:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Administration: Read &amp;amp; write (needed for runner registration at repo scope)&lt;/li&gt;
&lt;li&gt;Actions: Read-only&lt;/li&gt;
&lt;li&gt;Metadata: Read-only (default)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Organization permissions&lt;/strong&gt; (required for org-wide runners):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Self-hosted runners: Read &amp;amp; write&lt;/li&gt;
&lt;li&gt;Organization administration: Read-only (or Read &amp;amp; write to manage runner groups)&lt;/li&gt;
&lt;li&gt;Organization custom repository roles: Read-only (optional, enterprise only)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Under "Where can this GitHub App be installed?", choose &lt;strong&gt;Only on this account&lt;/strong&gt;, then click &lt;strong&gt;Create GitHub App&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Get the App ID and generate a private key
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;On the app's General settings page, note the numeric &lt;strong&gt;App ID&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Scroll to &lt;strong&gt;Private keys&lt;/strong&gt;, click &lt;strong&gt;Generate a private key&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;GitHub downloads a &lt;code&gt;.pem&lt;/code&gt; file — keep it secure&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  4. Install the app on the organization
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;In the sidebar, click &lt;strong&gt;Install App&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Install it on your organization&lt;/li&gt;
&lt;li&gt;Choose repository access — all repos, or only selected ones&lt;/li&gt;
&lt;li&gt;Verify at &lt;code&gt;https://github.com/organizations/&amp;lt;your-org&amp;gt;/settings/installations&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  5. Run the runner container
&lt;/h3&gt;

&lt;p&gt;The image handles JWT creation, token exchange, and registration automatically from the App credentials:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;APP_PRIVATE_KEY_CONTENTS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$(cat /path/to/org-runner-manager.*.private-key.pem)"&lt;/span&gt;

docker run -d --restart always --name github-runner-org \
  -e &lt;span class="nv"&gt;RUNNER_SCOPE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"org"&lt;/span&gt; \
  -e &lt;span class="nv"&gt;ORG_NAME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"your-organization"&lt;/span&gt; \
  -e &lt;span class="nv"&gt;APP_ID&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"1313114"&lt;/span&gt; \
  -e &lt;span class="nv"&gt;APP_PRIVATE_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"${APP_PRIVATE_KEY_CONTENTS}"&lt;/span&gt; \
  -e &lt;span class="nv"&gt;APP_LOGIN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"your-organization"&lt;/span&gt; \
  -e &lt;span class="nv"&gt;RUNNER_NAME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"org-runner-01"&lt;/span&gt; \
  -e &lt;span class="nv"&gt;LABELS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"self-hosted,linux,docker"&lt;/span&gt; \
  -e &lt;span class="nv"&gt;UNSET_CONFIG_VARS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"true"&lt;/span&gt; \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /tmp/runner-work:/tmp/runner-work \
  myoung34/github-runner:latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;APP_LOGIN&lt;/code&gt; is the org slug or user login the App is installed under&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;UNSET_CONFIG_VARS="true"&lt;/code&gt; removes the private key and generated tokens from the runner's environment after it boots&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Security note (added 4 December 2026, after a reader comment):&lt;/strong&gt; this does not protect the key from jobs in the setup above. With the Docker socket mounted, any job controls the host's Docker daemon, and &lt;code&gt;docker inspect&lt;/code&gt; shows the variables the container was started with. The compose version below does not share the socket, but &lt;code&gt;privileged: true&lt;/code&gt; is still close to root on the host. It does not hide the key either: jobs run as root by default in this image, and a root job can read the container's original environment, private key included, from &lt;code&gt;/proc/1/environ&lt;/code&gt;. Give the App as few permissions as you can, and use either only for private repos where you trust everyone who can edit a workflow.&lt;/p&gt;

&lt;h3&gt;
  
  
  Running several replicas
&lt;/h3&gt;

&lt;p&gt;For running multiple runner instances on one machine, a compose file with &lt;code&gt;replicas&lt;/code&gt; is simpler than managing individual &lt;code&gt;docker run&lt;/code&gt; commands. Rough shape (trim the org-specific bits — CA cert, Gradle/Java tuning — to whatever applies to you):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;services&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;runner&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;myoung34/github-runner:latest&lt;/span&gt;
    &lt;span class="na"&gt;privileged&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
    &lt;span class="na"&gt;restart&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;always&lt;/span&gt;
    &lt;span class="na"&gt;stop_grace_period&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;2m&lt;/span&gt;
    &lt;span class="na"&gt;volumes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;/var/lib/docker&lt;/span&gt;
    &lt;span class="na"&gt;ulimits&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;nofile&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;soft&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;524288&lt;/span&gt;
        &lt;span class="na"&gt;hard&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;524288&lt;/span&gt;
    &lt;span class="na"&gt;environment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;EPHEMERAL&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1"&lt;/span&gt;
      &lt;span class="na"&gt;START_DOCKER_SERVICE&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"true"&lt;/span&gt;   &lt;span class="c1"&gt;# run a dockerd inside each runner
&lt;/span&gt;      &lt;span class="na"&gt;DISABLE_AUTO_UPDATE&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"true"&lt;/span&gt;
      &lt;span class="na"&gt;RUNNER_SCOPE&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;org&lt;/span&gt;
      &lt;span class="na"&gt;ORG_NAME&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;your-organization&lt;/span&gt;
      &lt;span class="na"&gt;APP_ID&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${APP_ID}&lt;/span&gt;
      &lt;span class="na"&gt;APP_PRIVATE_KEY&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${APP_PRIVATE_KEY}&lt;/span&gt;
      &lt;span class="na"&gt;RUNNER_NAME_PREFIX&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;linux-runner&lt;/span&gt;
      &lt;span class="na"&gt;RANDOM_RUNNER_SUFFIX&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"true"&lt;/span&gt;   &lt;span class="c1"&gt;# so replicas don't collide on name
&lt;/span&gt;      &lt;span class="na"&gt;LABELS&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;self-hosted,Linux&lt;/span&gt;
    &lt;span class="na"&gt;logging&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;driver&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;json-file&lt;/span&gt;
      &lt;span class="na"&gt;options&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;max-size:&lt;/span&gt; &lt;span class="s2"&gt;"50m"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;max-file:&lt;/span&gt; &lt;span class="s2"&gt;"3"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="na"&gt;deploy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;replicas&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;
    &lt;span class="na"&gt;mem_limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;16g&lt;/span&gt;
    &lt;span class="na"&gt;cpus&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;replicas: 6&lt;/code&gt; with &lt;code&gt;RANDOM_RUNNER_SUFFIX&lt;/code&gt; gives six independent runners registered under distinct names, all pulling jobs from the same org queue.&lt;/p&gt;

&lt;h2&gt;
  
  
  THINGS THAT BITE LATER
&lt;/h2&gt;

&lt;p&gt;Added 4 December 2026, from reader comments.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Updates:&lt;/strong&gt; the example sets &lt;code&gt;DISABLE_AUTO_UPDATE&lt;/code&gt; because it is based on my setup, where I manage updates myself. If you copy it, you take on that job too: GitHub stops assigning jobs to a runner that is not updated within &lt;a href="https://docs.github.com/en/actions/reference/runners/self-hosted-runners" rel="noopener noreferrer"&gt;63 days&lt;/a&gt; of a new release. Update the image on a schedule, for example weekly with &lt;code&gt;docker compose pull &amp;amp;&amp;amp; docker compose up -d&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Public repos:&lt;/strong&gt; by default only private repositories can use a runner group. Keep it that way, because a pull request from a fork can run any code on your runner.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Disk:&lt;/strong&gt; &lt;code&gt;restart: always&lt;/code&gt; brings back the same container and volume, so images and build cache pile up. Prune each replica periodically, for example from cron in the compose folder: &lt;code&gt;docker compose ps -q runner | xargs -I{} docker exec {} docker system prune -af --filter until=72h&lt;/code&gt;. It leaves volumes alone and goes by creation date, not last use, so run it when the runners are idle.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Restarts:&lt;/strong&gt; recreating containers can kill a running job, and &lt;code&gt;stop_grace_period: 2m&lt;/code&gt; is shorter than many jobs. Update when the queue is empty.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally posted on &lt;a href="https://htsh.pl/blog/multiple-github-runners/" rel="noopener noreferrer"&gt;htsh.pl/blog/multiple-github-runners&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cicd</category>
      <category>devops</category>
      <category>docker</category>
      <category>githubactions</category>
    </item>
  </channel>
</rss>
