<?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: Dmitriy Solodukha</title>
    <description>The latest articles on DEV Community by Dmitriy Solodukha (@dspv).</description>
    <link>https://dev.to/dspv</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%2F3782713%2F9530adac-1d07-43b0-9767-0b2f7a899fa9.jpg</url>
      <title>DEV Community: Dmitriy Solodukha</title>
      <link>https://dev.to/dspv</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dspv"/>
    <language>en</language>
    <item>
      <title>Desktop apps that run several coding agents at once, compared</title>
      <dc:creator>Dmitriy Solodukha</dc:creator>
      <pubDate>Mon, 23 Nov 2026 14:01:57 +0000</pubDate>
      <link>https://dev.to/dspv/desktop-apps-that-run-several-coding-agents-at-once-compared-47dh</link>
      <guid>https://dev.to/dspv/desktop-apps-that-run-several-coding-agents-at-once-compared-47dh</guid>
      <description>&lt;p&gt;&lt;em&gt;Seven apps that run Claude Code, Codex and other coding agents side by side: licence, desktop OS, agents, how a phone reaches you, cost and limits, price.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Anthropic and OpenAI each ship an official desktop app for their own&lt;br&gt;
agent. The Claude desktop app runs Claude Code in its Code tab, on&lt;br&gt;
macOS and Windows with a Linux beta, from the Pro plan up; the ChatGPT&lt;br&gt;
desktop app runs Codex, on macOS and Windows with Linux in preview, on every&lt;br&gt;
ChatGPT plan including Free. Neither runs the other's agent, so to run&lt;br&gt;
several coding agents at once in one desktop app you use Orca, T3 Code,&lt;br&gt;
Conductor (macOS only), Paradev, Nimbalyst, Emdash or Warp. Caprock is a&lt;br&gt;
free, open-source (Apache-2.0) desktop app for macOS, Windows and Linux that&lt;br&gt;
runs Claude Code, Codex, OpenCode, Gemini CLI and Cursor's CLI in terminal&lt;br&gt;
tabs and records every session on the machine with what it cost.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In short&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Open source:&lt;/strong&gt; Caprock (Apache-2.0), Orca and Nimbalyst (MIT), Warp (AGPL v3, UI framework MIT).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Several agents:&lt;/strong&gt; Caprock, Orca, Conductor, Warp and Nimbalyst. Claude desktop runs Claude Code; the ChatGPT app runs Codex.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Phone with no vendor account:&lt;/strong&gt; Caprock, from anywhere through an end-to-end encrypted relay, or one you run. Orca also pairs over a LAN or Tailscale, though its troubleshooting asks for one Orca account on both devices.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Download size:&lt;/strong&gt; Caprock's macOS installer is 19.7 MB against Orca's 245.3 MB, and 7.7 MB against 212.2 MB on Windows (release files, 11 October 2026).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read on 7 October 2026&lt;/strong&gt; from each maker's own docs, pricing pages and repositories; cells that changed since were re-read on 21 October 2026.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Which desktop apps run several coding agents at once?
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Desktop apps that run coding agents, as of November 2026: each maker's own site, pricing page or repository, read 18 November 2026.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;App&lt;/th&gt;
&lt;th&gt;Price for one person&lt;/th&gt;
&lt;th&gt;Open source&lt;/th&gt;
&lt;th&gt;Desktop&lt;/th&gt;
&lt;th&gt;Agents it runs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Caprock&lt;/td&gt;
&lt;td&gt;Free; optional Premium $30 a year&lt;/td&gt;
&lt;td&gt;Yes, Apache-2.0&lt;/td&gt;
&lt;td&gt;macOS, Windows, Linux (x64)&lt;/td&gt;
&lt;td&gt;Claude Code, Codex, OpenCode, Gemini CLI, Cursor's CLI, Hermes Agent, Grok Build&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude desktop app, Code tab&lt;/td&gt;
&lt;td&gt;Pro ($20 a month) or higher; not on Free&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;macOS, Windows; Linux beta (Ubuntu 22.04+, Debian 12+)&lt;/td&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ChatGPT desktop app, Codex&lt;/td&gt;
&lt;td&gt;Included in every ChatGPT plan, Free to Enterprise&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;macOS, Windows; Linux in preview&lt;/td&gt;
&lt;td&gt;Codex&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Orca&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;Yes, MIT&lt;/td&gt;
&lt;td&gt;macOS, Windows, Linux&lt;/td&gt;
&lt;td&gt;Claude Code, Codex, OpenCode, Grok and any other agent CLI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;T3 Code&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;Yes, MIT&lt;/td&gt;
&lt;td&gt;macOS, Windows, Linux&lt;/td&gt;
&lt;td&gt;Claude Code, Codex, Cursor, OpenCode, Grok Build and any ACP agent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Conductor&lt;/td&gt;
&lt;td&gt;No pricing page; its FAQ calls it a free tool&lt;/td&gt;
&lt;td&gt;No public source&lt;/td&gt;
&lt;td&gt;macOS only&lt;/td&gt;
&lt;td&gt;Claude Code, Codex, Cursor, OpenCode&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Paradev (was Superset)&lt;/td&gt;
&lt;td&gt;Free for one user locally; Pro $20 a user a month&lt;/td&gt;
&lt;td&gt;Yes, MIT&lt;/td&gt;
&lt;td&gt;macOS; Linux experimental; no Windows yet&lt;/td&gt;
&lt;td&gt;Claude Code, Codex, OpenCode, Cursor Agent, Gemini CLI and any CLI agent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nimbalyst&lt;/td&gt;
&lt;td&gt;Free for individuals&lt;/td&gt;
&lt;td&gt;Yes, MIT&lt;/td&gt;
&lt;td&gt;macOS, Windows, Linux&lt;/td&gt;
&lt;td&gt;Claude Code, Codex; OpenCode and GitHub Copilot in alpha&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Emdash&lt;/td&gt;
&lt;td&gt;Free; new development has moved to Emdash 2.0, a cloud waitlist&lt;/td&gt;
&lt;td&gt;Yes, Apache-2.0&lt;/td&gt;
&lt;td&gt;macOS, Windows, Linux&lt;/td&gt;
&lt;td&gt;Claude Code, Codex, Cursor, OpenCode and more; 25+ in all&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Warp&lt;/td&gt;
&lt;td&gt;Free; Build $20 a month&lt;/td&gt;
&lt;td&gt;Yes, AGPL v3 (UI framework MIT)&lt;/td&gt;
&lt;td&gt;macOS, Windows, Linux&lt;/td&gt;
&lt;td&gt;Its own agent, plus Claude Code, Codex, OpenCode, Gemini CLI and 12 more CLI agents&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;Agent subscriptions are separate: each app starts the agents' own CLIs on your Claude or ChatGPT plan or API key.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Is there a desktop app for Claude Code and Codex?
&lt;/h2&gt;

&lt;p&gt;Each maker ships one for its own agent, read on 18 November 2026:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Claude Code desktop app&lt;/strong&gt; — the Code tab of Anthropic's Claude desktop
app. Parallel sessions in a sidebar, each optionally in its own git
worktree. macOS (universal) and Windows; on Linux a beta for Ubuntu 22.04+
and Debian 12+, installed with &lt;code&gt;sudo apt install claude-desktop&lt;/code&gt;. Claude
Code needs Pro ($20 a month), Max, Ultra, Team or Enterprise.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Codex desktop app&lt;/strong&gt; — Codex inside OpenAI's ChatGPT desktop app, on
macOS and Windows, with Linux in preview. Worktrees "let Codex run multiple
independent chats in the same project". Included in every ChatGPT plan,
Free to Enterprise.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One app for both: Caprock, Orca, T3 Code, Conductor, Paradev, Nimbalyst,&lt;br&gt;
Emdash and Warp all start Claude Code and Codex side by side, each on its&lt;br&gt;
own plan.&lt;/p&gt;

&lt;h2&gt;
  
  
  Side by side, in detail
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Apps that run coding agents, from each maker's own pages, read 7 October 2026.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;App&lt;/th&gt;
&lt;th&gt;Licence&lt;/th&gt;
&lt;th&gt;Desktop&lt;/th&gt;
&lt;th&gt;Agents it runs&lt;/th&gt;
&lt;th&gt;How a phone reaches your machine&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Caprock&lt;/td&gt;
&lt;td&gt;Apache-2.0&lt;/td&gt;
&lt;td&gt;macOS, Windows and Linux apps&lt;/td&gt;
&lt;td&gt;Claude Code, Codex, OpenCode, Gemini CLI, Grok Build, Hermes Agent&lt;/td&gt;
&lt;td&gt;From anywhere, through an end-to-end encrypted relay or your own; paired by QR code, no Caprock account&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Orca&lt;/td&gt;
&lt;td&gt;MIT&lt;/td&gt;
&lt;td&gt;macOS, Windows, Linux&lt;/td&gt;
&lt;td&gt;Claude Code, Codex, OpenCode, Gemini and more&lt;/td&gt;
&lt;td&gt;Orca Relay with sign-in, or your LAN or Tailscale&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Conductor&lt;/td&gt;
&lt;td&gt;No public source linked&lt;/td&gt;
&lt;td&gt;macOS&lt;/td&gt;
&lt;td&gt;Claude Code, Codex, Cursor, OpenCode&lt;/td&gt;
&lt;td&gt;iOS app, with cloud workspaces; local workspaces through its encrypted relay with a Conductor account (experimental)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude desktop (Code tab)&lt;/td&gt;
&lt;td&gt;No public source linked&lt;/td&gt;
&lt;td&gt;macOS, Windows; Linux in beta&lt;/td&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;Remote Control from the Claude app, through the Anthropic API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ChatGPT desktop app (Codex)&lt;/td&gt;
&lt;td&gt;No public source linked&lt;/td&gt;
&lt;td&gt;macOS, Windows; Linux in preview&lt;/td&gt;
&lt;td&gt;Codex&lt;/td&gt;
&lt;td&gt;Remote, through a secure relay; hosts on macOS or Windows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Warp&lt;/td&gt;
&lt;td&gt;AGPL v3; UI framework MIT&lt;/td&gt;
&lt;td&gt;macOS, Windows, Linux&lt;/td&gt;
&lt;td&gt;Claude Code, Codex, OpenCode, Gemini CLI and more, plus its own agent&lt;/td&gt;
&lt;td&gt;Remote Control shares a running third-party agent session to Warp's cloud, as a link for any browser&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nimbalyst&lt;/td&gt;
&lt;td&gt;MIT&lt;/td&gt;
&lt;td&gt;macOS, Windows, Linux&lt;/td&gt;
&lt;td&gt;Claude Code, Codex, Gemini and more&lt;/td&gt;
&lt;td&gt;Its end-to-end encrypted sync server, with an account&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;A cell says what the maker documents. Where a page says nothing, the table says nothing about it either.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Claude Desktop alternatives for coding
&lt;/h2&gt;

&lt;p&gt;Claude's own desktop app runs Claude Code in its Code tab, on a paid Claude&lt;br&gt;
plan, on macOS and Windows with Linux in beta. To run other agents beside&lt;br&gt;
Claude Code in one window, three picks from the table below, read on&lt;br&gt;
7 October 2026:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Orca.&lt;/strong&gt; MIT, on macOS, Windows and Linux. Runs Claude Code, Codex,
OpenCode, Gemini and more, with usage and plan limits for eleven providers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Conductor.&lt;/strong&gt; macOS only. Runs Claude Code, Codex, Cursor and OpenCode;
free locally. It joined Meta and is still being developed (below).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Caprock.&lt;/strong&gt; Apache-2.0, on macOS, Windows and Linux. Claude Code, Codex,
OpenCode, Gemini CLI, Grok Build and Hermes Agent in tabs per project; the
sessions it did not start recorded too; every pull
request followed from agent to release with its agent cost; a phone from
anywhere through an end-to-end encrypted relay, with no account. Free. &lt;a href="https://caprock.dev/install/" rel="noopener noreferrer"&gt;Download Caprock&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Conductor alternatives for Windows, Linux and the Mac
&lt;/h2&gt;

&lt;p&gt;Conductor, which runs Claude Code, Codex, Cursor and OpenCode in parallel&lt;br&gt;
on the Mac, announced on 4 November 2026 that it was joining Meta and winding&lt;br&gt;
down, and on 13 November called that off: "Conductor isn't shutting down.&lt;br&gt;
It's back" (its changelog, 0.94.2, read 15 November 2026). It is still macOS&lt;br&gt;
only. Orca and Caprock from the table above run the same kind of work on&lt;br&gt;
Windows and Linux too; Orca opens Conductor's worktrees in place. Every&lt;br&gt;
alternative, measured against Conductor:&lt;br&gt;
&lt;a href="https://caprock.dev/guides/conductor-alternatives/" rel="noopener noreferrer"&gt;Conductor alternatives&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cost, limits and price
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;What each app shows of usage, and what it costs one person, read 7 October 2026.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;App&lt;/th&gt;
&lt;th&gt;Cost and limits shown&lt;/th&gt;
&lt;th&gt;Price for one person&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Caprock&lt;/td&gt;
&lt;td&gt;Cost per repository for every agent it reads; Claude and Codex plan limits&lt;/td&gt;
&lt;td&gt;Free; optional licence $30 a year&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Orca&lt;/td&gt;
&lt;td&gt;Usage and plan limits for eleven providers; estimated cost for known models&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Conductor&lt;/td&gt;
&lt;td&gt;Codex rate limits and Claude plan usage, in a hover card&lt;/td&gt;
&lt;td&gt;Free locally, per its FAQ; joining Meta, it called off its wind-down on 13 November 2026 (changelog 0.94.2, read 15 November 2026)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude desktop (Code tab)&lt;/td&gt;
&lt;td&gt;Claude plan usage&lt;/td&gt;
&lt;td&gt;Needs a paid plan: Pro ($20 a month), Max, Ultra, Team or Enterprise&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ChatGPT desktop app (Codex)&lt;/td&gt;
&lt;td&gt;A web usage dashboard; /status in the Codex CLI&lt;/td&gt;
&lt;td&gt;Any ChatGPT plan, including Free; Plus $20 a month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Warp&lt;/td&gt;
&lt;td&gt;Usage in dollars at API rates, for its own agent&lt;/td&gt;
&lt;td&gt;Free; Build $20 a month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nimbalyst&lt;/td&gt;
&lt;td&gt;Claude and Codex usage limits&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;A dash: the maker's pages do not say. Prices from each maker's pricing page. Claude desktop and the ChatGPT app are free downloads; their agents run on the vendor's plan.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Notifications and a system prompt per project
&lt;/h2&gt;

&lt;p&gt;Every one of these apps works with git worktrees, one per session (Warp&lt;br&gt;
leaves creating them to you), and all but the ChatGPT app and Nimbalyst&lt;br&gt;
document two sessions or terminals side by side (Conductor's split tabs are&lt;br&gt;
an experimental setting). Two things differ more, read&lt;br&gt;
7 October 2026:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Answering a permission prompt from the desktop notification.&lt;/strong&gt; Caprock
does it on macOS and Linux, for Claude Code sessions it started. Orca, Warp and
Nimbalyst notifications open the session; Claude desktop notifies when a
task finishes; the ChatGPT app's permission notifications can be switched on
or off, and approving from afar is done in its phone app. Conductor documents
no notification approvals.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A system prompt per project, set in the app.&lt;/strong&gt; Caprock calls it Project
instructions and appends it to the system prompt of every Claude Code
session it starts in the project, and to the developer instructions of
every Codex session it starts there, and passes it to Grok Build as its
rules; OpenCode, Gemini CLI and Hermes Agent sessions do not get it. Conductor has repository-wide "General preferences" for its agents.
Claude's Projects carry project instructions, in a public beta on Pro and
Max. The ChatGPT app's projects carry instructions for its chats, while its
local Codex projects point to &lt;code&gt;AGENTS.md&lt;/code&gt; or checked-in documentation. Orca, Warp and Nimbalyst
document only the agents' own files.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Download and install size
&lt;/h2&gt;

&lt;p&gt;Measured on 11 October 2026 from the files each project publishes on GitHub:&lt;br&gt;
Caprock v0.100.0 and Orca v1.4.224. Orca is an Electron app and ships its own&lt;br&gt;
Chromium; Caprock is a Go daemon in a Tauri shell, which uses the web view the&lt;br&gt;
system already has. The Linux AppImage is the exception: it carries its own&lt;br&gt;
WebKit, so the gap there is small.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Installer size, from each project's GitHub release, 11 October 2026.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Installer&lt;/th&gt;
&lt;th&gt;Caprock&lt;/th&gt;
&lt;th&gt;Orca&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;macOS, Apple chip&lt;/td&gt;
&lt;td&gt;19.7 MB&lt;/td&gt;
&lt;td&gt;245.3 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Windows&lt;/td&gt;
&lt;td&gt;7.7 MB&lt;/td&gt;
&lt;td&gt;212.2 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Linux .deb (x64)&lt;/td&gt;
&lt;td&gt;10.7 MB&lt;/td&gt;
&lt;td&gt;193.8 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Linux AppImage&lt;/td&gt;
&lt;td&gt;85.0 MB&lt;/td&gt;
&lt;td&gt;212.4 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Caprock's macOS file is one universal build for Apple and Intel chips; Orca&lt;br&gt;
ships one per chip. Installed on the same Mac, Caprock.app takes 47 MB and&lt;br&gt;
Orca.app (1.4.220) 624 MB, by &lt;code&gt;du&lt;/code&gt;. These are sizes on disk, not memory or&lt;br&gt;
speed; those depend on how many sessions run and are not measured here.&lt;/p&gt;

&lt;h2&gt;
  
  
  What each one is
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Orca&lt;/strong&gt; — an open-source app built around worktrees and the agents' own
CLIs, with iOS and Android apps. A phone pairs through Orca Relay, which
needs a sign-in, or directly over a LAN or Tailscale; mobile is marked beta.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Conductor&lt;/strong&gt; — a Mac app that runs Claude Code, Codex, Cursor and OpenCode
in parallel workspaces. Its iOS app, released 2 October 2026, works with
cloud workspaces, and since 0.91.2 can control local workspaces on your Mac,
an experimental setting. On 4 November 2026 it announced it was joining
Meta and winding down; on 13 November it called the wind-down off.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude desktop, Code tab&lt;/strong&gt; — Anthropic's app for Claude Code, on a paid
plan (Pro, Max, Ultra, Team or Enterprise). Remote Control lets the Claude phone app drive a session, through
the Anthropic API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The ChatGPT desktop app&lt;/strong&gt; — Codex is one of its two workspaces; Remote
reaches a Mac or Windows PC from the ChatGPT phone app through a secure
relay. It is what OpenAI's Codex app became: &lt;a href="https://caprock.dev/guides/codex-desktop-app/" rel="noopener noreferrer"&gt;Codex desktop
app&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Warp&lt;/strong&gt; — a terminal that runs third-party CLI agents beside its own;
Remote Control shares a running session to a link you open on a phone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nimbalyst&lt;/strong&gt; — an open-source workspace with visual editors around Claude
Code, Codex and Gemini, with iOS and Android apps that sync end-to-end
encrypted, with an account.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Claude Squad, Vibe Kanban and Superset
&lt;/h2&gt;

&lt;p&gt;Three names come up in the same searches. None is a pick here; each was read&lt;br&gt;
on its own pages on 27 October 2026.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Claude Squad&lt;/strong&gt; (AGPL-3.0), a terminal app, &lt;code&gt;cs&lt;/code&gt;, that runs Claude Code,
Codex, Gemini and other local agents each in its own tmux session and git
worktree, has slowed: its last release, v1.0.20, is from 20 August 2026,
with one commit since (13 November, re-read 15 November 2026), and a
maintainer wrote in March that both authors work full-time jobs elsewhere. The Windows build does not run — "error
starting tmux session: unsupported", an open issue.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vibe Kanban&lt;/strong&gt; (Apache-2.0), a kanban board in the browser with a
workspace per agent, shut down on 10 April 2026: bloop wrote that "the vast
majority are free users and we couldn't find a business model", refunded
its Pro plan and removed the hosted issues, comments and projects. One
former employee maintains the repository and local workspaces still run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Superset&lt;/strong&gt; became &lt;strong&gt;Paradev&lt;/strong&gt; on 26 October 2026: Pro $20, Team $60 and
Ultra $200 a user a month, on macOS, with Linux and Windows open requests.
Its status view covers only agents started from its own terminals ("The
hooks do nothing in other terminals", its usage doc).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where Caprock differs
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh022b3or4ne53xztx91o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh022b3or4ne53xztx91o.png" alt="The Caprock desktop app: six agent tabs numbered ⌘1 to ⌘6, an orchestrating Claude Code session's terminal, the sidebar listing each open tab with its phase, and the agent cockpit with the session's cost per hour, spend chart and three subagents at work" width="800" height="478"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The macOS app replaying a real Caprock work session. Example figures.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Every app here is a window around the agents it started. Caprock's difference&lt;br&gt;
is the record under the window: a background service that records every&lt;br&gt;
session on the machine, the ones you start in your own terminal included, with&lt;br&gt;
limits across subscriptions, each pull request's CI state and what it cost.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cost for every agent it reads.&lt;/strong&gt; Claude Code, Codex, OpenCode, Gemini CLI,
DeepSeek Harness and Hermes Agent land in one table, priced per repository; Claude and
Codex plan limits sit in the menu bar, on the Home screen and on the Cost screen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sessions from your own terminal count.&lt;/strong&gt; A &lt;code&gt;claude&lt;/code&gt; started outside
Caprock appears with its cost; Caprock types only into sessions it started.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A phone with no Caprock account.&lt;/strong&gt; It pairs by QR code and reaches the
computer from anywhere, through an end-to-end encrypted relay. A terminal picks up from the last byte it had, and the chat view
orders messages as the session produced them, however late they arrive.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Several tries at one task, by cost.&lt;/strong&gt; One agent gets the same first
message in two to four copies of the repository, and Compare sets them side
by side: files and lines changed, what each has cost so far, how long it
has run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Approve or Deny from the notification.&lt;/strong&gt; On macOS and Linux, a permission prompt
from a Claude Code session Caprock started arrives with Deny, and with
Approve only when the notification shows the whole request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Measured, not claimed:&lt;/strong&gt; 0.44–0.59 s from launch to a
ready window with the background service running, five runs on one M1 Pro Mac,
2026-10-05.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What Caprock does not do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No code editor.&lt;/strong&gt; It runs the agents' terminals and shells; you edit in your own editor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No cloud workspaces, no SSH remotes.&lt;/strong&gt; Sessions run on your machine, or
on your other computers that run Caprock, linked through its relay.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Buttons in notifications are macOS and Linux only.&lt;/strong&gt; On Windows you answer
on the session's prompt card.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Which to use
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Caprock&lt;/strong&gt; — one record of every agent in every repository: the sessions
it did not start, limits across subscriptions, cost per pull request,
history; and a phone with no account.
&lt;a href="https://caprock.dev/install/" rel="noopener noreferrer"&gt;Install it&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Orca&lt;/strong&gt; — the same idea, with native phone apps: &lt;a href="https://caprock.dev/guides/orca-ide/" rel="noopener noreferrer"&gt;Orca vs
Caprock&lt;/a&gt;, row by row.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Conductor&lt;/strong&gt; — you are on a Mac and want Claude Code, Codex, Cursor and
OpenCode in one app; it called off its wind-down on 13 November 2026.
Every alternative: &lt;a href="https://caprock.dev/guides/conductor-alternatives/" rel="noopener noreferrer"&gt;Conductor alternatives&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude desktop or the ChatGPT app&lt;/strong&gt; — you use one vendor's agent and want
its own interface.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Warp&lt;/strong&gt; — you want a terminal first, with agents inside it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nimbalyst&lt;/strong&gt; — you want documents, mockups and diagrams beside the agents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;cmux or Herdr&lt;/strong&gt; — you want agents in a terminal rather than an app:
&lt;a href="https://caprock.dev/guides/herdr-vs-cmux/" rel="noopener noreferrer"&gt;Herdr vs cmux&lt;/a&gt;, and &lt;a href="https://caprock.dev/guides/cmux-windows/" rel="noopener noreferrer"&gt;cmux on
Windows&lt;/a&gt; if you are not on a Mac.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude Squad or Vibe Kanban&lt;/strong&gt; — neither for new work: Claude Squad's last
release is from 20 August 2026 and Vibe Kanban's company shut down, above.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A GUI for Claude Code alone, official or open source:&lt;br&gt;
&lt;a href="https://caprock.dev/guides/claude-code-gui/" rel="noopener noreferrer"&gt;Claude Code GUI&lt;/a&gt;. Choosing the agent rather than&lt;br&gt;
the app: Claude Code compared with &lt;a href="https://caprock.dev/guides/codex-vs-claude-code/" rel="noopener noreferrer"&gt;Codex&lt;/a&gt;,&lt;br&gt;
&lt;a href="https://caprock.dev/guides/cursor-vs-claude-code/" rel="noopener noreferrer"&gt;Cursor&lt;/a&gt;,&lt;br&gt;
&lt;a href="https://caprock.dev/guides/opencode-vs-claude-code/" rel="noopener noreferrer"&gt;OpenCode&lt;/a&gt;,&lt;br&gt;
&lt;a href="https://caprock.dev/guides/gemini-cli-vs-claude-code/" rel="noopener noreferrer"&gt;Gemini CLI&lt;/a&gt;,&lt;br&gt;
&lt;a href="https://caprock.dev/guides/github-copilot-vs-claude-code/" rel="noopener noreferrer"&gt;GitHub Copilot&lt;/a&gt;,&lt;br&gt;
&lt;a href="https://caprock.dev/guides/antigravity-vs-claude-code/" rel="noopener noreferrer"&gt;Antigravity&lt;/a&gt; and&lt;br&gt;
&lt;a href="https://caprock.dev/guides/kiro-vs-claude-code/" rel="noopener noreferrer"&gt;Kiro&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock" rel="noopener noreferrer"&gt;Caprock — github.com/dspv/caprock, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/blob/master/docs/install-app.md" rel="noopener noreferrer"&gt;Caprock — github.com/dspv/caprock/blob/master/docs/install-app.md, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/blob/master/CHANGELOG.md" rel="noopener noreferrer"&gt;Caprock — github.com/dspv/caprock/blob/master/CHANGELOG.md, read 21 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/stablyai/orca" rel="noopener noreferrer"&gt;Orca — github.com/stablyai/orca, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.onorca.dev/docs/mobile" rel="noopener noreferrer"&gt;Orca — www.onorca.dev/docs/mobile, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.onorca.dev/docs/agents/usage-tracking" rel="noopener noreferrer"&gt;Orca — www.onorca.dev/docs/agents/usage-tracking, read 21 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.onorca.dev/docs/notifications" rel="noopener noreferrer"&gt;Orca — www.onorca.dev/docs/notifications, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/docs/installation" rel="noopener noreferrer"&gt;Conductor — www.conductor.build/docs/installation, read 21 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/changelog/0.94.2-conductor-is-back" rel="noopener noreferrer"&gt;Conductor — www.conductor.build/changelog/0.94.2-conductor-is-back, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/changelog/0.93.0-conductor-is-joining-meta" rel="noopener noreferrer"&gt;Conductor — www.conductor.build/changelog/0.93.0-conductor-is-joining-meta, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/changelog/0.90.0-conductor-for-ios" rel="noopener noreferrer"&gt;Conductor — www.conductor.build/changelog/0.90.0-conductor-for-ios, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/changelog/page/2" rel="noopener noreferrer"&gt;Conductor — www.conductor.build/changelog/page/2, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/changelog/page/3" rel="noopener noreferrer"&gt;Conductor — www.conductor.build/changelog/page/3, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/docs/reference/agent-behavior" rel="noopener noreferrer"&gt;Conductor — www.conductor.build/docs/reference/agent-behavior, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/changelog/0.91.0-a-mostly-boring-update" rel="noopener noreferrer"&gt;Conductor — www.conductor.build/changelog/0.91.0-a-mostly-boring-update, read 21 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/docs/reference/remote-control" rel="noopener noreferrer"&gt;Conductor — www.conductor.build/docs/reference/remote-control, read 21 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/changelog/0.87.0-search-across-files-opencode-2-0" rel="noopener noreferrer"&gt;Conductor — www.conductor.build/changelog/0.87.0-search-across-files-opencode-2-0, read 21 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/docs/reference/harnesses" rel="noopener noreferrer"&gt;Conductor — www.conductor.build/docs/reference/harnesses, read 21 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/desktop" rel="noopener noreferrer"&gt;Claude desktop (Code tab) — code.claude.com/docs/en/desktop, read 21 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/remote-control" rel="noopener noreferrer"&gt;Claude desktop (Code tab) — code.claude.com/docs/en/remote-control, read 21 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://claude.com/pricing" rel="noopener noreferrer"&gt;Claude desktop (Code tab) — claude.com/pricing, read 21 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/claude-projects" rel="noopener noreferrer"&gt;Claude desktop (Code tab) — code.claude.com/docs/en/claude-projects, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.chatgpt.com/docs/app" rel="noopener noreferrer"&gt;ChatGPT desktop app (Codex) — learn.chatgpt.com/docs/app, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.chatgpt.com/docs/remote-connections" rel="noopener noreferrer"&gt;ChatGPT desktop app (Codex) — learn.chatgpt.com/docs/remote-connections, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.chatgpt.com/docs/pricing" rel="noopener noreferrer"&gt;ChatGPT desktop app (Codex) — learn.chatgpt.com/docs/pricing, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.chatgpt.com/docs/notifications" rel="noopener noreferrer"&gt;ChatGPT desktop app (Codex) — learn.chatgpt.com/docs/notifications, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.chatgpt.com/docs/projects" rel="noopener noreferrer"&gt;ChatGPT desktop app (Codex) — learn.chatgpt.com/docs/projects, read 21 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/warpdotdev/warp" rel="noopener noreferrer"&gt;Warp — github.com/warpdotdev/warp, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.warp.dev/agents/cli-agents/remote-control/" rel="noopener noreferrer"&gt;Warp — docs.warp.dev/agents/cli-agents/remote-control/, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.warp.dev/pricing" rel="noopener noreferrer"&gt;Warp — www.warp.dev/pricing, read 21 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.warp.dev/code/git-worktrees/" rel="noopener noreferrer"&gt;Warp — docs.warp.dev/code/git-worktrees/, read 7 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.warp.dev/support-and-community/plans-and-billing/credits/" rel="noopener noreferrer"&gt;Warp — docs.warp.dev/support-and-community/plans-and-billing/credits/, read 21 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Nimbalyst/nimbalyst" rel="noopener noreferrer"&gt;Nimbalyst — github.com/Nimbalyst/nimbalyst, read 21 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://nimbalyst.com/docs/mobile/mobile-app/" rel="noopener noreferrer"&gt;Nimbalyst — nimbalyst.com/docs/mobile/mobile-app/, read 21 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://nimbalyst.com/changelog/" rel="noopener noreferrer"&gt;Nimbalyst — nimbalyst.com/changelog/, read 21 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/stablyai/orca/releases/tag/v1.4.224" rel="noopener noreferrer"&gt;Orca — release v1.4.224 assets on GitHub (stablyai/orca), read 11 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/releases/tag/v0.100.0" rel="noopener noreferrer"&gt;Caprock — release v0.100.0 assets on GitHub (dspv/caprock), read 11 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/smtg-ai/claude-squad" rel="noopener noreferrer"&gt;Claude Squad — smtg-ai/claude-squad README, commits and releases (last release v1.0.20, 20 August 2026; a commit on 13 November 2026), read 27 October 2026, re-read 15 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/smtg-ai/claude-squad/issues/250" rel="noopener noreferrer"&gt;Claude Squad — issue #250, the maintainer on both working full-time jobs elsewhere, read 27 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/smtg-ai/claude-squad/issues/275" rel="noopener noreferrer"&gt;Claude Squad — issue #275, Windows: error starting tmux session: unsupported, open on 27 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/BloopAI/vibe-kanban" rel="noopener noreferrer"&gt;Vibe Kanban — BloopAI/vibe-kanban README and commits, read 27 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.vibekanban.com/blog/shutdown" rel="noopener noreferrer"&gt;Vibe Kanban — shutdown announcement (Goodbye bloop), 10 April 2026, read 27 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/changelog/0.94.2-conductor-is-back" rel="noopener noreferrer"&gt;Conductor changelog — 0.93.0, Conductor is joining Meta (4 November 2026), read 6 November 2026; 0.94.2, "Conductor isn't shutting down" (13 November 2026), read 15 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/herdrdev/herdr-app" rel="noopener noreferrer"&gt;Herdr — herdrdev/herdr-app, a desktop app for terminals and coding agents, read 6 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://paradev.com/blog/superset-is-now-paradev" rel="noopener noreferrer"&gt;Paradev — Superset is now Paradev, 26 October 2026, read 27 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://paradev.com/pricing" rel="noopener noreferrer"&gt;Paradev pricing — Free, Pro $20, Team $60, Ultra $200, Enterprise, read 27 October 2026, re-read 6 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.paradev.com/llms.mdx/usage" rel="noopener noreferrer"&gt;Paradev docs — usage: status only for agents launched from its own terminals, read 27 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/blob/master/.ai/21-app.md" rel="noopener noreferrer"&gt;Caprock spec — the desktop app, with the launch measurement (.ai/21-app.md)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/changelog" rel="noopener noreferrer"&gt;Conductor changelog — 0.91.2, the iOS app controls local workspaces (Settings → Experimental), read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/blob/master/CHANGELOG.md" rel="noopener noreferrer"&gt;Caprock changelog — 0.75.0 workspace and projects; 0.76.0 chat view, reconnect, Approve and Deny; 0.77.0 app install, start work from the phone, Tailscale by QR; 0.81.0 project instructions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/blob/master/docs/app.md" rel="noopener noreferrer"&gt;Caprock docs — using the desktop app: project instructions, notifications (docs/app.md)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/blob/master/internal/api/lanauth.go" rel="noopener noreferrer"&gt;Caprock source — what a paired phone may do (internal/api/lanauth.go)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/desktop" rel="noopener noreferrer"&gt;Claude Code docs — Desktop: macOS universal build, Windows x64 and ARM64, parallel sessions in the sidebar, read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/desktop-linux" rel="noopener noreferrer"&gt;Claude Code docs — Claude Desktop on Linux: "in beta", Ubuntu 22.04+ or Debian 12+, x86_64 or arm64, apt install claude-desktop; Fedora or Arch: "run the CLI instead", read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://claude.com/download" rel="noopener noreferrer"&gt;Claude download page — "Claude Code and Claude Cowork are available on Pro, Max, Ultra, Team, and Enterprise", read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://claude.com/pricing" rel="noopener noreferrer"&gt;Claude pricing — Pro $20 billed monthly; Claude Code not in Free, read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.chatgpt.com/docs/app" rel="noopener noreferrer"&gt;ChatGPT docs — the ChatGPT desktop app: "Download ChatGPT for macOS, Windows, or Linux", read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.chatgpt.com/codex/linux/linux-app" rel="noopener noreferrer"&gt;ChatGPT docs — the desktop app for Linux: "available in preview", read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.chatgpt.com/docs/pricing" rel="noopener noreferrer"&gt;ChatGPT docs — pricing: Codex "included in your ChatGPT Free, Go, Plus, Pro, Business, Edu, or Enterprise plan", read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.chatgpt.com/docs/environments/git-worktrees" rel="noopener noreferrer"&gt;ChatGPT docs — git worktrees: "Worktrees let Codex run multiple independent chats in the same project", read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.chatgpt.com/codex/agent-configuration/subagents" rel="noopener noreferrer"&gt;ChatGPT docs — subagents: "spawning specialized agents in parallel", enabled by default in current Codex releases, read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://orca.dev/" rel="noopener noreferrer"&gt;Orca — orca.dev: "Free and open source", "macOS, Windows &amp;amp; Linux", "Works with Claude Code, Codex, OpenCode, Grok, and any other agent CLI"; changelog 1.4.262 (17 November 2026), read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/stablyai/orca" rel="noopener noreferrer"&gt;Orca on GitHub — README: MIT License, read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://orca.dev/docs/mobile" rel="noopener noreferrer"&gt;Orca docs — mobile: "The mobile companion is in beta", iOS and Android, read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://t3.codes" rel="noopener noreferrer"&gt;T3 Code — t3.codes: "free, open source", "MIT licensed", read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/pingdotgg/t3code" rel="noopener noreferrer"&gt;T3 Code on GitHub — README (macOS, Windows, Linux; a worktree per thread) and release v0.1.10, read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/docs/installation" rel="noopener noreferrer"&gt;Conductor docs — installation: "Conductor is not available for Windows or Linux yet", read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/docs/faq" rel="noopener noreferrer"&gt;Conductor docs — FAQ: "Right now we don't" make money; "an amazing free tool", read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/changelog" rel="noopener noreferrer"&gt;Conductor changelog — 0.94.2 "Conductor isn't shutting down" (13 November 2026), 0.95.1 (17 November 2026); OpenCode since 0.69.0, read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://paradev.com/pricing" rel="noopener noreferrer"&gt;Paradev — pricing: Free, Pro $20, Team $60, Ultra $200 a user a month, read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/ParadevAI/Paradev" rel="noopener noreferrer"&gt;Paradev on GitHub — README: MIT, supported agents, a worktree per task, Linux "experimental", release desktop-v2.0.9, read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://paradev.com/faq" rel="noopener noreferrer"&gt;Paradev — FAQ: "Windows is not yet available", read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://nimbalyst.com/pricing" rel="noopener noreferrer"&gt;Nimbalyst — pricing: "free for individual users", read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/nimbalyst/nimbalyst" rel="noopener noreferrer"&gt;Nimbalyst on GitHub — README: MIT, macOS, Windows and Linux, agents, release v0.83.0, read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://emdash.com/classic" rel="noopener noreferrer"&gt;Emdash — Classic: "free, open-source", "On macOS, Windows, and Linux", "25+ coding agents", "new development has moved to Emdash 2.0", read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/generalaction/emdash" rel="noopener noreferrer"&gt;Emdash on GitHub — README: Apache-2.0, a worktree per task, release v1.2.11, read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.warp.dev/pricing" rel="noopener noreferrer"&gt;Warp — pricing: Free $0, Build $20 a month, read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.warp.dev/agents/cli-agents/" rel="noopener noreferrer"&gt;Warp docs — supported CLI coding agents (16 listed), read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/warpdotdev/warp" rel="noopener noreferrer"&gt;Warp on GitHub — AGPL v3, UI framework MIT, read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.warp.dev/download" rel="noopener noreferrer"&gt;Warp — download: "Available for macOS, Windows, and Linux", read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://caprock.dev/guides/coding-agent-desktop-apps/" rel="noopener noreferrer"&gt;caprock.dev&lt;/a&gt;, where it is kept up to date.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claudecode</category>
      <category>codex</category>
      <category>devtools</category>
    </item>
    <item>
      <title>Is there a GUI for Claude Code? The official apps and the open-source ones</title>
      <dc:creator>Dmitriy Solodukha</dc:creator>
      <pubDate>Fri, 20 Nov 2026 14:30:49 +0000</pubDate>
      <link>https://dev.to/dspv/is-there-a-gui-for-claude-code-the-official-apps-and-the-open-source-ones-220i</link>
      <guid>https://dev.to/dspv/is-there-a-gui-for-claude-code-the-official-apps-and-the-open-source-ones-220i</guid>
      <description>&lt;p&gt;&lt;em&gt;Claude Code GUI options: Anthropic's desktop app, VS Code and web UI; open-source opcode, CloudCLI and Nimbalyst; and Caprock, a free app for every agent.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Yes. Anthropic's official GUI for Claude Code is the &lt;strong&gt;Code&lt;/strong&gt; tab of the&lt;br&gt;
Claude desktop app, on macOS and Windows with a Linux beta, on a paid plan&lt;br&gt;
from $20 a month; it also ships a VS Code extension, a JetBrains plugin and&lt;br&gt;
a web interface at claude.ai/code. Open-source GUIs wrap the CLI on your&lt;br&gt;
machine: opcode (once called Claudia), CloudCLI and Nimbalyst. Caprock is a&lt;br&gt;
free, open-source desktop app that runs Claude Code, Codex and other agents&lt;br&gt;
in terminal tabs and records every session on the machine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In short&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Anthropic's:&lt;/strong&gt; Claude Desktop → &lt;strong&gt;Code&lt;/strong&gt; tab (a paid plan), the VS Code
extension, claude.ai/code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open source:&lt;/strong&gt; opcode (AGPL-3.0, a desktop app), CloudCLI
(a web UI, &lt;code&gt;npx @cloudcli-ai/cloudcli&lt;/code&gt;), Nimbalyst (MIT).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claudia&lt;/strong&gt; is now opcode: the old repository redirects to it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Several agents, one record:&lt;/strong&gt; Caprock records Claude Code, Codex and
OpenCode whether or not it started them, and runs them in terminal tabs,
free, on macOS, Windows and Linux.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Claude Code GUIs side by side
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Graphical front ends for Claude Code, from each project's own page, read 20 October 2026, re-read 6 November 2026.&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;What it is&lt;/th&gt;
&lt;th&gt;Licence&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Desktop, Code tab&lt;/td&gt;
&lt;td&gt;Anthropic's desktop app&lt;/td&gt;
&lt;td&gt;Anthropic's&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;claude.ai/code&lt;/td&gt;
&lt;td&gt;cloud sessions in a browser&lt;/td&gt;
&lt;td&gt;Anthropic's&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;VS Code extension&lt;/td&gt;
&lt;td&gt;a panel in the editor&lt;/td&gt;
&lt;td&gt;Anthropic's&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JetBrains plugin&lt;/td&gt;
&lt;td&gt;the CLI inside the IDE&lt;/td&gt;
&lt;td&gt;Anthropic's&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;opcode&lt;/td&gt;
&lt;td&gt;a desktop GUI over the CLI&lt;/td&gt;
&lt;td&gt;AGPL-3.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CloudCLI&lt;/td&gt;
&lt;td&gt;a web UI, self-hosted or hosted&lt;/td&gt;
&lt;td&gt;AGPL-3.0-or-later&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nimbalyst&lt;/td&gt;
&lt;td&gt;a workspace for several agents&lt;/td&gt;
&lt;td&gt;MIT&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Caprock&lt;/td&gt;
&lt;td&gt;a desktop app that records every agent and runs them in tabs&lt;/td&gt;
&lt;td&gt;Apache-2.0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;Crystal, often cited, was deprecated in February 2026 in favour of Nimbalyst.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Vibe Kanban, a board in the browser whose company shut down on 10 April&lt;br&gt;
2026, and Claude Squad, a terminal app with no release since 20 August 2026,&lt;br&gt;
are noted with the other &lt;a href="https://caprock.dev/guides/coding-agent-desktop-apps/" rel="noopener noreferrer"&gt;agent apps&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a good GUI for Claude Code and Codex?
&lt;/h2&gt;

&lt;p&gt;The makers' own apps each run one: Claude Desktop's Code tab runs Claude&lt;br&gt;
Code, and the ChatGPT desktop app runs Codex; opcode is a GUI for Claude&lt;br&gt;
Code. These run both:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;VS Code with both extensions&lt;/strong&gt; — Anthropic's Claude Code extension and
OpenAI's Codex extension, each in its own panel of one editor, each on its
own plan.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Caprock&lt;/strong&gt; — free, Apache-2.0, on macOS, Windows and Linux: Claude Code,
Codex, OpenCode, Gemini CLI, Grok Build and Hermes Agent in terminal tabs
per project, over a record of every session on the machine with what each
cost and the Claude and Codex plan limits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nimbalyst&lt;/strong&gt; — MIT, on macOS, Windows and Linux: Claude Code and Codex side
by side, OpenCode and GitHub Copilot in alpha, beside editors for documents
and diagrams.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CloudCLI&lt;/strong&gt; — a web UI for Claude Code, Codex and Cursor CLI, opened from
any browser on your network.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Conductor&lt;/strong&gt; — Claude Code, Codex and Cursor in parallel, on macOS only; it joined Meta and, on 13 November 2026, called off its wind-down: &lt;a href="https://caprock.dev/guides/conductor-alternatives/" rel="noopener noreferrer"&gt;Conductor alternatives&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Orca and Warp run both as well; they are compared with Caprock, Conductor&lt;br&gt;
and Nimbalyst in &lt;a href="https://caprock.dev/guides/coding-agent-desktop-apps/" rel="noopener noreferrer"&gt;agent apps&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Anthropic's official Claude Code GUIs: desktop app, VS Code, JetBrains and web
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Claude Desktop, Code tab&lt;/strong&gt; — parallel sessions, a diff view with
comments, a preview pane, on macOS and Windows with a Linux beta. It needs
a Pro, Max, Ultra, Team or Enterprise plan. The details, and how it compares with
the CLI: &lt;a href="https://caprock.dev/guides/claude-code-desktop-app/" rel="noopener noreferrer"&gt;Claude Code desktop app&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The VS Code extension&lt;/strong&gt; — a panel in VS Code or Cursor, with plan review
and @-mentions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;claude.ai/code&lt;/strong&gt; — sessions in Anthropic's cloud, on a GitHub repository,
that keep running with your laptop closed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Anthropic's surfaces run Claude Code only, not Codex or OpenCode.&lt;/p&gt;

&lt;h2&gt;
  
  
  opcode, the GUI once called Claudia
&lt;/h2&gt;

&lt;p&gt;Search results still send people to Claudia. The project is now &lt;strong&gt;opcode&lt;/strong&gt;:&lt;br&gt;
&lt;code&gt;github.com/getAsterisk/claudia&lt;/code&gt; redirects to &lt;code&gt;github.com/winfunc/opcode&lt;/code&gt;.&lt;br&gt;
It is a desktop app built with Tauri 2 for macOS, Windows and Linux, under&lt;br&gt;
AGPL-3.0, with session management and history, custom agents that run in the&lt;br&gt;
background, usage analytics by model, MCP server management, checkpoints in&lt;br&gt;
a session's timeline, and a CLAUDE.md editor.&lt;/p&gt;

&lt;p&gt;Its GitHub releases have builds for macOS (a universal &lt;code&gt;.dmg&lt;/code&gt;) and Linux&lt;br&gt;
(AppImage and &lt;code&gt;.deb&lt;/code&gt;); the latest, v0.2.0, is from 31 August 2025. On&lt;br&gt;
Windows you build it from source.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Claude Code web UI: CloudCLI
&lt;/h2&gt;

&lt;p&gt;CloudCLI (the &lt;code&gt;claudecodeui&lt;/code&gt; repository) is a web interface for Claude Code,&lt;br&gt;
Cursor CLI, Codex and OpenCode: chat, a file explorer, git, a shell, under&lt;br&gt;
AGPL-3.0-or-later. Start it with Node.js 22 or later:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run CloudCLI and open the address it prints: &lt;code&gt;npx @cloudcli-ai/cloudcli&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It works on a phone's browser on your network. CloudCLI Cloud is a hosted&lt;br&gt;
version, from €7 a month on top of your own AI subscription. For Anthropic's&lt;br&gt;
web version, see claude.ai/code above.&lt;/p&gt;

&lt;h2&gt;
  
  
  Nimbalyst: a visual workspace
&lt;/h2&gt;

&lt;p&gt;Nimbalyst runs Claude Code and Codex in parallel, with OpenCode and GitHub&lt;br&gt;
Copilot in alpha, next to editors for Markdown, mockups and diagrams, on&lt;br&gt;
macOS, Windows and Linux, under MIT, with an iOS companion app. It is free&lt;br&gt;
for individuals.&lt;/p&gt;

&lt;h2&gt;
  
  
  Caprock: a free desktop app for every agent
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh022b3or4ne53xztx91o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh022b3or4ne53xztx91o.png" alt="The Caprock desktop app: six agent tabs numbered ⌘1 to ⌘6, an orchestrating Claude Code session's terminal, the sidebar listing each open tab with its phase, and the agent cockpit with the session's cost per hour, spend chart and three subagents at work" width="800" height="478"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The macOS app replaying a real Caprock work session. Example figures.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Anthropic's app is a window for one agent, free with a plan. Caprock is a&lt;br&gt;
free, open-source desktop app for macOS, Windows and Linux whose difference&lt;br&gt;
is the record across agents: the sessions it did not start, limits across&lt;br&gt;
subscriptions, each pull request's CI state and what it cost. It keeps Claude&lt;br&gt;
Code's own terminal interface — the one you know — in a tab, and puts that&lt;br&gt;
record around it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tabs and split panes per project.&lt;/strong&gt; &lt;strong&gt;New agent&lt;/strong&gt; starts Claude Code,
Codex, OpenCode, Gemini CLI, Grok Build or Hermes Agent, whichever is installed, in a terminal tab of
its project; ⌘E splits it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A chat view.&lt;/strong&gt; An agent tab switches between its terminal and its chat:
your prompts, what the agent wrote, each tool call on one line.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What is waiting on you.&lt;/strong&gt; Sessions stopped on a prompt come first, ⌘J
jumps to the next, the Dock badge counts them, and on macOS a notification
for a Claude Code session Caprock started carries Approve and Deny.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Changes and pull requests.&lt;/strong&gt; Review a worktree's diff, commit and push,
and open a pull request with GitHub connected.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost and limits.&lt;/strong&gt; Every session priced per repository at API list
prices, with the Claude and Codex plan windows, including the &lt;code&gt;claude&lt;/code&gt;
sessions you start in your own terminal.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your phone,&lt;/strong&gt; paired by QR code and opened from anywhere, through an
end-to-end encrypted relay, with no account: in &lt;a href="https://apps.apple.com/app/caprock/id6827747312" rel="noopener noreferrer"&gt;Caprock for iPhone&lt;/a&gt;, free on
the App Store, or in any phone's browser.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It starts the &lt;code&gt;claude&lt;/code&gt; you have installed, on your plan or API key, and&lt;br&gt;
types only into sessions it started. &lt;a href="https://caprock.dev/install/" rel="noopener noreferrer"&gt;Install Caprock&lt;/a&gt;, or see how&lt;br&gt;
it &lt;a href="https://caprock.dev/guides/coding-agent-desktop-apps/" rel="noopener noreferrer"&gt;compares with other agent apps&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which Claude Code GUI to use
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Claude Desktop's Code tab&lt;/strong&gt; — Anthropic's own app, on a paid plan.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The VS Code extension&lt;/strong&gt; — you live in the editor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;claude.ai/code&lt;/strong&gt; — the work should run while your laptop is closed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;opcode&lt;/strong&gt; — an open-source desktop GUI on macOS or Linux; check how
recent its last release is first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CloudCLI&lt;/strong&gt; — a web UI you open from any browser on your network.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nimbalyst&lt;/strong&gt; — documents, mockups and diagrams beside the agents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Caprock&lt;/strong&gt; — several agents across projects, with one record of who is
waiting on you, how close each limit is and what each pull request cost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude Code and Codex together&lt;/strong&gt; — VS Code with both extensions, or
Caprock, Nimbalyst or CloudCLI.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/terminal-guide" rel="noopener noreferrer"&gt;Claude Code docs — Terminal guide for new users (other ways to use Claude Code), read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/desktop" rel="noopener noreferrer"&gt;Claude Code docs — Desktop application, read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/claude-code-on-the-web" rel="noopener noreferrer"&gt;Claude Code docs — Claude Code on the web, read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/vs-code" rel="noopener noreferrer"&gt;Claude Code docs — VS Code extension, read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/jetbrains" rel="noopener noreferrer"&gt;Claude Code docs — JetBrains IDEs, read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://claude.com/pricing" rel="noopener noreferrer"&gt;Claude pricing — Pro $20 a month, $17 billed yearly, read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/winfunc/opcode" rel="noopener noreferrer"&gt;opcode on GitHub, read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/winfunc/opcode/releases" rel="noopener noreferrer"&gt;opcode releases — v0.2.0, 31 August 2025, read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/getAsterisk/claudia" rel="noopener noreferrer"&gt;getAsterisk/claudia, which redirects to winfunc/opcode, checked 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/siteboon/claudecodeui" rel="noopener noreferrer"&gt;CloudCLI (claudecodeui) on GitHub, release v1.37.7 (31 October 2026), re-read 6 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cloudcli.ai/pricing" rel="noopener noreferrer"&gt;CloudCLI Cloud pricing — from €7 a month, read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/Nimbalyst/nimbalyst" rel="noopener noreferrer"&gt;Nimbalyst on GitHub, release v0.81.7 (16 October 2026), read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://nimbalyst.com" rel="noopener noreferrer"&gt;Nimbalyst — free for individuals, read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/stravu/crystal" rel="noopener noreferrer"&gt;Crystal on GitHub (deprecated February 2026), read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.chatgpt.com/docs/codex/ide" rel="noopener noreferrer"&gt;OpenAI docs — Codex IDE extension for VS Code and compatible editors, read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/docs/installation" rel="noopener noreferrer"&gt;Conductor docs — installation: macOS only; Claude Code, Codex and Cursor, read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.conductor.build/changelog/0.94.2-conductor-is-back" rel="noopener noreferrer"&gt;Conductor changelog — 0.93.0, joining Meta (4 November 2026); 0.94.2, "Conductor isn't shutting down" (13 November 2026), read 15 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/stablyai/orca" rel="noopener noreferrer"&gt;Orca on GitHub — Claude Code, Codex and other CLI agents, read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.warp.dev/agents/cli-agents/" rel="noopener noreferrer"&gt;Warp docs — supported CLI coding agents, read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/blob/master/docs/app.md" rel="noopener noreferrer"&gt;Caprock docs — the desktop app (docs/app.md)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/blob/master/internal/agents/binaries.go" rel="noopener noreferrer"&gt;Caprock source — the agents New agent starts (internal/agents/binaries.go)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/blob/master/docs/install-app.md" rel="noopener noreferrer"&gt;Caprock docs — installing the app (docs/install-app.md)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/desktop" rel="noopener noreferrer"&gt;Claude Code docs — Desktop: macOS universal build, Windows x64 and ARM64, parallel sessions in the sidebar, read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/desktop-linux" rel="noopener noreferrer"&gt;Claude Code docs — Claude Desktop on Linux: "in beta", Ubuntu 22.04+ or Debian 12+, x86_64 or arm64, apt install claude-desktop; Fedora or Arch: "run the CLI instead", read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://claude.com/download" rel="noopener noreferrer"&gt;Claude download page — "Claude Code and Claude Cowork are available on Pro, Max, Ultra, Team, and Enterprise", read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://claude.com/pricing" rel="noopener noreferrer"&gt;Claude pricing — Pro $20 billed monthly; Claude Code not in Free, read 18 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://caprock.dev/guides/claude-code-gui/" rel="noopener noreferrer"&gt;caprock.dev&lt;/a&gt;, where it is kept up to date.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>ai</category>
      <category>devtools</category>
      <category>opensource</category>
    </item>
    <item>
      <title>My coding agents would have cost $8,360 in 30 days. Here's where it went.</title>
      <dc:creator>Dmitriy Solodukha</dc:creator>
      <pubDate>Wed, 18 Nov 2026 14:48:16 +0000</pubDate>
      <link>https://dev.to/dspv/my-coding-agents-would-have-cost-8360-in-30-days-heres-where-it-went-3jil</link>
      <guid>https://dev.to/dspv/my-coding-agents-would-have-cost-8360-in-30-days-heres-where-it-went-3jil</guid>
      <description>&lt;p&gt;I build a developer tool alone, with Claude Code and Codex running most of the day. For the last 30 days (8 October to 6 November 2026) I priced every call they made at API list rates.&lt;/p&gt;

&lt;p&gt;The total: &lt;strong&gt;$8,360&lt;/strong&gt;. Claude: $8,056. Codex: $304.&lt;/p&gt;

&lt;p&gt;That isn't my bill. I'm on a flat plan, so what I actually paid is the plan fee. The $8,360 is what the same work would have cost through the API. I watch it because it tells me whether the plan is paying for itself, and which work is expensive.&lt;/p&gt;

&lt;h2&gt;
  
  
  The days are uneven
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Busiest day:&lt;/strong&gt; 14 October, $670.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quietest day:&lt;/strong&gt; 19 October, $92.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A sevenfold spread between two days of the same person on the same projects. A monthly average hides that, and the busiest day is what a plan's limits have to hold.&lt;/p&gt;

&lt;h2&gt;
  
  
  One model takes nearly all of it
&lt;/h2&gt;

&lt;p&gt;About nine dollars in every ten went to Claude Opus. Everything else together — Fable, Sonnet, Haiku and OpenAI's GPT models through Codex — is the remaining tenth. If I want the number lower, choosing a model per task does more than anything else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Per pull request, it's small
&lt;/h2&gt;

&lt;p&gt;In one October week, 45 pull requests merged on my main project. The agents' work on them came to $343.78, or &lt;strong&gt;$7.64 per pull request&lt;/strong&gt; at list price. The most expensive single one cost $71.13. Seen that way, the useful question isn't the monthly total but which changes cost nine times the average, and why.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I measured it
&lt;/h2&gt;

&lt;p&gt;Claude Code and Codex both keep their own session logs on disk, and neither adds its sessions up with the other's. I read both into one local table and price every turn by model at list price. Nothing leaves the machine.&lt;/p&gt;

&lt;p&gt;The tool I use for this is the one I'm building: &lt;a href="https://caprock.dev/numbers/" rel="noopener noreferrer"&gt;Caprock&lt;/a&gt;, a free, open-source (Apache-2.0) desktop app for macOS, Windows and Linux. You don't need it to do this, though. The logs are in &lt;code&gt;~/.claude/projects/&lt;/code&gt; and &lt;code&gt;~/.codex/sessions/&lt;/code&gt;, and the prices are on Anthropic's and OpenAI's pricing pages. A script can do the same sum.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell someone starting
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Look at one week of your own numbers before choosing a plan.&lt;/strong&gt; Mine would be a terrible fit for pay-as-you-go and a good one for a flat plan. Yours may be the opposite.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Watch the busiest day, not the average.&lt;/strong&gt; It's what your plan's limits have to hold.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Price the pull request, not the month.&lt;/strong&gt; A monthly total says little; cost per merged change says whether the agents are worth it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The full numbers, with the method, are on &lt;a href="https://caprock.dev/numbers/" rel="noopener noreferrer"&gt;caprock.dev/numbers&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>productivity</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Claude Code analytics: dashboard and API compared</title>
      <dc:creator>Dmitriy Solodukha</dc:creator>
      <pubDate>Mon, 16 Nov 2026 14:48:06 +0000</pubDate>
      <link>https://dev.to/dspv/claude-code-analytics-dashboard-and-api-compared-1opl</link>
      <guid>https://dev.to/dspv/claude-code-analytics-dashboard-and-api-compared-1opl</guid>
      <description>&lt;p&gt;Claude Code analytics for a team: Anthropic's dashboard, spend report, Analytics API and OpenTelemetry. What each one shows, and what none of them answer.&lt;/p&gt;

&lt;p&gt;Anthropic gives a team several ways to see its Claude Code: a dashboard, a spend report, two analytics APIs and an OpenTelemetry export, among others. Between them they say who used it, what each person spent on each model, and which merged pull requests Claude wrote. None of them says which part of a repository the money went to.&lt;/p&gt;

&lt;p&gt;I build a tool for the repository question, so I read Anthropic's documentation for each one on 1 October 2026 and again on 3 October. This is what each shows:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What each source shows, from Anthropic's docs read 3 October 2026Source&lt;/th&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;th&gt;Per user&lt;/th&gt;
&lt;th&gt;Per model&lt;/th&gt;
&lt;th&gt;Per repo&lt;/th&gt;
&lt;th&gt;Fresh&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Team dashboard&lt;/td&gt;
&lt;td&gt;Team, Enterprise&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;daily&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spend report&lt;/td&gt;
&lt;td&gt;Team, Enterprise&lt;/td&gt;
&lt;td&gt;usage credits&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;daily&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code Analytics API&lt;/td&gt;
&lt;td&gt;Console&lt;/td&gt;
&lt;td&gt;estimated&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;≤ 1 hour&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Enterprise API&lt;/td&gt;
&lt;td&gt;Enterprise&lt;/td&gt;
&lt;td&gt;credits on seats&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;next day; cost ~4 h&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenTelemetry&lt;/td&gt;
&lt;td&gt;any&lt;/td&gt;
&lt;td&gt;approximate&lt;/td&gt;
&lt;td&gt;email&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;opt-in&lt;/td&gt;
&lt;td&gt;streamed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Caprock&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;list price&lt;/td&gt;
&lt;td&gt;one machine&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;per folder&lt;/td&gt;
&lt;td&gt;live&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;"Credits on seats": on seat-based Enterprise the cost reports cover usage credits only. Caprock's row is the tool I build, for comparison.&lt;/p&gt;

&lt;p&gt;And which of them you get depends on how your organization pays:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Which one you get, by planPlan&lt;/th&gt;
&lt;th&gt;Dashboard&lt;/th&gt;
&lt;th&gt;Spend report&lt;/th&gt;
&lt;th&gt;Analytics API&lt;/th&gt;
&lt;th&gt;OpenTelemetry&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Console (API)&lt;/td&gt;
&lt;td&gt;Console dashboard&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;Claude Code Analytics API&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Team&lt;/td&gt;
&lt;td&gt;claude.ai&lt;/td&gt;
&lt;td&gt;with usage credits&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Enterprise&lt;/td&gt;
&lt;td&gt;claude.ai&lt;/td&gt;
&lt;td&gt;with usage credits&lt;/td&gt;
&lt;td&gt;Enterprise Analytics API&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bedrock, Google Cloud, Foundry&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Usage through Bedrock, Google Cloud or Foundry reaches no Anthropic dashboard or API; OpenTelemetry covers it. Pro and Max have no organization to manage; &lt;code&gt;/usage&lt;/code&gt; is the view there.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Team and Enterprise dashboard counts adoption and shipped code
&lt;/h2&gt;

&lt;p&gt;On a Team or Enterprise plan, admins and owners get a Claude Code dashboard on claude.ai: lines of code accepted, suggestion accept rate, daily active users and sessions, a leaderboard, and a CSV export. On the Console the equivalent dashboard shows usage and each member's spend this month, with no contribution metrics.&lt;/p&gt;

&lt;p&gt;The strongest part is contribution metrics. Connect the Claude GitHub app and Anthropic matches each merged pull request against Claude Code session activity: the added lines are normalised and compared with what Claude wrote, sessions from 21 days before to 2 days after the merge are considered, and lines a developer substantially rewrote are not credited. Pull requests with Claude's lines get a &lt;code&gt;claude-code-assisted&lt;/code&gt; label in GitHub. That is attribution from the code that actually shipped, and Caprock does not do it.&lt;/p&gt;

&lt;p&gt;The limits, from the same page: contribution metrics are in public beta, are off for organisations with Zero Data Retention, and cover only users in your claude.ai organisation. The dashboard shows no cost; for that the docs point to the spend report or OpenTelemetry.&lt;/p&gt;

&lt;p&gt;Which of these sources name a person, and what Claude Code itself sends Anthropic on each plan: &lt;a href="https://caprock.dev/guides/claude-code-privacy/" rel="noopener noreferrer"&gt;Claude Code privacy&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The spend report prices each person and model, above the seat
&lt;/h2&gt;

&lt;p&gt;The spend report is a CSV from Settings › Analytics. Each row is one person's use of one model, summed over the range you pick — month to date, last month, or up to 90 days, through yesterday. It names the product (Chat, Claude Code, Cowork, Office Agents) and carries requests, tokens, and spend both after and before discounts. Anthropic says it should closely match the invoice: your rates, not list prices.&lt;/p&gt;

&lt;p&gt;The catch is the seat. The report covers usage-credit spend and appears once usage credits are on; usage inside the seat allowance is not metered in dollars. On a seat plan it shows what the team spent beyond its seats, not what the work inside them would have cost.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two analytics APIs, and the Team plan has neither
&lt;/h2&gt;

&lt;p&gt;They are separate APIs with separate keys, and one does not unlock the other.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The Claude Code Analytics API&lt;/strong&gt; takes an Admin API key and returns one UTC day per call, one record per user or API key: sessions, lines added and removed, commits and pull requests, accepts and rejects for Edit, MultiEdit, Write and NotebookEdit, and tokens with estimated cost per model. It is free. Usage through Bedrock, Google Cloud or Microsoft Foundry is not in it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Claude Enterprise Analytics API&lt;/strong&gt; takes a key a Primary Owner creates with the &lt;code&gt;read:analytics&lt;/code&gt; scope. It returns per-user activity across Claude products, Claude Code included, a day behind, and cost and usage reports that group by product, model, context window, region, speed or group, typically within four hours. Data starts on 1 January 2026. Claude Code used through Bedrock is not returned.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On the Team plan the docs point to the spend report CSV instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  OpenTelemetry: your own stack, and the only repository field
&lt;/h2&gt;

&lt;p&gt;The most detailed source is the one you host. Turn on telemetry and Claude Code streams metrics and events to an OpenTelemetry collector you run: &lt;code&gt;claude_code.cost.usage&lt;/code&gt;, token, session, lines-of-code, commit, pull request, edit-decision and active-time counters, each with &lt;code&gt;session.id&lt;/code&gt; and, when signed in, the user's email; the token, cost and lines counters also carry the model. Prompts are redacted unless you set &lt;code&gt;OTEL_LOG_USER_PROMPTS=1&lt;/code&gt;. An admin can push the settings to every machine, it works when Claude Code runs on a cloud provider, and the monitoring page names no plan requirement.&lt;/p&gt;

&lt;p&gt;Since Claude Code v2.1.269 it can also tag the repository:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CLAUDE_CODE_ENABLE_TELEMETRY=1
OTEL_METRICS_EXPORTER=otlp
OTEL_EXPORTER_OTLP_PROTOCOL=grpc
OTEL_EXPORTER_OTLP_ENDPOINT=http://collector.example.com:4317
OTEL_METRICS_INCLUDE_REPOSITORY=true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;That adds &lt;code&gt;vcs.repository.name&lt;/code&gt; and its owner and URL, derived once per session from the &lt;code&gt;origin&lt;/code&gt; remote. It is off by default, it is absent for a repository with no &lt;code&gt;origin&lt;/code&gt;, and Anthropic's own telemetry drops it — it reaches only your exporters. It is the closest any official source comes to cost per repository: opt in, run the backend, write the queries. The docs call the cost figures approximations.&lt;/p&gt;

&lt;p&gt;The variables, every attribute that names a person and what the stream never carries: &lt;a href="https://caprock.dev/guides/claude-code-opentelemetry/" rel="noopener noreferrer"&gt;Claude Code OpenTelemetry&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What none of them answer
&lt;/h2&gt;

&lt;p&gt;All of them stop at the same three edges.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Which directory inside a repository.&lt;/strong&gt; The OpenTelemetry tag is one value per session. Open Claude at the root of a monorepo and every service's work is charged to the monorepo. The dashboard, the spend report and both APIs carry no repository at all. You could rebuild it from OpenTelemetry's tool events with tool details logged, but the join is yours to write.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What each kind of work cost.&lt;/strong&gt; Cost is split by model, subagent, skill, plugin and MCP server. OpenTelemetry can record tool activity, but none of these gives you the cost of running tests versus editing or reading code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anything that is not Claude.&lt;/strong&gt; Every one of them describes Claude. Codex, OpenCode and Gemini CLI appear in none of them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Caprock answers these on the machine itself, as it happens. It reads what the agents write on disk (for Gemini CLI, the sessions Caprock starts), so it needs no account, no collector and no plan, and goes online only for what you switch on (update checks, GitHub, a paired phone). It does not read Cursor or Copilot.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Per directory.&lt;/strong&gt; Each turn's cost goes whole to the directory of the most recent file that session read or edited, and stays there until it touches a file somewhere else. A Bash command does not count as touching. Turns before the first touch are their own row rather than spread across the others, as is work on files outside the repository, and the rows add up to the total. It is a stated rule, not file-by-file measurement, and the dashboard says so beside the numbers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;By kind of work.&lt;/strong&gt; Each turn is classed by its own tool calls: edits, commands, reading and search, web, MCP, other, or none. On my machine &lt;a href="https://caprock.dev/blog/where-the-money-goes/" rel="noopener noreferrer"&gt;nearly half of every tool call was a command&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Loops while they run.&lt;/strong&gt; The same tool with near-identical input five times in three minutes raises an alert; repeated reads and searches are left out.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every agent and model.&lt;/strong&gt; Claude Code, Codex, OpenCode, DeepSeek Harness, Hermes Agent and the Gemini CLI sessions Caprock starts land in &lt;a href="https://caprock.dev/blog/five-agents-one-table/" rel="noopener noreferrer"&gt;the same table&lt;/a&gt;, with each model's cost beside the others.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Caprock prices tokens at each provider's list prices: on a seat that is what the work would cost through the API, not a bill, and on Bedrock or Vertex it is not your cloud's rate. It sees one machine, and not sessions in a vendor's cloud or in CI; &lt;a href="https://caprock.dev/teams/" rel="noopener noreferrer"&gt;Caprock for Teams&lt;/a&gt; is the self-hosted server several machines report into, by repository, pull request and release, with no field for a prompt. It attributes cost to a pull request — what the sessions that worked on it spent — not lines of code; for the lines, Anthropic's dashboard is the one to use.&lt;/p&gt;

&lt;p&gt;For a team, they fit together: Anthropic for adoption, the lines Claude wrote and the invoice, Caprock for what each repository and pull request cost, however the team pays. On your own machine, it reads back whatever Claude Code still has on disk the first time it runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/analytics" rel="noopener noreferrer"&gt;Track team usage with analytics — the Team and Enterprise dashboard and PR attribution&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/costs#manage-costs-for-your-organization" rel="noopener noreferrer"&gt;Manage costs for your organization — which report each plan gets&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://support.claude.com/en/articles/12883420-view-usage-analytics-for-team-and-enterprise-plans" rel="noopener noreferrer"&gt;View usage analytics for Team and Enterprise plans — the spend report&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://platform.claude.com/docs/en/manage-claude/claude-code-analytics-api" rel="noopener noreferrer"&gt;Claude Code Analytics API — fields, freshness, deployments covered&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://platform.claude.com/docs/en/manage-claude/analytics-api" rel="noopener noreferrer"&gt;Analytics APIs — which API and key each organization needs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://platform.claude.com/docs/en/api/beta/organization/analytics" rel="noopener noreferrer"&gt;Claude Enterprise Analytics API reference — endpoints and group_by values&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/monitoring-usage" rel="noopener noreferrer"&gt;Monitoring — Claude Code's OpenTelemetry metrics and repository attributes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://caprock.dev/blog/claude-code-analytics/" rel="noopener noreferrer"&gt;caprock.dev&lt;/a&gt;. Caprock is the free, open-source app I build to run and watch Claude Code, Codex and other coding agents on my own machine: &lt;a href="https://github.com/dspv/caprock" rel="noopener noreferrer"&gt;github.com/dspv/caprock&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
    <item>
      <title>Five coding agents, five formats, one table</title>
      <dc:creator>Dmitriy Solodukha</dc:creator>
      <pubDate>Fri, 13 Nov 2026 14:19:17 +0000</pubDate>
      <link>https://dev.to/dspv/five-coding-agents-five-formats-one-table-5g7h</link>
      <guid>https://dev.to/dspv/five-coding-agents-five-formats-one-table-5g7h</guid>
      <description>&lt;p&gt;Claude Code, Codex, OpenCode, Gemini CLI and DeepSeek Harness each record their work differently, and three of the differences give a believable wrong number.&lt;/p&gt;

&lt;p&gt;This post compares how five coding agents — Claude Code, Codex, OpenCode, Gemini CLI and DeepSeek Harness — write down what they did: where the record lives, its format, how it counts cached tokens, whether it states a cost, and where it names the model. Then it shows the one table Caprock turns all five into, so their numbers can be added up.&lt;/p&gt;

&lt;p&gt;Update, 2026-10-20: Caprock now reads a sixth, Hermes Agent, from its own SQLite database, and carries Hermes's cost figure through as it does OpenCode's.&lt;/p&gt;

&lt;p&gt;A reader looked at Caprock and guessed what it does underneath: "parsing JSON, and sweating to build a coherent image out of huge and heavy JSON files." He was right, and it is the part of the product nobody sees. None of the five writes its record the same way, none promises to keep its format as it is, and Claude Code &lt;a href="https://caprock.dev/blog/claude-code-forgets/" rel="noopener noreferrer"&gt;deletes its record after 30 days&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How each agent records its work
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;How each agent records its work, read on one machine, 1 October 2026Agent&lt;/th&gt;
&lt;th&gt;Where it lives&lt;/th&gt;
&lt;th&gt;Format&lt;/th&gt;
&lt;th&gt;Cached tokens&lt;/th&gt;
&lt;th&gt;Reports its cost&lt;/th&gt;
&lt;th&gt;Model named in&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;~/.claude/projects&lt;/td&gt;
&lt;td&gt;JSON lines&lt;/td&gt;
&lt;td&gt;beside fresh input&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;each reply&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Codex&lt;/td&gt;
&lt;td&gt;~/.codex/sessions&lt;/td&gt;
&lt;td&gt;JSON lines&lt;/td&gt;
&lt;td&gt;inside input&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;base instructions, 96 of 100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenCode&lt;/td&gt;
&lt;td&gt;its SQLite database&lt;/td&gt;
&lt;td&gt;SQL rows&lt;/td&gt;
&lt;td&gt;own column&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;each session&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini CLI&lt;/td&gt;
&lt;td&gt;a telemetry file, if asked&lt;/td&gt;
&lt;td&gt;OTel log&lt;/td&gt;
&lt;td&gt;reads, no writes&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;each response&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DeepSeek Harness&lt;/td&gt;
&lt;td&gt;session.v3.jsonl.zstd&lt;/td&gt;
&lt;td&gt;JSON lines, zstd&lt;/td&gt;
&lt;td&gt;beside fresh input&lt;/td&gt;
&lt;td&gt;no&lt;/td&gt;
&lt;td&gt;each reply&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;"Cached tokens" is how the cached part of a prompt is counted; OTel is OpenTelemetry. Codex also writes token counts as running totals. Caprock reads Gemini CLI from a telemetry file it asks for when it starts a session. (As of 2026-10-20: Gemini CLI does keep its own session history, under ~/.gemini/tmp//chats/; Caprock does not read it.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Three ways to get a believable wrong answer
&lt;/h2&gt;

&lt;p&gt;Reading the files is not the hard part. The obvious reading of each can give you a number that looks right and is not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cached tokens counted twice.&lt;/strong&gt; Claude Code reports fresh input and cache reads side by side. Codex reports the whole prompt as input, with the cached part as a &lt;em&gt;subset&lt;/em&gt; of it. Treat the two the same way and every cached Codex token is billed twice — once at full price.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tokens counted twice.&lt;/strong&gt; Codex writes both a running total and a per-turn figure, and often writes the same sample twice in a row. Summing the per-turn figure on one real session gave 261,111 tokens; the true count was 137,739.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The model in the wrong place.&lt;/strong&gt; Codex names the model in a turn context in 4 transcripts out of 100. In the other 96 it is inside the session's base instructions. Read only the obvious field and most of your Codex work has no model, so no price.&lt;/p&gt;

&lt;p&gt;None of these mistakes raises a parsing error.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A wrong number can sit on a dashboard looking perfectly ordinary.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  One table
&lt;/h2&gt;

&lt;p&gt;Caprock reads all five as they are written and turns each into the same rows: one per turn, tool call or lifecycle event, with the same columns whichever agent produced it — agent, model, fresh input, cache read, cache write, output, cost, the folder the work touched.&lt;/p&gt;

&lt;p&gt;That table is yours to take out. On my machine, on 1 October:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ caprock export &amp;gt; record.tsv
$ wc -l record.tsv
  305162 record.tsv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Three hundred thousand rows from four agents, in about five seconds, as TSV, CSV or JSON lines. It reads the database without writing to it, works with Caprock stopped, and leaves out prompts and replies unless you ask for them. Here is one reply from each agent in it:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;One reply from each agent, from the same export — four replies of different sizes, not a cost comparisonAgent&lt;/th&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;tokens_in&lt;/th&gt;
&lt;th&gt;tokens_out&lt;/th&gt;
&lt;th&gt;cache_read&lt;/th&gt;
&lt;th&gt;cost_usd&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;claude-opus-5-5&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;1,073&lt;/td&gt;
&lt;td&gt;308,787&lt;/td&gt;
&lt;td&gt;$0.198&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Codex&lt;/td&gt;
&lt;td&gt;gpt-6-astra&lt;/td&gt;
&lt;td&gt;4,656&lt;/td&gt;
&lt;td&gt;116&lt;/td&gt;
&lt;td&gt;55,552&lt;/td&gt;
&lt;td&gt;$0.108&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenCode&lt;/td&gt;
&lt;td&gt;deepseek-v4-pro&lt;/td&gt;
&lt;td&gt;26,983&lt;/td&gt;
&lt;td&gt;1,515&lt;/td&gt;
&lt;td&gt;5,120&lt;/td&gt;
&lt;td&gt;$0.057&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DeepSeek Harness&lt;/td&gt;
&lt;td&gt;deepseek-v4-pro&lt;/td&gt;
&lt;td&gt;128&lt;/td&gt;
&lt;td&gt;823&lt;/td&gt;
&lt;td&gt;121,472&lt;/td&gt;
&lt;td&gt;$0.0012&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Columns 3, 8–11 and 14 of the export, cost rounded. Gemini CLI has no row: Caprock records only the Gemini sessions it starts, and the record held none.&lt;/p&gt;

&lt;p&gt;Look at the &lt;code&gt;tokens_in&lt;/code&gt; column. Claude Code's fresh input is 2 tokens, because almost everything came from the cache; Codex's is 4,656 because the cached part has already been taken out of it. In the files they came from, those two numbers mean different things. Here they mean the same thing.&lt;/p&gt;

&lt;p&gt;Four of the five report tokens and no cost, so Caprock prices them from a &lt;a href="https://github.com/dspv/caprock/blob/master/pricing/pricing.json" rel="noopener noreferrer"&gt;dated table&lt;/a&gt; of each provider's list prices. OpenCode computes its own cost, and that figure is kept as it is — two arithmetics over the same tokens would give one session two totals.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this is the part worth having
&lt;/h2&gt;

&lt;p&gt;When a vendor changes its format, the table stays the same. The work of noticing is done once here, instead of by everyone trying to count what their agents cost.&lt;/p&gt;

&lt;p&gt;The columns are documented in &lt;a href="https://github.com/dspv/caprock/blob/master/docs/schema.md" rel="noopener noreferrer"&gt;the schema&lt;/a&gt;. It is plain SQLite on your disk, with network features off by default.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/blob/master/docs/schema.md" rel="noopener noreferrer"&gt;Caprock export schema — the columns and where each comes from&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/blob/master/.ai/19-codex.md" rel="noopener noreferrer"&gt;Codex transcripts, measured — the three wrong readings&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/data-usage#data-retention" rel="noopener noreferrer"&gt;Claude Code: data usage and the 30-day local retention&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/blob/master/pricing/pricing.json" rel="noopener noreferrer"&gt;Caprock's dated price table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/blob/master/.ai/16-opencode.md" rel="noopener noreferrer"&gt;OpenCode support — its SQLite database and its own cost column&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/blob/master/.ai/20-deepseek.md" rel="noopener noreferrer"&gt;DeepSeek Harness support — the zstd transcript and its token split&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/blob/master/.ai/02-architecture.md" rel="noopener noreferrer"&gt;Caprock architecture — Gemini CLI's telemetry file&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://geminicli.com/docs/cli/session-management/" rel="noopener noreferrer"&gt;Gemini CLI session management — its own session history, read 20 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Figures read on 2026-10-01 by Caprock v0.62.0 on one machine, mine. A reading, not a live feed; yours will differ.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://caprock.dev/blog/five-agents-one-table/" rel="noopener noreferrer"&gt;caprock.dev&lt;/a&gt;. Caprock is the free, open-source app I build to run and watch Claude Code, Codex and other coding agents on my own machine: &lt;a href="https://github.com/dspv/caprock" rel="noopener noreferrer"&gt;github.com/dspv/caprock&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
    <item>
      <title>Claude Code had already deleted half my history</title>
      <dc:creator>Dmitriy Solodukha</dc:creator>
      <pubDate>Wed, 11 Nov 2026 14:19:08 +0000</pubDate>
      <link>https://dev.to/dspv/claude-code-had-already-deleted-half-my-history-g33</link>
      <guid>https://dev.to/dspv/claude-code-had-already-deleted-half-my-history-g33</guid>
      <description>&lt;p&gt;It keeps transcripts for 30 days. On my machine that was 67 sessions and $7,808 of work — gone from disk, still searchable in Caprock.&lt;/p&gt;

&lt;p&gt;Every Claude Code session is written to a file on your disk. Its &lt;a href="https://code.claude.com/docs/en/data-usage#data-retention" rel="noopener noreferrer"&gt;documentation&lt;/a&gt; says how long that file lives: transcripts are stored under &lt;code&gt;~/.claude/projects/&lt;/code&gt; "for 30 days by default", then deleted.&lt;/p&gt;

&lt;p&gt;I had never thought about what that meant for the work itself, so I counted.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Claude Code history lives, and why it disappears
&lt;/h2&gt;

&lt;p&gt;Each session is one JSON-lines file at &lt;code&gt;~/.claude/projects/&amp;lt;folder&amp;gt;/&amp;lt;session-id&amp;gt;.jsonl&lt;/code&gt;, where the folder is the project's path with every slash turned into a dash. Claude Code deletes these files after 30 days by default; the &lt;code&gt;cleanupPeriodDays&lt;/code&gt; setting changes the number. Nothing warns you: a session you could resume last month is simply not in the list.&lt;/p&gt;

&lt;h2&gt;
  
  
  More than half my sessions are already gone
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;67 of 114&lt;/strong&gt; Claude Code sessions whose transcript is no longer on disk&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;$7,808&lt;/strong&gt; of work in them, at API list prices — 56% of the total&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;51,093&lt;/strong&gt; replies from Claude in them, still searchable&lt;/p&gt;

&lt;p&gt;Caprock has recorded 114 Claude Code sessions on this machine since 18 July. For 67 of them the transcript file no longer exists. Ten of those lived in a git worktree I deleted myself; the other 57 were removed by Claude Code's own cleanup.&lt;/p&gt;

&lt;p&gt;__Transcript deleted __Still on disk&lt;/p&gt;

&lt;p&gt;Jul17 / 17$6,362 of work&lt;/p&gt;

&lt;p&gt;Aug44 / 59&lt;/p&gt;

&lt;p&gt;Sep6 / 38&lt;/p&gt;

&lt;p&gt;Claude Code sessions by the month they started.&lt;/p&gt;

&lt;p&gt;Everything from July is gone — and July alone was $6,362 of work, the most expensive month on the chart.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually disappears
&lt;/h2&gt;

&lt;p&gt;Code committed to git remains. What goes is everything around it: why a decision was made, the error that took an afternoon, the command that finally worked, the explanation Claude gave that you meant to come back to.&lt;/p&gt;

&lt;p&gt;That is the part you cannot reconstruct from a commit.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A month later you remember &lt;em&gt;that&lt;/em&gt; you solved it, not &lt;em&gt;how&lt;/em&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How to keep Claude Code history past 30 days
&lt;/h2&gt;

&lt;p&gt;You can raise the limit. In &lt;code&gt;~/.claude/settings.json&lt;/code&gt;:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "cleanupPeriodDays": 365
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;That keeps the files. It does not give you one searchable history: they are JSON, organised by project and session, and Claude Code resumes one at a time.&lt;/p&gt;

&lt;p&gt;Caprock reads each transcript as it is written and keeps what matters in one database on your machine — every reply, every command, every cost — and puts Codex, OpenCode, Gemini CLI, DeepSeek Harness and Hermes Agent in the same tables, &lt;a href="https://caprock.dev/blog/five-agents-one-table/" rel="noopener noreferrer"&gt;one table for all of them&lt;/a&gt;. When Claude Code deletes a file, nothing in Caprock changes. Caprock's &lt;a href="https://caprock.dev/docs/#screens" rel="noopener noreferrer"&gt;Memory&lt;/a&gt; screen searches all of it, and opening a folder you worked in hands the next session back where the last one stopped.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part that cannot be fixed later
&lt;/h2&gt;

&lt;p&gt;History only accumulates from the day something starts keeping it. Install Caprock today and it reads back the last 30 days that are still on disk; it cannot read back what Claude Code has already deleted.&lt;/p&gt;

&lt;p&gt;Those 57 sessions on my machine exist only because Caprock was running before the cleanup reached them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/data-usage#data-retention" rel="noopener noreferrer"&gt;Claude Code: data usage — local transcripts kept 30 days by default&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/settings-reference" rel="noopener noreferrer"&gt;Claude Code settings reference: cleanupPeriodDays&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/claude-directory#cleaned-up-automatically" rel="noopener noreferrer"&gt;Claude Code: the .claude directory — what the 30-day cleanup deletes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Figures read on 2026-10-01 by Caprock v0.61.0 on one machine, mine. A reading, not a live feed; yours will differ.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://caprock.dev/blog/claude-code-forgets/" rel="noopener noreferrer"&gt;caprock.dev&lt;/a&gt;. Caprock is the free, open-source app I build to run and watch Claude Code, Codex and other coding agents on my own machine: &lt;a href="https://github.com/dspv/caprock" rel="noopener noreferrer"&gt;github.com/dspv/caprock&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
    <item>
      <title>49% of my Claude Code tool calls ran commands</title>
      <dc:creator>Dmitriy Solodukha</dc:creator>
      <pubDate>Mon, 09 Nov 2026 14:22:56 +0000</pubDate>
      <link>https://dev.to/dspv/49-of-my-claude-code-tool-calls-ran-commands-494g</link>
      <guid>https://dev.to/dspv/49-of-my-claude-code-tool-calls-ran-commands-494g</guid>
      <description>&lt;p&gt;In 58 days of my Claude Code sessions, 49% of tool calls ran shell commands. The call counts, cost at API list prices and cache figures from one machine.&lt;/p&gt;

&lt;p&gt;For 58 active days I had been running Claude Code, yet I could not have told you what its tool calls were doing. The evidence was already in transcript files on my disk. I wrote Caprock to read them and found that 49% of those calls ran shell commands.&lt;/p&gt;

&lt;h2&gt;
  
  
  $10,513 over 58 days
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;$10,513&lt;/strong&gt; at Anthropic's list prices, 58 days&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;$181&lt;/strong&gt; a day, on the days I worked&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;$200&lt;/strong&gt; what the plan costs a month&lt;/p&gt;

&lt;p&gt;That is what my sessions would have cost at Anthropic's list prices. I pay $200 a month for a plan, so it is not a saving — it is what the same work would cost billed per token.&lt;/p&gt;

&lt;h2&gt;
  
  
  Nearly half the tool calls ran Bash
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Share&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Bash&lt;/td&gt;
&lt;td&gt;49%&lt;/td&gt;
&lt;td&gt;40,213 calls&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Read&lt;/td&gt;
&lt;td&gt;14%&lt;/td&gt;
&lt;td&gt;11,681 calls&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Edit&lt;/td&gt;
&lt;td&gt;9%&lt;/td&gt;
&lt;td&gt;7,862 calls&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WebFetch&lt;/td&gt;
&lt;td&gt;7%&lt;/td&gt;
&lt;td&gt;6,052 calls&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WebSearch&lt;/td&gt;
&lt;td&gt;4%&lt;/td&gt;
&lt;td&gt;3,525 calls&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Share of all tool calls, 58 days on one machine.&lt;/p&gt;

&lt;p&gt;Nearly half my tool calls ran commands: tests, builds, searches and git. &lt;code&gt;Edit&lt;/code&gt; and &lt;code&gt;Write&lt;/code&gt; together accounted for under 12%.&lt;/p&gt;

&lt;p&gt;I had it backwards: I thought of Claude Code as something that writes code and occasionally checks its work. On my machine it reached for the toolchain far more often than for &lt;code&gt;Edit&lt;/code&gt; or &lt;code&gt;Write&lt;/code&gt;. These are call counts, not shares of cost: one call can consume far more tokens than another.&lt;/p&gt;

&lt;p&gt;Command output also becomes part of the context that later turns read. The counts alone cannot tell me how much of the token cost came from that output.&lt;/p&gt;

&lt;h2&gt;
  
  
  A 99% cache hit rate cut input cost by 89%
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;99%&lt;/strong&gt; of input read from cache&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;89%&lt;/strong&gt; of input cost cut by it&lt;/p&gt;

&lt;p&gt;The 99% hit rate is not a trick I found; Claude Code caches prompts by default. It cut input cost by 89% in this sample. Cached reads still cost money, and a longer conversation keeps getting read.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read your own record
&lt;/h2&gt;

&lt;p&gt;Do not change your workflow because Bash topped my chart. Count your own calls, then look at tokens and prices. The first tells you what the agent did; the second tells you what it cost.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://caprock.dev/" rel="noopener noreferrer"&gt;Caprock&lt;/a&gt; is a free, open-source desktop app that keeps the ledger of every coding agent on your machine: who is waiting on you, who is stuck, how close the limit is, and what each repository and pull request cost at list price. It reads your own transcripts, local by default, so the costs and tool-call counts you see are your own.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://platform.claude.com/docs/en/about-claude/pricing" rel="noopener noreferrer"&gt;Anthropic API pricing — the list prices used&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://caprock.dev/numbers/" rel="noopener noreferrer"&gt;The same machine's later reading, with the method&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/prompt-caching" rel="noopener noreferrer"&gt;Claude Code: prompt caching — handled automatically&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Figures read on 2026-08-25 by Caprock v0.23.1 on one machine, mine. A reading, not a live feed; yours will differ.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://caprock.dev/blog/where-the-money-goes/" rel="noopener noreferrer"&gt;caprock.dev&lt;/a&gt;. Caprock is the free, open-source app I build to run and watch Claude Code, Codex and other coding agents on my own machine: &lt;a href="https://github.com/dspv/caprock" rel="noopener noreferrer"&gt;github.com/dspv/caprock&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
    <item>
      <title>Claude Code cost per month: $5,898 on a $200 plan</title>
      <dc:creator>Dmitriy Solodukha</dc:creator>
      <pubDate>Fri, 06 Nov 2026 18:04:01 +0000</pubDate>
      <link>https://dev.to/dspv/claude-code-cost-per-month-5898-on-a-200-plan-1lal</link>
      <guid>https://dev.to/dspv/claude-code-cost-per-month-5898-on-a-200-plan-1lal</guid>
      <description>&lt;p&gt;My August of Claude Code on a $200 Max plan came to $5,898 at API list prices — 29 times the fee. Three months of usage from one machine.&lt;/p&gt;

&lt;p&gt;Claude Code costs $20 a month on Pro, $100 on Max, $200 on Ultra, or whatever your tokens come to on the API. What my own use was worth at API list prices is a different number: $6,056 in July, $5,898 in August, $1,764 in September.&lt;/p&gt;

&lt;p&gt;None of those is a bill. They are what the same tokens would have cost billed through the API — and I paid $200 a month for Max, so August alone was 29 times the fee. Every plan's price, and how to choose between them, is in &lt;a href="https://caprock.dev/guides/claude-code-pricing/" rel="noopener noreferrer"&gt;Claude Code pricing&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  My months at list price
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Share&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Jul&lt;/td&gt;
&lt;td&gt;100%&lt;/td&gt;
&lt;td&gt;$6,056 · 39,639 replies · 14 days&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Aug&lt;/td&gt;
&lt;td&gt;97%&lt;/td&gt;
&lt;td&gt;$5,898 · 28,001 replies · 29 days&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sep&lt;/td&gt;
&lt;td&gt;29%&lt;/td&gt;
&lt;td&gt;$1,764 · 8,244 replies · 11 days&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Claude Code at API list prices, by UTC month, one machine.&lt;/p&gt;

&lt;p&gt;July starts on the 18th, when the record begins, and I used Claude Code on all 14 of its days. August is the one full month: 54 sessions on 29 days, $203 a day on the days I worked. All 75,884 replies included a model and token counts, so I could price every one.&lt;/p&gt;

&lt;p&gt;That is one heavy user's machine, about fifteen times the $13 a day Anthropic gives as its average across enterprise deployments, from its &lt;a href="https://code.claude.com/docs/en/costs" rel="noopener noreferrer"&gt;cost page&lt;/a&gt;. It is not a forecast for anyone else.&lt;/p&gt;

&lt;p&gt;Claude Code itself can no longer say what July cost: every July transcript has been &lt;a href="https://caprock.dev/blog/claude-code-forgets/" rel="noopener noreferrer"&gt;deleted from disk after 30 days&lt;/a&gt;. The July figure exists because Caprock read those files while they were still there.&lt;/p&gt;

&lt;h2&gt;
  
  
  September is small because I was using Codex
&lt;/h2&gt;

&lt;p&gt;From 10 to 28 September there is not one Claude Code reply in the record. The work in those weeks went to Codex: 14,998 Codex replies on 17 of those 19 days, in the same database.&lt;/p&gt;

&lt;p&gt;So $1,764 is eleven days of Claude Code at $160 a day, not a cheaper month. Corrected on 3 October: this first read $2,093. One session I forked on 2 September carried 827 of its parent's replies, and Caprock counted them in both; since 0.68.0 it prices a reply once, whichever transcript it appears in. A machine running two agents needs both counted; Codex has &lt;a href="https://caprock.dev/guides/codex-usage-and-cost/" rel="noopener noreferrer"&gt;its own guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a token costs: most of it is re-reading
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;79%&lt;/strong&gt; of July's list price was cache reads&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;78%&lt;/strong&gt; of August's&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;83%&lt;/strong&gt; of September's&lt;/p&gt;

&lt;p&gt;Fresh input, the part of a prompt that is neither written to the cache nor read from it, came to $0.37 in July, $0.29 in August and $0.08 in September. Nearly everything Claude Code sends is written to the prompt cache once — 11% to 17% of each month — and then read back on every turn after it. Output, every line of code and prose Claude wrote, was 4.7% to 5.1%.&lt;/p&gt;

&lt;p&gt;A cache read on Opus 5 costs $0.50 per million tokens, a tenth of fresh input. It is still the biggest line, because each turn re-reads the whole conversation: 10.15 billion cache-read tokens in July alone. What fills that conversation is the subject of &lt;a href="https://caprock.dev/blog/where-the-money-goes/" rel="noopener noreferrer"&gt;where the money goes&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Plan or API
&lt;/h2&gt;

&lt;p&gt;I paid $200 a month for Max through these months; I pay $100 now. Against that $200:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;29×&lt;/strong&gt; August, the one full month: $5,898 of tokens for $200&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;30×&lt;/strong&gt; July, and that is only 14 days of it&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;9×&lt;/strong&gt; September, 11 days of Claude Code; the rest went to Codex&lt;/p&gt;

&lt;p&gt;For me, the flat plan made that much work possible. It is not a saving I would have made on the API: without the flat fee I would have run less.&lt;/p&gt;

&lt;p&gt;I did not run into the plan's limit either. From 20 August to the end of September, Claude Code ended 29 turns on an error and Caprock kept every one: 12 were a conversation longer than the model accepts, the rest access refusals, server errors and the like. Not one was a usage limit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run it on your machine
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;/usage&lt;/code&gt; shows the current session. For months, on 1 October:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ caprock export events --agent claude --format csv --out claude.csv
258359 events rows → claude.csv
$ awk -F, '$6=="turn.assistant" &amp;amp;&amp;amp; $1&amp;lt;"2026-10" {m=substr($1,1,7); usd[m]+=$14; n[m]++} END {for (m in usd) printf "%s  $%.2f  %d turns\n", m, usd[m], n[m]}' claude.csv | sort
2026-07  $6056.39  39639 turns
2026-08  $5898.03  28001 turns
2026-09  $2093.18  9071 turns
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;The output above is the original 1 October reading, before the September duplicate was removed. The corrected totals are in the chart above.&lt;/p&gt;

&lt;p&gt;Your months will not look like mine. &lt;a href="https://caprock.dev/install/" rel="noopener noreferrer"&gt;Install Caprock&lt;/a&gt; and read your own; it starts with the sessions Claude Code still has on disk.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://claude.com/pricing" rel="noopener noreferrer"&gt;Claude plans and prices, read 1 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://support.claude.com/en/articles/11049741-what-is-the-max-plan" rel="noopener noreferrer"&gt;Claude Help Center — What is the Max plan? ($100 and $200), read 3 October 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://support.claude.com/en/articles/17728952" rel="noopener noreferrer"&gt;Claude Help Center — What is the Ultra plan? (Max 20× renamed), read 3 November 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://platform.claude.com/docs/en/about-claude/pricing" rel="noopener noreferrer"&gt;Anthropic API pricing — the list prices behind every figure&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/costs" rel="noopener noreferrer"&gt;Claude Code: manage costs — /usage and the enterprise averages&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/blob/master/pricing/pricing.json" rel="noopener noreferrer"&gt;Caprock's dated price table&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/dspv/caprock/blob/master/docs/schema.md" rel="noopener noreferrer"&gt;Caprock export schema — the columns used here&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Figures read on 2026-10-01 by Caprock v0.63.0 on one machine, mine. A reading, not a live feed; yours will differ.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;First published on &lt;a href="https://caprock.dev/blog/claude-code-cost-per-month/" rel="noopener noreferrer"&gt;caprock.dev&lt;/a&gt;. Caprock is the free, open-source app I build to run and watch Claude Code, Codex and other coding agents on my own machine: &lt;a href="https://github.com/dspv/caprock" rel="noopener noreferrer"&gt;github.com/dspv/caprock&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
    <item>
      <title>Why Headroom Breaks on AWS Bedrock — and How to Fix All Four Failures</title>
      <dc:creator>Dmitriy Solodukha</dc:creator>
      <pubDate>Tue, 07 Jul 2026 11:15:00 +0000</pubDate>
      <link>https://dev.to/dspv/why-headroom-breaks-on-aws-bedrock-and-how-to-fix-all-four-failures-3ij3</link>
      <guid>https://dev.to/dspv/why-headroom-breaks-on-aws-bedrock-and-how-to-fix-all-four-failures-3ij3</guid>
      <description>&lt;p&gt;You're on AWS Bedrock because compliance won't let your data leave AWS. Your agent workflow multiplies tokens, the bill climbs, and you found &lt;a href="https://github.com/headroomlabs-ai/headroom" rel="noopener noreferrer"&gt;Headroom&lt;/a&gt; — the open-source compression proxy that promises 60–95% fewer tokens (their benchmark). You point it at Bedrock, and it silently does almost nothing.&lt;/p&gt;

&lt;p&gt;I wrote the full guide with the exact error strings, the fixes, and measured numbers. Here's the TL;DR.&lt;/p&gt;




&lt;h2&gt;
  
  
  The four ways it silently breaks on Bedrock
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;404 on native routes&lt;/strong&gt; — the proxy 404s &lt;code&gt;/model/{id}/invoke&lt;/code&gt; and &lt;code&gt;/inference-profiles&lt;/code&gt;, so Claude Code's auto-mode classifier fails closed (&lt;a href="https://github.com/headroomlabs-ai/headroom/issues/1589" rel="noopener noreferrer"&gt;issue #1589&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;InvalidSignatureException&lt;/code&gt;&lt;/strong&gt; — SigV4 signs a hash of the request body; compression rewrites the body, so the signature no longer matches (&lt;a href="https://github.com/headroomlabs-ai/headroom/pull/1220" rel="noopener noreferrer"&gt;PR #1220&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dead prompt cache&lt;/strong&gt; — in &lt;code&gt;--mode cache&lt;/code&gt; it prints &lt;code&gt;prefix_frozen&lt;/code&gt; but never injects a &lt;code&gt;cachePoint&lt;/code&gt;, so Bedrock reports &lt;code&gt;savings_pct: 0.0&lt;/code&gt; (&lt;a href="https://github.com/headroomlabs-ai/headroom/issues/1345" rel="noopener noreferrer"&gt;issue #1345&lt;/a&gt;). And Bedrock caps you at 4 cache markers: &lt;code&gt;A maximum of 4 blocks with cache_control may be provided. Found 5.&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;ModuleNotFoundError: botocore&lt;/code&gt;&lt;/strong&gt; — crashes on temporary STS credentials because the image doesn't bundle botocore (&lt;a href="https://github.com/headroomlabs-ai/headroom/issues/1551" rel="noopener noreferrer"&gt;issue #1551&lt;/a&gt;).&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  The savings math (a formula, not a promise)
&lt;/h2&gt;

&lt;p&gt;Bedrock bills &lt;code&gt;input + 1.25×write + 0.1×read&lt;/code&gt;. Caching attacks the read term (0.1× — a 10× discount on the repeated prefix); compression attacks the input term. They stack.&lt;/p&gt;

&lt;p&gt;Measured on a 6-turn agentic session (us-east-1, July 2026, Claude Sonnet 4.5):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No optimization: &lt;strong&gt;619,865&lt;/strong&gt; token-equivalents&lt;/li&gt;
&lt;li&gt;Cache only (fixed): &lt;strong&gt;257,250&lt;/strong&gt; — &lt;strong&gt;−58.5%&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Cache + compression: &lt;strong&gt;183,672&lt;/strong&gt; — &lt;strong&gt;−70.4%&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One trap: compact JSON (the default from &lt;code&gt;json.dumps&lt;/code&gt; / &lt;code&gt;JSON.stringify&lt;/code&gt; / &lt;code&gt;boto3&lt;/code&gt;) compresses &lt;strong&gt;0%&lt;/strong&gt;. The same data with whitespace compresses &lt;strong&gt;43%&lt;/strong&gt; — token count tracks whitespace.&lt;/p&gt;




&lt;p&gt;The full guide covers the step-by-step fix, how to verify the cache actually hits (&lt;code&gt;cacheReadInputTokens &amp;gt; 0&lt;/code&gt; on the second request), and the whole error-string reference.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://fortem.dev/headroom-bedrock" rel="noopener noreferrer"&gt;Read the complete guide →&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Caprock is a managed distribution of Headroom that ships all four Bedrock fixes and runs entirely inside your VPC, so nothing leaves your AWS account — &lt;a href="https://caprock.dev" rel="noopener noreferrer"&gt;caprock.dev&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>bedrock</category>
      <category>llm</category>
      <category>claude</category>
    </item>
    <item>
      <title>How to Put an ALB in Front of ECS Fargate</title>
      <dc:creator>Dmitriy Solodukha</dc:creator>
      <pubDate>Tue, 07 Jul 2026 11:14:14 +0000</pubDate>
      <link>https://dev.to/dspv/how-to-put-an-alb-in-front-of-ecs-fargate-3fkf</link>
      <guid>https://dev.to/dspv/how-to-put-an-alb-in-front-of-ecs-fargate-3fkf</guid>
      <description>&lt;h1&gt;
  
  
  How to Put an ALB in Front of ECS Fargate
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;Originally published at &lt;a href="https://fortem.dev/blog/ecs-load-balancer-guide" rel="noopener noreferrer"&gt;https://fortem.dev/blog/ecs-load-balancer-guide&lt;/a&gt;&lt;br&gt;
Attach an Application Load Balancer to ECS Fargate: the awsvpc ip target-type rule, health checks that pass, the Terraform to wire it, and shared-vs-per-service ALB cost at fleet scale.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;Guide&lt;/p&gt;

&lt;p&gt;The task is RUNNING, but the target group says unhealthy and the URL 503s. Attaching an Application Load Balancer to a Fargate service has three real traps: the awsvpc "ip target type" rule, a health check that never passes, and — at 10+ services — one ALB per service quietly costing more than the compute. Here's the Terraform-native version, with the numbers to debug the 503 and to decide whether to share one ALB.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Fargate uses the awsvpc network mode, so the target group MUST use target type "ip", not "instance" — tasks are ENIs, not EC2 instances. This is the #1 first-time error.&lt;/li&gt;
&lt;li&gt;  ECS registers and deregisters tasks with the target group automatically through its service-linked role. You attach the target group to the service; you don't script registration.&lt;/li&gt;
&lt;li&gt;  An unhealthy target is 90% of the time a security-group gap or a health-check path that doesn't return 200. Fix the SG from the ALB to the task port first.&lt;/li&gt;
&lt;li&gt;  One ALB per service is simplest and costs ~$16/month each. At 20 services that's ~$330/month — a shared ALB with host/path routing collapses it to one base charge.&lt;/li&gt;
&lt;li&gt;  Tune deregistration delay (300s→5s) and stop timeout (30s→2s), and trap SIGTERM, for fast zero-downtime deploys.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ready to use — ALB + target group + listener for a Fargate service&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight terraform"&gt;&lt;code&gt;&lt;span class="c1"&gt;# The load balancer and its security group&lt;/span&gt;
&lt;span class="k"&gt;resource&lt;/span&gt; &lt;span class="s2"&gt;"aws_lb"&lt;/span&gt; &lt;span class="s2"&gt;"app"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;name&lt;/span&gt;               &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"app-alb"&lt;/span&gt;
  &lt;span class="nx"&gt;load_balancer_type&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"application"&lt;/span&gt;
  &lt;span class="nx"&gt;subnets&lt;/span&gt;            &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;public_subnet_ids&lt;/span&gt;
  &lt;span class="nx"&gt;security_groups&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;aws_security_group&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;alb&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;resource&lt;/span&gt; &lt;span class="s2"&gt;"aws_security_group"&lt;/span&gt; &lt;span class="s2"&gt;"alb"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;name&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"app-alb-sg"&lt;/span&gt;
  &lt;span class="nx"&gt;vpc_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;vpc_id&lt;/span&gt;
  &lt;span class="nx"&gt;ingress&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;from_port&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;443&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;to_port&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;443&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;protocol&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"tcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;cidr_blocks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"0.0.0.0/0"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nx"&gt;egress&lt;/span&gt;  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;from_port&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="nx"&gt;to_port&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="nx"&gt;protocol&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"-1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="nx"&gt;cidr_blocks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"0.0.0.0/0"&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="c1"&gt;# Target group — MUST be target_type = "ip" for Fargate (awsvpc)&lt;/span&gt;
&lt;span class="k"&gt;resource&lt;/span&gt; &lt;span class="s2"&gt;"aws_lb_target_group"&lt;/span&gt; &lt;span class="s2"&gt;"app"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;name&lt;/span&gt;        &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"app-tg"&lt;/span&gt;
  &lt;span class="nx"&gt;port&lt;/span&gt;        &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;8080&lt;/span&gt;
  &lt;span class="nx"&gt;protocol&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"HTTP"&lt;/span&gt;
  &lt;span class="nx"&gt;vpc_id&lt;/span&gt;      &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;vpc_id&lt;/span&gt;
  &lt;span class="nx"&gt;target_type&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"ip"&lt;/span&gt;

  &lt;span class="nx"&gt;health_check&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;path&lt;/span&gt;                &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"/health"&lt;/span&gt;
    &lt;span class="nx"&gt;matcher&lt;/span&gt;             &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"200"&lt;/span&gt;
    &lt;span class="nx"&gt;interval&lt;/span&gt;            &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;
    &lt;span class="nx"&gt;healthy_threshold&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
    &lt;span class="nx"&gt;unhealthy_threshold&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="c1"&gt;# Drain fast for short-lived requests (default is 300s)&lt;/span&gt;
  &lt;span class="nx"&gt;deregistration_delay&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;resource&lt;/span&gt; &lt;span class="s2"&gt;"aws_lb_listener"&lt;/span&gt; &lt;span class="s2"&gt;"https"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;load_balancer_arn&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;aws_lb&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;arn&lt;/span&gt;
  &lt;span class="nx"&gt;port&lt;/span&gt;              &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;443&lt;/span&gt;
  &lt;span class="nx"&gt;protocol&lt;/span&gt;          &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"HTTPS"&lt;/span&gt;
  &lt;span class="nx"&gt;certificate_arn&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;acm_certificate_arn&lt;/span&gt;
  &lt;span class="nx"&gt;default_action&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;type&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"forward"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;target_group_arn&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;aws_lb_target_group&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;arn&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;# The task's SG must allow the ALB's SG on the container port&lt;/span&gt;
&lt;span class="k"&gt;resource&lt;/span&gt; &lt;span class="s2"&gt;"aws_security_group_rule"&lt;/span&gt; &lt;span class="s2"&gt;"alb_to_task"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;type&lt;/span&gt;                     &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"ingress"&lt;/span&gt;
  &lt;span class="nx"&gt;from_port&lt;/span&gt;                &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;8080&lt;/span&gt;
  &lt;span class="nx"&gt;to_port&lt;/span&gt;                  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;8080&lt;/span&gt;
  &lt;span class="nx"&gt;protocol&lt;/span&gt;                 &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"tcp"&lt;/span&gt;
  &lt;span class="nx"&gt;security_group_id&lt;/span&gt;        &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;aws_security_group&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;task&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;
  &lt;span class="nx"&gt;source_security_group_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;aws_security_group&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;alb&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;# Attach the target group to the service — ECS registers tasks for you&lt;/span&gt;
&lt;span class="k"&gt;resource&lt;/span&gt; &lt;span class="s2"&gt;"aws_ecs_service"&lt;/span&gt; &lt;span class="s2"&gt;"app"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;name&lt;/span&gt;            &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"app"&lt;/span&gt;
  &lt;span class="nx"&gt;cluster&lt;/span&gt;         &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;cluster_arn&lt;/span&gt;
  &lt;span class="nx"&gt;task_definition&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;aws_ecs_task_definition&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;arn&lt;/span&gt;
  &lt;span class="nx"&gt;desired_count&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;
  &lt;span class="nx"&gt;launch_type&lt;/span&gt;     &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"FARGATE"&lt;/span&gt;

  &lt;span class="nx"&gt;health_check_grace_period_seconds&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;

  &lt;span class="nx"&gt;load_balancer&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;target_group_arn&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;aws_lb_target_group&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;arn&lt;/span&gt;
    &lt;span class="nx"&gt;container_name&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"app"&lt;/span&gt;
    &lt;span class="nx"&gt;container_port&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;8080&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="nx"&gt;network_configuration&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;subnets&lt;/span&gt;         &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;private_subnet_ids&lt;/span&gt;
    &lt;span class="nx"&gt;security_groups&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;aws_security_group&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;task&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;id&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;The two lines that break most first attempts: &lt;code&gt;target_type = "ip"&lt;/code&gt; and the &lt;code&gt;alb_to_task&lt;/code&gt; security-group rule.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Fargate changes how you attach a load balancer
&lt;/h2&gt;

&lt;p&gt;Fargate tasks use the awsvpc network mode, so each task is an elastic network interface with its own IP — not an EC2 instance. That's why the target group must use target type ip.&lt;/p&gt;

&lt;p&gt;On EC2-backed ECS, a task maps to a host and a port, so the classic target type of &lt;code&gt;instance&lt;/code&gt; works — the load balancer routes to an instance ID and a dynamically-mapped port. Fargate has no host you own. Every task gets its own ENI and private IP, and the load balancer has to route to that IP directly. Register a Fargate service against an &lt;code&gt;instance&lt;/code&gt; target group and nothing registers at all — no error you'd expect, just zero targets and a 503.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"For services with tasks using the awsvpc network mode, when you create a target group for your service, you must choose ip as the target type, not instance. This is because tasks that use the awsvpc network mode are associated with an elastic network interface, not an Amazon EC2 instance."&lt;/p&gt;

&lt;p&gt;— &lt;a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/alb.html" rel="noopener noreferrer"&gt;AWS ECS documentation&lt;/a&gt;, verified July 2026&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;One upside of the &lt;code&gt;ip&lt;/code&gt; target type: it supports cross-VPC connectivity, where the &lt;code&gt;instance&lt;/code&gt; type requires the load balancer and tasks in the same VPC.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Terraform to wire it up (target type ip)
&lt;/h2&gt;

&lt;p&gt;One ALB, one target group with target_type = ip, one listener, and a security-group rule from the ALB to the task port. ECS registers tasks automatically through its service-linked role.&lt;/p&gt;

&lt;p&gt;The Ready-to-use block above is the whole thing. The part people miss isn't the ALB — it's the wiring between it and the task. Two security groups: one on the ALB that lets the public in on 443, and a rule on the &lt;em&gt;task's&lt;/em&gt; security group that lets the ALB's security group reach the container port. Reference the ALB's SG as the source, not a CIDR — the task should only accept traffic from the load balancer, never the open internet.&lt;/p&gt;

&lt;p&gt;You never write registration logic. Amazon ECS holds a service-linked IAM role whose whole job is to register a task with the target group when it starts and deregister it when it stops. You declare the &lt;code&gt;load_balancer&lt;/code&gt; block on the service, and ECS keeps the target group in sync with the running tasks as they cycle through deploys and scaling.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why your target is unhealthy (the 503 debug)
&lt;/h2&gt;

&lt;p&gt;An unhealthy target is almost always one of three things: the security group blocks the ALB on the task port, the health-check path returns non-200, or the app starts slower than the grace period.&lt;/p&gt;

&lt;p&gt;AWS maintains an entire knowledge-center article on this one failure, which tells you how common it is. Work the causes in order — security group first, because it's both the most frequent and the easiest to overlook. If the task's SG doesn't allow the ALB's SG on the container port, the health check can't even reach the app, and the target sits unhealthy from the moment it launches.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Root cause&lt;/th&gt;
&lt;th&gt;Symptom&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Security group gap&lt;/td&gt;
&lt;td&gt;Target stuck unhealthy from launch&lt;/td&gt;
&lt;td&gt;Allow the ALB's SG inbound on the container port&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Health path returns non-200&lt;/td&gt;
&lt;td&gt;Target flaps or never passes&lt;/td&gt;
&lt;td&gt;Point the check at a path that returns 200 (e.g. /health)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grace period too short&lt;/td&gt;
&lt;td&gt;Task killed and restarted in a loop&lt;/td&gt;
&lt;td&gt;Set healthCheckGracePeriodSeconds above real startup time&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wrong target type&lt;/td&gt;
&lt;td&gt;No targets register at all&lt;/td&gt;
&lt;td&gt;Use target_type = "ip" for awsvpc / Fargate&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Check port mismatch&lt;/td&gt;
&lt;td&gt;Unhealthy despite app being up&lt;/td&gt;
&lt;td&gt;Match the target-group port to the container port&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A recurring "unhealthy" that clears and comes back is different from one that never passes — it's usually load or a slow dependency, and that's where metrics earn their keep. Pairing target health with task-level signals is exactly what &lt;a href="https://fortem.dev/blog/ecs-fargate-monitoring/" rel="noopener noreferrer"&gt;monitoring ECS Fargate across a fleet&lt;/a&gt; is for: a flapping target with a memory alarm behind it tells you the health check isn't the bug, the app is.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;KEY INSIGHT:&lt;/strong&gt; A newly-registered target only needs one passing health check to go healthy — the healthy-threshold count only applies when a target recovers from unhealthy back to healthy. So a target that never goes healthy on first launch is almost never a threshold problem; it's a reachability or path problem. Chase the security group and the path, not the thresholds.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  ALB health checks vs container health checks
&lt;/h2&gt;

&lt;p&gt;Different systems. The ALB health check decides if a target gets traffic; the container health check decides if ECS restarts the task. Run both — keep the grace period longer than startup.&lt;/p&gt;

&lt;p&gt;This is a genuinely confusing overlap — practitioners ask on AWS re:Post whether they should use one, the other, or both. The answer is both, because they answer different questions. The target group's health check governs traffic: fail it and the ALB stops routing to that task. The container health check in the task definition governs lifecycle: fail it and ECS kills and replaces the container. A task can be healthy to ECS but pulled from the ALB, or the reverse.&lt;/p&gt;

&lt;p&gt;The one setting that ties them together is &lt;code&gt;health_check_grace_period_seconds&lt;/code&gt; on the service. It tells ECS to ignore failing ALB health checks for the first N seconds after a task starts, so a slow-booting app isn't killed before it's ready. Set it above your real cold-start time — a JVM service that takes 45 seconds to warm up needs a grace period well past that, or every deploy turns into a restart loop.&lt;/p&gt;

&lt;h2&gt;
  
  
  One ALB per service, or a shared ALB?
&lt;/h2&gt;

&lt;p&gt;One ALB per service is simplest but costs about $16/month each. A shared ALB with host- or path-based listener rules serves many services on one base charge — the default past a handful of services.&lt;/p&gt;

&lt;p&gt;Every ALB carries an hourly base charge whether it's serving one request or a million. At roughly $16.43/month per load balancer, the per-service pattern looks free at three services and turns into a line item at twenty. A single ALB can front dozens of services through listener rules — route &lt;code&gt;api.example.com&lt;/code&gt; to one target group and &lt;code&gt;/admin&lt;/code&gt; to another — so you pay one base charge for the whole fleet.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Services&lt;/th&gt;
&lt;th&gt;One ALB each (base)&lt;/th&gt;
&lt;th&gt;One shared ALB (base)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;5 services&lt;/td&gt;
&lt;td&gt;$82/mo&lt;/td&gt;
&lt;td&gt;$16/mo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10 services&lt;/td&gt;
&lt;td&gt;$164/mo&lt;/td&gt;
&lt;td&gt;$16/mo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;20 services&lt;/td&gt;
&lt;td&gt;$329/mo&lt;/td&gt;
&lt;td&gt;$16/mo&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Base ALB charge only ($0.0225/hr, us-east-1, verified July 2026). LCU charges ($0.008/LCU-hr) add on top for both and scale with traffic.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;KEY INSIGHT:&lt;/strong&gt; The shared ALB isn't free savings — it trades dollars for coupling. One listener config now affects every service behind it, and a bad rule change can 503 the whole fleet instead of one app. The rule of thumb: per-service ALBs while you have a handful and want blast-radius isolation; a shared ALB once the base charges outweigh the isolation, with each service still on its own unique target group.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Zero-downtime deploys: deregistration delay and SIGTERM
&lt;/h2&gt;

&lt;p&gt;The default 300-second deregistration delay makes every deploy drain slowly. For sub-second services, drop it to 5s, set ECS_CONTAINER_STOP_TIMEOUT to 2s, and trap SIGTERM to drain in-flight requests.&lt;/p&gt;

&lt;p&gt;When ECS replaces a task, the ALB stops sending it new requests and waits out the deregistration delay before cutting existing connections. The default is 300 seconds — five minutes of a draining task lingering per deploy. AWS's own guidance: if your responses finish in under a second, set &lt;code&gt;deregistration_delay.timeout_seconds&lt;/code&gt; to 5. Don't do this for long-lived requests like slow uploads or streaming — those need the room.&lt;/p&gt;

&lt;p&gt;The other half is graceful shutdown. ECS sends SIGTERM, waits &lt;code&gt;ECS_CONTAINER_STOP_TIMEOUT&lt;/code&gt; seconds (default 30), then SIGKILLs. If your app ignores SIGTERM, it eats the full wait on every deploy. Trap SIGTERM to stop accepting new connections and finish in-flight ones, and a task that drains in 500ms exits cleanly instead of waiting out the timeout.&lt;/p&gt;

&lt;p&gt;javascriptCopy&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Trap SIGTERM so in-flight requests finish before the task exits&lt;/span&gt;
&lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;SIGTERM&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&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="nx"&gt;server&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exit&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="c1"&gt;// stop new conns, drain, then exit&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The traps that bite at fleet scale
&lt;/h2&gt;

&lt;p&gt;Load balancer config can't be changed in the console after the service is created — only via CLI or CloudFormation. Use a unique target group per service; sharing one breaks deployments.&lt;/p&gt;

&lt;p&gt;Two AWS-documented rules cause most of the fleet-scale pain. First: once a service exists, you cannot change its load-balancer configuration from the console — you have to go through the CLI, CloudFormation, or the SDK, and the change forces a new deployment that re-registers every task. Discover this mid-incident and you'll waste time hunting for a console button that isn't there.&lt;/p&gt;

&lt;p&gt;Second: give every service its own target group. Sharing one target group across services "might lead to issues during service deployments," per AWS — the two services fight over the same registration set and deploys go sideways. This is the ingress side of ECS networking; for service-to-service traffic inside the fleet, the internal-ALB and DNS options are a separate decision covered in &lt;a href="https://fortem.dev/blog/ecs-service-discovery-guide/" rel="noopener noreferrer"&gt;which ECS service discovery you should use&lt;/a&gt; — Cloud Map, Service Connect, or an internal ALB for East-West traffic, versus the public ingress ALB here.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you read this, you might also want to know
&lt;/h2&gt;

&lt;p&gt;Do I need an NLB instead of an ALB for gRPC or raw TCP?&lt;/p&gt;

&lt;p&gt;For HTTP/HTTPS and gRPC, the ALB is right — it speaks layer 7 and supports gRPC target groups. For raw TCP/UDP, non-HTTP protocols, or when you need a static IP and ultra-low latency, use a Network Load Balancer. The Fargate wiring is nearly identical: target_type = ip, and ECS registers tasks the same way.&lt;/p&gt;

&lt;p&gt;How do I front multiple Fargate services on one domain?&lt;/p&gt;

&lt;p&gt;Use one ALB with path- or host-based listener rules. /api forwards to the api target group, /billing to the billing target group; or api.example.com and app.example.com split by host. Each service keeps its own unique target group — you're only sharing the load balancer and its listeners, not the target group.&lt;/p&gt;

&lt;p&gt;Can the ALB and the Fargate tasks live in different VPCs?&lt;/p&gt;

&lt;p&gt;Yes, if the target group uses target type ip (which Fargate requires anyway). The ip target type supports cross-VPC connectivity; the instance target type does not. You still need routing and security-group rules that let the ALB reach the task IPs across the VPC boundary.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Why is my ECS Fargate target unhealthy in the ALB?
&lt;/h3&gt;

&lt;p&gt;Almost always one of three things: the task's security group doesn't allow inbound traffic from the load balancer's security group on the container port, the health-check path returns a non-200 status, or the application takes longer to start than the health-check grace period allows. Check the security group rule first — it's the most common cause.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should I use ALB health checks, container health checks, or both?
&lt;/h3&gt;

&lt;p&gt;They do different jobs, so run both. The ALB (target group) health check decides whether a task receives traffic. The container health check in the task definition decides whether ECS restarts the container. Keep the ALB health-check grace period longer than your container's startup time so a slow boot doesn't get killed before it's ready.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why must Fargate use ip target type instead of instance?
&lt;/h3&gt;

&lt;p&gt;Fargate tasks run in the awsvpc network mode, so each task gets its own elastic network interface and IP address rather than sharing an EC2 instance. The target group must use target type "ip" to register those task IPs. "instance" target type only works for EC2-backed tasks that map to an instance ID.&lt;/p&gt;

&lt;h3&gt;
  
  
  How much does an Application Load Balancer cost?
&lt;/h3&gt;

&lt;p&gt;In us-east-1, $0.0225 per hour (about $16.43/month) plus $0.008 per LCU-hour for capacity used (verified July 2026). The hourly base charge is per ALB, so running one ALB per service at 20 services is roughly $330/month in base charges alone — a shared ALB with host/path routing collapses that to one base charge.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can one ALB serve multiple ECS services?
&lt;/h3&gt;

&lt;p&gt;Yes. A single ALB routes to many services using host-based or path-based listener rules — api.example.com to one target group, /admin to another. Give each service its own unique target group; sharing one target group across services causes problems during deployments.&lt;/p&gt;

&lt;h2&gt;
  
  
  Every ALB, target group, and service — mapped
&lt;/h2&gt;

&lt;p&gt;At 10+ environments, nobody can say which ALB fronts which service, or which target groups are draining money on dead tasks. Fortem maps the whole ECS fleet — load balancers, target groups, and the services behind them — on one screen. Book a 20-minute call and we'll walk yours.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://fortem.dev/book/" rel="noopener noreferrer"&gt;Book a 20-min call&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Worth reading&lt;/p&gt;

&lt;p&gt;&lt;a href="https://fortem.dev/blog/ecs-service-discovery-guide/" rel="noopener noreferrer"&gt;GuideECS Service Discovery: Cloud Map vs Service ConnectThe other half of ECS networking — East-West service-to-service traffic. Cloud Map, Service Connect, or an internal ALB, with a decision table.&lt;/a&gt;&lt;a href="https://fortem.dev/aws-ecs-fargate/" rel="noopener noreferrer"&gt;LandingAWS ECS Fargate: What It Is, How It Works, What It CostsThe head-term reference for ECS Fargate — where networking, the awsvpc mode, and load balancing sit in the bigger picture.&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Map every ALB and target group across your fleet:&lt;/strong&gt; &lt;a href="https://fortem.dev/book" rel="noopener noreferrer"&gt;fortem.dev/book&lt;/a&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>ecs</category>
      <category>fargate</category>
      <category>devops</category>
    </item>
    <item>
      <title>How Do You Monitor ECS Fargate Across 10+ Environments?</title>
      <dc:creator>Dmitriy Solodukha</dc:creator>
      <pubDate>Tue, 07 Jul 2026 11:14:04 +0000</pubDate>
      <link>https://dev.to/dspv/how-do-you-monitor-ecs-fargate-across-10-environments-58c4</link>
      <guid>https://dev.to/dspv/how-do-you-monitor-ecs-fargate-across-10-environments-58c4</guid>
      <description>&lt;h1&gt;
  
  
  How to Monitor ECS Fargate at Scale
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;Originally published at &lt;a href="https://fortem.dev/blog/ecs-fargate-monitoring" rel="noopener noreferrer"&gt;https://fortem.dev/blog/ecs-fargate-monitoring&lt;/a&gt;&lt;br&gt;
Monitor ECS Fargate across 10+ environments: which metrics to alarm on, what Container Insights actually costs per metric, and a Terraform for_each fleet alarm pattern.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;Guide&lt;/p&gt;

&lt;p&gt;A CPU alarm on one service is a five-minute job. The same three alarms on thirty services in five accounts — consistently, and without a Container Insights bill that quietly grows into four figures — is the actual work. This guide covers which metrics are worth paying for, the exact Container Insights cost math at fleet scale, and a Terraform pattern that alarms your whole fleet from one module.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Fargate needs no monitoring agent. Container Insights collects CPU, memory, network, and ephemeral-storage metrics with no sidecar — the catch is the per-metric bill.&lt;/li&gt;
&lt;li&gt;  Enhanced observability bills $0.07/metric/month across cluster, service, task-def, task, and container. Enabled everywhere on a 30-service fleet, that runs into four figures a month.&lt;/li&gt;
&lt;li&gt;  Turn enhanced observability ON in prod, OFF in dev. Dev doesn't need container-level metrics — that one split roughly halves the bill.&lt;/li&gt;
&lt;li&gt;  Alarm as code with a Terraform for_each: one module, N services, zero copy-paste. Hand-writing three alarms per service is 90 blocks at 30 services.&lt;/li&gt;
&lt;li&gt;  The metric that catches most incidents isn't CPU — it's RunningTaskCount below desired.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ready to use — fleet alarms from one Terraform module&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight terraform"&gt;&lt;code&gt;&lt;span class="c1"&gt;# One module, every service. Add a service to the map, get its 3 alarms.&lt;/span&gt;
&lt;span class="k"&gt;variable&lt;/span&gt; &lt;span class="s2"&gt;"services"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;type&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;object&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="nx"&gt;cluster&lt;/span&gt;       &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;string&lt;/span&gt;
    &lt;span class="nx"&gt;desired_count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;number&lt;/span&gt;
  &lt;span class="p"&gt;}))&lt;/span&gt;
  &lt;span class="c1"&gt;# Example:&lt;/span&gt;
  &lt;span class="c1"&gt;# {&lt;/span&gt;
  &lt;span class="c1"&gt;#   api      = { cluster = "prod", desired_count = 4 }&lt;/span&gt;
  &lt;span class="c1"&gt;#   worker   = { cluster = "prod", desired_count = 2 }&lt;/span&gt;
  &lt;span class="c1"&gt;#   payments = { cluster = "prod", desired_count = 3 }&lt;/span&gt;
  &lt;span class="c1"&gt;# }&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;resource&lt;/span&gt; &lt;span class="s2"&gt;"aws_sns_topic"&lt;/span&gt; &lt;span class="s2"&gt;"alerts"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"ecs-fleet-alerts"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;# CPU &amp;gt; 90% for 5 min&lt;/span&gt;
&lt;span class="k"&gt;resource&lt;/span&gt; &lt;span class="s2"&gt;"aws_cloudwatch_metric_alarm"&lt;/span&gt; &lt;span class="s2"&gt;"cpu"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;for_each&lt;/span&gt;            &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;services&lt;/span&gt;
  &lt;span class="nx"&gt;alarm_name&lt;/span&gt;          &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"ecs-&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;each&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;-cpu-high"&lt;/span&gt;
  &lt;span class="nx"&gt;namespace&lt;/span&gt;           &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"AWS/ECS"&lt;/span&gt;
  &lt;span class="nx"&gt;metric_name&lt;/span&gt;         &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"CPUUtilization"&lt;/span&gt;
  &lt;span class="nx"&gt;statistic&lt;/span&gt;           &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Average"&lt;/span&gt;
  &lt;span class="nx"&gt;period&lt;/span&gt;              &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;
  &lt;span class="nx"&gt;evaluation_periods&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
  &lt;span class="nx"&gt;threshold&lt;/span&gt;           &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;90&lt;/span&gt;
  &lt;span class="nx"&gt;comparison_operator&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"GreaterThanThreshold"&lt;/span&gt;
  &lt;span class="nx"&gt;dimensions&lt;/span&gt;          &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;ClusterName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;each&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;cluster&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;ServiceName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;each&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nx"&gt;alarm_actions&lt;/span&gt;       &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;aws_sns_topic&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;alerts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;arn&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="err"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;# Memory &amp;gt; 80% for 5 min&lt;/span&gt;
&lt;span class="k"&gt;resource&lt;/span&gt; &lt;span class="s2"&gt;"aws_cloudwatch_metric_alarm"&lt;/span&gt; &lt;span class="s2"&gt;"mem"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;for_each&lt;/span&gt;            &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;services&lt;/span&gt;
  &lt;span class="nx"&gt;alarm_name&lt;/span&gt;          &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"ecs-&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;each&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;-mem-high"&lt;/span&gt;
  &lt;span class="nx"&gt;namespace&lt;/span&gt;           &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"AWS/ECS"&lt;/span&gt;
  &lt;span class="nx"&gt;metric_name&lt;/span&gt;         &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"MemoryUtilization"&lt;/span&gt;
  &lt;span class="nx"&gt;statistic&lt;/span&gt;           &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Average"&lt;/span&gt;
  &lt;span class="nx"&gt;period&lt;/span&gt;              &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;
  &lt;span class="nx"&gt;evaluation_periods&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
  &lt;span class="nx"&gt;threshold&lt;/span&gt;           &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;
  &lt;span class="nx"&gt;comparison_operator&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"GreaterThanThreshold"&lt;/span&gt;
  &lt;span class="nx"&gt;dimensions&lt;/span&gt;          &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;ClusterName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;each&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;cluster&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;ServiceName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;each&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nx"&gt;alarm_actions&lt;/span&gt;       &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;aws_sns_topic&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;alerts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;arn&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="err"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;# Running tasks below desired — the incident signal that matters most&lt;/span&gt;
&lt;span class="k"&gt;resource&lt;/span&gt; &lt;span class="s2"&gt;"aws_cloudwatch_metric_alarm"&lt;/span&gt; &lt;span class="s2"&gt;"running"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;for_each&lt;/span&gt;            &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;services&lt;/span&gt;
  &lt;span class="nx"&gt;alarm_name&lt;/span&gt;          &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"ecs-&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;each&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;-tasks-low"&lt;/span&gt;
  &lt;span class="nx"&gt;namespace&lt;/span&gt;           &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"ECS/ContainerInsights"&lt;/span&gt;
  &lt;span class="nx"&gt;metric_name&lt;/span&gt;         &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"RunningTaskCount"&lt;/span&gt;
  &lt;span class="nx"&gt;statistic&lt;/span&gt;           &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Average"&lt;/span&gt;
  &lt;span class="nx"&gt;period&lt;/span&gt;              &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;
  &lt;span class="nx"&gt;evaluation_periods&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;
  &lt;span class="nx"&gt;threshold&lt;/span&gt;           &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;each&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;desired_count&lt;/span&gt;
  &lt;span class="nx"&gt;comparison_operator&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"LessThanThreshold"&lt;/span&gt;
  &lt;span class="nx"&gt;treat_missing_data&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"breaching"&lt;/span&gt;
  &lt;span class="nx"&gt;dimensions&lt;/span&gt;          &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;ClusterName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;each&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;cluster&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;ServiceName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;each&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;key&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nx"&gt;alarm_actions&lt;/span&gt;       &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;aws_sns_topic&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;alerts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;arn&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;CPU/memory come from the &lt;code&gt;AWS/ECS&lt;/code&gt; namespace (free vended metrics). &lt;code&gt;RunningTaskCount&lt;/code&gt; comes from &lt;code&gt;ECS/ContainerInsights&lt;/code&gt; — it needs Container Insights on the cluster.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Fargate monitoring is different from EC2
&lt;/h2&gt;

&lt;p&gt;On Fargate you can't SSH to a host or run node_exporter. Every metric comes from CloudWatch or an in-task sidecar — Container Insights is the no-agent default, and it's metered per metric.&lt;/p&gt;

&lt;p&gt;With EC2-backed ECS you own the instance, so you can install the CloudWatch agent, Prometheus node exporter, or any host-level tooling you like, and you pay for the instance either way. Fargate takes the host away. You get no shell, no daemon set, no privileged sidecar reading the host cgroup. What you get instead is CloudWatch: the free vended metrics (&lt;code&gt;CPUUtilization&lt;/code&gt;, &lt;code&gt;MemoryUtilization&lt;/code&gt; at the service level) and, when you turn it on, Container Insights.&lt;/p&gt;

&lt;p&gt;This is genuinely convenient — no agent to patch, no version drift across a hundred tasks — but it changes the cost model. On EC2 your monitoring is bundled into the instance you already pay for. On Fargate, deeper visibility is a separate line item that scales with the number of tasks and containers you run. The rest of this guide is about spending that line item where it earns its keep and not where it doesn't.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;KEY INSIGHT:&lt;/strong&gt; The free service-level CPU and memory metrics in the AWS/ECS namespace are enough to alarm on. You do not need Container Insights to know a service is hot. You need Container Insights when you want to know which task or container inside that service is hot — and for RunningTaskCount and ephemeral-storage metrics.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The metrics that actually matter (and which to skip)
&lt;/h2&gt;

&lt;p&gt;RunningTaskCount below desired catches more incidents than CPU. Alarm on running-task deficit, memory above 80%, and CPU above 90% — leave network and storage on a dashboard.&lt;/p&gt;

&lt;p&gt;Most Fargate monitoring guides open with CPU and memory because those are the metrics everyone recognizes. But CPU is a slow-degradation signal — a throttled service is slow, not down. The signal that actually correlates with "customers are seeing errors" is a service that can't keep its desired number of tasks running: a crash loop, a failed health check, an image that won't pull. That shows up as &lt;code&gt;RunningTaskCount&lt;/code&gt; dropping below &lt;code&gt;DesiredTaskCount&lt;/code&gt;, long before CPU says anything.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Why it matters&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;RunningTaskCount &amp;lt; desired&lt;/td&gt;
&lt;td&gt;Service can't stay up — the #1 real incident signal&lt;/td&gt;
&lt;td&gt;Alarm always&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MemoryUtilization &amp;gt; 80%&lt;/td&gt;
&lt;td&gt;OOM kills the task; no graceful degradation&lt;/td&gt;
&lt;td&gt;Alarm always&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CPUUtilization &amp;gt; 90%&lt;/td&gt;
&lt;td&gt;Throttling — slow, not down&lt;/td&gt;
&lt;td&gt;Alarm in prod&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EphemeralStorageUtilized&lt;/td&gt;
&lt;td&gt;Disk fills → task fails silently&lt;/td&gt;
&lt;td&gt;Alarm if you write to disk&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NetworkRx/TxBytes&lt;/td&gt;
&lt;td&gt;Diagnostic, rarely actionable as an alarm&lt;/td&gt;
&lt;td&gt;Dashboard only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DeploymentCount / TaskSetCount&lt;/td&gt;
&lt;td&gt;Useful during blue/green, noisy otherwise&lt;/td&gt;
&lt;td&gt;Dashboard only&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Metrics are only half of observability — the other half is logs, and the two get correlated during an incident. If your log setup isn't solid, alarms just tell you something broke without telling you what. It's worth getting &lt;a href="https://fortem.dev/blog/aws-ecs-logging-guide/" rel="noopener noreferrer"&gt;how to set up ECS logging the right way&lt;/a&gt; nailed down before you tune alarm thresholds, because a memory alarm with no readable logs behind it is a page you can't act on.&lt;/p&gt;

&lt;p&gt;"EphemeralStorageReserved and EphemeralStorageUtilized ... are only available for tasks that run on Fargate Linux platform version 1.4.0 or later."&lt;/p&gt;

&lt;p&gt;— &lt;a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Container-Insights-metrics-ECS.html" rel="noopener noreferrer"&gt;AWS Container Insights ECS metrics&lt;/a&gt;, verified June 2026&lt;/p&gt;

&lt;h2&gt;
  
  
  What Container Insights actually costs at fleet scale
&lt;/h2&gt;

&lt;p&gt;Enhanced observability bills $0.07 per metric per month across cluster, service, task-def, task, and container. At 30 services that's thousands of metrics — real money, not a rounding error.&lt;/p&gt;

&lt;p&gt;Here's the arithmetic nobody shows you. AWS bills Container Insights metrics as custom metrics, and enhanced observability (released December 2, 2024) reports them at every level — a handful per cluster and per service, and then, critically, a set &lt;em&gt;per task and per container&lt;/em&gt;. A count in the low teens per container feels harmless in isolation, until you multiply it by a real fleet. Containers are the multiplier that hurts: a 30-service fleet with a couple of containers per task is already at 180+ containers, each reporting its own metric set. The table below models that — the exact number moves with how many containers you pack per task, so treat it as an order-of-magnitude estimate, not a quote.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Fleet&lt;/th&gt;
&lt;th&gt;Metrics reported&lt;/th&gt;
&lt;th&gt;Cost / month&lt;/th&gt;
&lt;th&gt;Cost / year&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;5 services&lt;/td&gt;
&lt;td&gt;475&lt;/td&gt;
&lt;td&gt;$33&lt;/td&gt;
&lt;td&gt;$399&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;15 services&lt;/td&gt;
&lt;td&gt;1,820&lt;/td&gt;
&lt;td&gt;$127&lt;/td&gt;
&lt;td&gt;$1,529&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;30 services&lt;/td&gt;
&lt;td&gt;4,800&lt;/td&gt;
&lt;td&gt;$336&lt;/td&gt;
&lt;td&gt;$4,032&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Modeled estimate. Enhanced observability at $0.07/metric/month (AWS CloudWatch pricing, verified June 2026); per-resource metric counts derived from the AWS enhanced-observability metric table, GPU metrics excluded. Your count varies with containers-per-task.&lt;/p&gt;

&lt;p&gt;And that's just the metric bill. It's separate from log ingestion and storage, which the logging side of observability owns — CloudWatch Logs is $0.50/GB ingested and $0.03/GB stored, and the default Never-Expire retention means storage never stops growing. Watching that side is a different exercise; the mechanics of &lt;a href="https://fortem.dev/blog/cloudwatch-costs-ecs/" rel="noopener noreferrer"&gt;controlling CloudWatch Logs costs on ECS&lt;/a&gt; covers the retention and ingestion levers that stack on top of these metric numbers.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;KEY INSIGHT:&lt;/strong&gt; Standard and enhanced Container Insights bill the same $0.07 per metric. The difference is entirely how many metrics each reports — enhanced adds per-task and per-container granularity, which is exactly where the count (and the bill) explodes. So the question is never "standard or enhanced?" in the abstract. It's "on which resources is per-container granularity worth $0.07 times a dozen-odd metrics each?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Turn enhanced observability ON in prod, OFF in dev
&lt;/h2&gt;

&lt;p&gt;Dev environments don't need container-level metrics. Enable enhanced observability on prod clusters only; leave dev on standard or off. That one split roughly halves the Container Insights bill.&lt;/p&gt;

&lt;p&gt;When something breaks in a dev environment, you redeploy it — you don't run a forensic investigation into which container held memory for three seconds too long. The per-container metrics that justify their cost in production are pure waste in dev, where the tasks are often idle or scaled to one. Yet the most common Container Insights mistake is flipping it on cluster-wide, in every account, and never revisiting it.&lt;/p&gt;

&lt;p&gt;Because Container Insights is a per-cluster setting, the split is trivial to express — set it in the Terraform that every environment shares, keyed off the environment name:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight terraform"&gt;&lt;code&gt;&lt;span class="k"&gt;resource&lt;/span&gt; &lt;span class="s2"&gt;"aws_ecs_cluster"&lt;/span&gt; &lt;span class="s2"&gt;"this"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;environment&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;-cluster"&lt;/span&gt;

  &lt;span class="nx"&gt;setting&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"containerInsights"&lt;/span&gt;
    &lt;span class="c1"&gt;# enhanced only in prod; dev/staging get standard (cheaper) or "disabled"&lt;/span&gt;
    &lt;span class="nx"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;environment&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"prod"&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s2"&gt;"enhanced"&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"enabled"&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;If your dev environments are genuinely throwaway, &lt;code&gt;"disabled"&lt;/code&gt; is a defensible value for them — the free &lt;code&gt;AWS/ECS&lt;/code&gt; service-level CPU and memory metrics still exist without Container Insights, so you keep your CPU and memory alarms. You lose &lt;code&gt;RunningTaskCount&lt;/code&gt; and ephemeral-storage metrics in dev, which is usually an acceptable trade.&lt;/p&gt;

&lt;h2&gt;
  
  
  Alarm as code — the fleet for_each pattern
&lt;/h2&gt;

&lt;p&gt;Hand-writing three alarms per service means 90 blocks at 30 services. A Terraform for_each over a service map creates CPU, memory, and running-task alarms for the whole fleet from one module.&lt;/p&gt;

&lt;p&gt;The Ready-to-use block above is the whole pattern: a &lt;code&gt;map&lt;/code&gt; of services, three &lt;code&gt;for_each&lt;/code&gt; alarm resources, one SNS topic. Adding the thirty-first service is a one-line map entry, not three copied-and-tweaked alarm blocks that drift out of sync the moment someone edits one and forgets the rest. That drift is the real failure mode of click-ops and copy-paste monitoring — not that the alarms are wrong on day one, but that they're inconsistent by month six.&lt;/p&gt;

&lt;p&gt;A few things the pattern gets right that hand-written alarms usually miss. The running-task alarm sets &lt;code&gt;treat_missing_data = "breaching"&lt;/code&gt; — if the metric stops reporting entirely (a service deleted itself, or Container Insights got turned off), that should page you, not silently resolve. It uses &lt;code&gt;evaluation_periods = 3&lt;/code&gt; at 60-second periods so a single blip during a deploy doesn't fire. And every alarm points at one SNS topic, so routing to PagerDuty or Slack is one subscription, not thirty.&lt;/p&gt;

&lt;p&gt;None of this is exotic — the CloudPosse &lt;code&gt;ecs-cloudwatch-sns-alarms&lt;/code&gt; module wraps the same idea, and it's popular precisely because per-service alarm sprawl is a problem enough people hit to want it solved. Whether you use a module or the raw resources above, the principle is the same: the alarm definition lives in one place and applies to the fleet.&lt;/p&gt;

&lt;h2&gt;
  
  
  The newly-created-environment coverage gap
&lt;/h2&gt;

&lt;p&gt;Alarms defined per service don't cover the environment someone spins up next week. Either enforce monitoring in the module every environment uses, or scope a Lambda to auto-alarm any tagged cluster.&lt;/p&gt;

&lt;p&gt;Here's the failure that a service map quietly introduces: it only monitors the services in the map. When a developer spins up a preview environment, or a new team stands up a service in a fresh account, that workload is invisible until someone remembers to add it — and nobody remembers. You find the gap during the incident, when you go looking for the alarm that should have fired and it was never created.&lt;/p&gt;

&lt;p&gt;There are two honest fixes. The first is to make monitoring non-optional in the shared module every environment is built from — if you can't create an ECS service without also creating its alarms, there's no gap to forget. The second, for teams whose environments aren't all built the same way, is AWS's own tag-scoped pattern: a Lambda that watches for new clusters and attaches a standard alarm set to any cluster carrying a given tag. AWS ships this because the gap is real enough to need a system, not discipline.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;KEY INSIGHT:&lt;/strong&gt; Coverage is a fleet property, not a per-service one. The right question isn't "does this service have alarms?" — it's "can a service exist in this org without alarms?" If the answer is yes, your monitoring has a hole shaped like every environment you haven't manually added yet.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Beyond metrics: events and per-environment cost
&lt;/h2&gt;

&lt;p&gt;Metrics tell you a task is unhealthy; EventBridge tells you why it stopped. Route ECS task-state-change events to SNS, and tag every service so per-environment cost shows up in Cost Explorer.&lt;/p&gt;

&lt;p&gt;A metric alarm says &lt;code&gt;RunningTaskCount&lt;/code&gt; dropped. It doesn't say the task was killed by an OOM, failed its health check, or couldn't pull its image. That reason lives in the ECS &lt;code&gt;Task State Change&lt;/code&gt; event, which ECS emits to EventBridge for free. A single EventBridge rule matching &lt;code&gt;stoppedReason&lt;/code&gt; and routing to the same SNS topic turns "a task stopped" into "a task stopped because OutOfMemoryError" — the difference between a page you can act on and one you have to investigate.&lt;/p&gt;

&lt;p&gt;The other blind spot at fleet scale is cost per environment. CloudWatch shows you utilization, not dollars, and AWS bills Fargate at the account level — so a staging environment burning money looks identical to a busy prod one until you've tagged everything. Consistent &lt;code&gt;Environment&lt;/code&gt; and &lt;code&gt;Service&lt;/code&gt; tags on every task, activated as cost-allocation tags, are what make per-environment spend visible in Cost Explorer — and they're the same tags the Lambda coverage pattern keys off. Monitoring and cost attribution end up being the same tagging discipline.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you read this, you might also want to know
&lt;/h2&gt;

&lt;p&gt;Do I need Datadog if I already have Container Insights?&lt;/p&gt;

&lt;p&gt;Not for infrastructure metrics — Container Insights covers CPU, memory, network, storage, and task counts across the fleet. You reach for Datadog (or an OpenTelemetry sidecar) when you need custom application metrics, distributed traces, or a single pane across non-AWS systems. Many teams run Container Insights for infra and a sidecar only on the handful of services that need APM.&lt;/p&gt;

&lt;p&gt;How do I monitor a Fargate task that exits immediately on startup?&lt;/p&gt;

&lt;p&gt;Metrics won't help — a task that dies in seconds never reports a meaningful data point. The signal is the ECS Task State Change event in EventBridge, which carries the stoppedReason (image pull failure, essential container exited, OOM). Route that event to SNS and read the reason; the logs, if the log driver was configured, hold the stack trace.&lt;/p&gt;

&lt;p&gt;Can I alarm on a metric across all environments at once?&lt;/p&gt;

&lt;p&gt;Yes, with a metric-math or aggregate alarm — for example, total RunningTaskCount across a cluster versus total DesiredTaskCount. It's useful for a fleet-health top-line, but keep the per-service alarms too: an aggregate stays green while one critical service is fully down, because the healthy services mask it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  How much does Container Insights cost for ECS?
&lt;/h3&gt;

&lt;p&gt;$0.07 per metric per month with enhanced observability (verified June 2026). Metrics are reported at the cluster, service, task-definition, task, and container level, so the count scales with your fleet — a 30-service fleet with a couple of containers per task runs into thousands of metrics, pushing the bill into four figures a month if you enable it everywhere.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does ECS Fargate need a monitoring agent?
&lt;/h3&gt;

&lt;p&gt;No. On Fargate you can't install a host agent, but you don't need one — Container Insights collects CPU, memory, network, and ephemeral-storage metrics with no sidecar once you enable it on the cluster. A sidecar (OpenTelemetry, Datadog) is only needed for custom application metrics or traces.&lt;/p&gt;

&lt;h3&gt;
  
  
  What ECS metric should I alarm on first?
&lt;/h3&gt;

&lt;p&gt;RunningTaskCount below DesiredTaskCount. A running-task deficit means a service can't stay up — that catches more real incidents than CPU. Add memory utilization above 80% (out-of-memory kills) and CPU above 90% (throttling) after that.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I monitor ephemeral (disk) storage on Fargate?
&lt;/h3&gt;

&lt;p&gt;Use the EphemeralStorageUtilized and EphemeralStorageReserved metrics. They only exist with Container Insights on Fargate platform version 1.4.0 or later — without Container Insights, disk usage on a Fargate task is invisible until the task fails writing to a full filesystem.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is enhanced observability worth it over standard Container Insights?
&lt;/h3&gt;

&lt;p&gt;In production, yes — enhanced observability adds per-task and per-container metrics that let you find which container in a task is the problem. In dev, no. Both bill $0.07/metric; enhanced just reports far more metrics per resource, so the cost difference is entirely about how many resources you enable it on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Every ECS environment, one view
&lt;/h2&gt;

&lt;p&gt;Container Insights and per-service alarms tell you about one cluster at a time. Fortem puts every ECS Fargate environment — health, running tasks, and idle spend — on one screen, so the gap-shaped hole isn't there to fall into. Book a 20-minute call and we'll walk your fleet.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://fortem.dev/book/" rel="noopener noreferrer"&gt;Book a 20-min call&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Worth reading&lt;/p&gt;

&lt;p&gt;&lt;a href="https://fortem.dev/blog/aws-ecs-logging-guide/" rel="noopener noreferrer"&gt;Guide · How Should You Set Up ECS Logging?awslogs, FireLens, and the three decisions every ECS team gets wrong — the logs half of observability that your alarms correlate against.&lt;/a&gt;&lt;a href="https://fortem.dev/aws-ecs-fargate/" rel="noopener noreferrer"&gt;LandingAWS ECS Fargate: What It Is, How It Works, What It CostsThe head-term reference for ECS Fargate — how tasks, services, and clusters fit together, and where monitoring and cost sit in the bigger picture.&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;See every ECS environment in one place — book a 20-min call:&lt;/strong&gt; &lt;a href="https://fortem.dev/book" rel="noopener noreferrer"&gt;fortem.dev/book&lt;/a&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>ecs</category>
      <category>fargate</category>
      <category>monitoring</category>
    </item>
    <item>
      <title>AWS ECS Fargate Security: What You Actually Configure (and What You Can't)</title>
      <dc:creator>Dmitriy Solodukha</dc:creator>
      <pubDate>Thu, 02 Jul 2026 09:41:19 +0000</pubDate>
      <link>https://dev.to/dspv/aws-ecs-fargate-security-what-you-actually-configure-and-what-you-cant-43jb</link>
      <guid>https://dev.to/dspv/aws-ecs-fargate-security-what-you-actually-configure-and-what-you-cant-43jb</guid>
      <description>&lt;h1&gt;
  
  
  AWS ECS Fargate Security: What You Configure
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;Originally published at &lt;a href="https://fortem.dev/blog/ecs-fargate-container-security" rel="noopener noreferrer"&gt;https://fortem.dev/blog/ecs-fargate-container-security&lt;/a&gt;&lt;br&gt;
ECS Fargate security from the operator's seat: the two IAM roles, read-only root fs, secrets, awsvpc security groups, what Fargate won't let you configure, GuardDuty runtime, and fleet-scale drift.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;Every "Fargate security best practices" list is the same checklist — non-root, read-only filesystem, least-privilege IAM. The list isn't wrong; it's just written for one task. If you run 10–40 ECS environments, the hard part isn't setting these knobs — it's keeping them identical everywhere and proving it for SOC 2. This is Fargate security from the operator's seat: the exact config, what Fargate won't let you touch, and where fleets actually break.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  Fargate splits security into two IAM roles — the EXECUTION role (agent: pull image, ship logs, fetch secrets) and the TASK role (your app code). Confusing them is the #1 config mistake.&lt;/li&gt;
&lt;li&gt;  The Fargate hardening set is small and fixed: non-root user, readonlyRootFilesystem, secrets via Secrets Manager/SSM (never plaintext env vars), awsvpc security groups per task. Ephemeral storage is already AES-256 encrypted.&lt;/li&gt;
&lt;li&gt;  Fargate REMOVES options on purpose: no privileged containers, no host access, no SSH, CAP_SYS_ADMIN/NET_ADMIN blocked — and you can't run your own runtime agent (Falco DaemonSet). GuardDuty's injected sidecar is the only runtime-threat path.&lt;/li&gt;
&lt;li&gt;  GuardDuty ECS Runtime Monitoring bills per monitored vCPU-hour and won't attach to an already-running task — a real cost and coverage gap at 10+ environments.&lt;/li&gt;
&lt;li&gt;  At fleet scale the risk isn't the config, it's DRIFT: one env with a too-broad task role, a staging secret nobody rotated, a public-subnet task in environment #39.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ready to use — copy this today&lt;/p&gt;

&lt;p&gt;A hardened task-definition fragment, the writable-&lt;code&gt;/tmp&lt;/code&gt;mount that makes read-only root actually work, and a least-privilege task role scoped to one environment's resources — no wildcards:&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="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;Hardened&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;container&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;definition&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;(the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;fields&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;that&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;matter&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;security)&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"app"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"image"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"123456789012.dkr.ecr.us-east-1.amazonaws.com/app:1.4.2"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"1000:1000"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;                    &lt;/span&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;non-root&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;—&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;matches&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;USER&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;in&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;Dockerfile&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"readonlyRootFilesystem"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;          &lt;/span&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;root&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;FS&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;read-only&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"privileged"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;                     &lt;/span&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;(not&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;supported&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;on&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;Fargate&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;anyway)&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"secrets"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;                             &lt;/span&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;secret&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;VALUES&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;never&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;live&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;here&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"DB_PASSWORD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"valueFrom"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"arn:aws:secretsmanager:us-east-1:123456789012:secret:prod/db-AbCdEf"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mountPoints"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"sourceVolume"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"tmp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"containerPath"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"/tmp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"readOnly"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"logConfiguration"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"logDriver"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"awslogs"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"options"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"awslogs-group"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"/ecs/app"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"awslogs-region"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"us-east-1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"awslogs-stream-prefix"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"app"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;The&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;writable&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;volume&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;that&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;keeps&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;read-only&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;root&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;breaking&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;app.&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;Declared&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;task&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;level;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;mounted&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;/tmp&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;above.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;Everything&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;else&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;stays&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;RO.&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nl"&gt;"volumes"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"tmp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"host"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;Least-privilege&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;TASK&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;role&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;—&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;scoped&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;ONE&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;environment's&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;bucket,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;no&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;wildcards.&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;This&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;is&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;role&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;your&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;app&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;code&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;uses.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;Give&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;each&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;environment&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;its&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;own.&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"Version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&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="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"Statement"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"Effect"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Allow"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"Action"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"s3:GetObject"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"s3:PutObject"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"Resource"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"arn:aws:s3:::acme-prod-uploads/*"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The two IAM roles Fargate security starts with
&lt;/h2&gt;

&lt;p&gt;Fargate uses two IAM roles: the execution role lets the agent pull the image, ship logs, and fetch secrets; the task role is what your app code uses to call AWS. Mixing them up is the top mistake.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;execution role&lt;/strong&gt; is used by the Fargate agent to set the task up &lt;em&gt;before&lt;/em&gt; your container runs — pull the image from ECR, write logs, and inject any secrets the task definition references. The &lt;strong&gt;task role&lt;/strong&gt; is used by your &lt;em&gt;application&lt;/em&gt; at runtime to reach S3, DynamoDB, and other services. Secret injection and ECR pulls are execution-role permissions; attaching them to the task role is the single most common config error, and a recurring AWS re:Post question.&lt;/p&gt;

&lt;p&gt;One thing worth internalizing: AWS is explicit that "&lt;em&gt;containers are not a security boundary&lt;/em&gt;… each task running on Fargate has its own isolation boundary and does not share the underlying kernel, CPU, memory, or elastic network interface with another task." The isolation you rely on is the task, not the container. Scoping a separate least-privilege task role per environment is exactly the &lt;a href="https://fortem.dev/blog/ecs-fargate-rbac/" rel="noopener noreferrer"&gt;per-environment IAM isolation across the fleet&lt;/a&gt;that keeps one compromised task from reaching another environment's data.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Fargate hardening set (the config that matters)
&lt;/h2&gt;

&lt;p&gt;The Fargate hardening set is short: run as a non-root user, set readonlyRootFilesystem, drop unneeded capabilities. Ephemeral storage is already AES-256 encrypted, so that box is checked for you.&lt;/p&gt;

&lt;p&gt;By default a container runs as &lt;code&gt;root&lt;/code&gt; unless your Dockerfile has a &lt;code&gt;USER&lt;/code&gt;directive. AWS's own guidance is to run as non-root and to lint Dockerfiles in CI, failing the build when the &lt;code&gt;USER&lt;/code&gt;directive is missing — that turns "we run non-root" from a hope into a gate.&lt;/p&gt;

&lt;p&gt;A container's root filesystem is writable by default; you set &lt;code&gt;readonlyRootFilesystem: true&lt;/code&gt; explicitly. Ephemeral storage — the 20 GiB scratch space (up to 200 GiB) each task gets — is encrypted with AES-256 using a Fargate-managed key for any task launched since May 2020, so encryption-at-rest for scratch data needs no action from you. The read-only setting is the one that bites people, which is the next section.&lt;/p&gt;

&lt;h2&gt;
  
  
  Making read-only root filesystem actually work
&lt;/h2&gt;

&lt;p&gt;readonlyRootFilesystem: true breaks any app that writes to /tmp. The fix is a writable volume mounted at /tmp (and any other write path) while the rest of the filesystem stays read-only.&lt;/p&gt;

&lt;p&gt;This is the friction point behind the glib "just make the filesystem read-only" advice. The moment you flip it on, an app that writes a session file, a cache, or a temp upload to &lt;code&gt;/tmp&lt;/code&gt;starts failing — and it fails as a confusing runtime crash, not as an obvious "permission denied on a read-only filesystem." It's a recurring ECS re:Post thread.&lt;/p&gt;

&lt;p&gt;The fix is in the ready-to-use block above: declare an ephemeral volume at the task level and mount it at every path the app writes to (usually &lt;code&gt;/tmp&lt;/code&gt;), keeping the rest of the root filesystem read-only. You end up declaring your writable surface explicitly, which is the whole security point — you now know exactly where the container can write.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;KEY INSIGHT:&lt;/strong&gt; Key insight Read-only root isn't a toggle you flip and forget — it's a contract that forces you to declare every writable path. Test it before prod; a missing &lt;code&gt;/tmp&lt;/code&gt; mount looks like a random app crash, not a security setting.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Secrets: the sanctioned path vs plaintext env vars
&lt;/h2&gt;

&lt;p&gt;Never put secrets in a task definition's plaintext environment block. Reference them in the secrets block from Secrets Manager or SSM; the execution role fetches and injects them at launch.&lt;/p&gt;

&lt;p&gt;Anything in the task definition's &lt;code&gt;environment&lt;/code&gt; block is stored and shown in plaintext in the console and the API — a DB password there is visible to anyone with &lt;code&gt;ecs:DescribeTaskDefinition&lt;/code&gt;. The &lt;code&gt;secrets&lt;/code&gt; block instead holds a reference (an ARN); the execution role resolves it at launch and injects the value as an env var the app sees, without the value ever living in the task definition.&lt;/p&gt;

&lt;p&gt;For that to work, the &lt;strong&gt;execution role&lt;/strong&gt; needs &lt;code&gt;secretsmanager:GetSecretValue&lt;/code&gt; (for Secrets Manager) or &lt;code&gt;ssm:GetParameters&lt;/code&gt; (for Parameter Store), plus &lt;code&gt;kms:Decrypt&lt;/code&gt;if the secret uses a customer-managed key. Note it's the execution role, not the task role — the agent fetches the secret before your code runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Network isolation with awsvpc and security groups
&lt;/h2&gt;

&lt;p&gt;Fargate only runs in awsvpc mode, so every task gets its own ENI and IP and can carry its own security group. Scope security groups per task and keep tasks in private subnets with no public IP.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;awsvpc&lt;/code&gt;is the only network mode available on Fargate, and it's the mode that gives each task a dedicated elastic network interface with its own private IP. That means a security group attaches to the task itself — you can scope ingress and egress per service instead of sharing one host's rules across everything, the way bridge mode forces on EC2.&lt;/p&gt;

&lt;p&gt;The operational rule: tasks go in private subnets, reach ECR and Secrets Manager over a NAT gateway or VPC endpoints, and never get an auto-assigned public IP. The failure that undoes all of this is a single environment stood up from an older module that drops the task in a public subnet with a permissive security group. It's easy to miss when environments are built one at a time — the fleet-drift problem below.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Fargate won't let you configure (vs EC2)
&lt;/h2&gt;

&lt;p&gt;Fargate removes low-level controls on purpose: no privileged containers, no host access, no SSH, CAP_SYS_ADMIN and CAP_NET_ADMIN restricted. The only capability you can add is CAP_SYS_PTRACE.&lt;/p&gt;

&lt;p&gt;A lot of "container security" advice assumes host-level control you simply don't have on Fargate. Privileged containers aren't supported, so Docker-in-Docker patterns don't run. Additional Linux capabilities like &lt;code&gt;CAP_SYS_ADMIN&lt;/code&gt; and &lt;code&gt;CAP_NET_ADMIN&lt;/code&gt; are restricted to prevent privilege escalation; only &lt;code&gt;CAP_SYS_PTRACE&lt;/code&gt;can be added, for observability and security tooling inside the task. And there's no host access at all — ECS exec is the only sanctioned way to get a shell into a running container.&lt;/p&gt;

&lt;p&gt;ControlEC2 launch typeFargate&lt;/p&gt;

&lt;p&gt;Privileged containersAllowedNot supported&lt;/p&gt;

&lt;p&gt;Docker-in-DockerPossibleNot possible&lt;/p&gt;

&lt;p&gt;Host access / SSHYes (host + ECS exec)No host; ECS exec only&lt;/p&gt;

&lt;p&gt;Custom runtime agent (Falco)DaemonSet on the hostNone — GuardDuty sidecar&lt;/p&gt;

&lt;p&gt;Linux capabilitiesAdd most capsOnly CAP_SYS_PTRACE addable&lt;/p&gt;

&lt;p&gt;Kernel modules / sysctlsHost-level controlLocked down&lt;/p&gt;

&lt;p&gt;Read-only root filesystemConfigurableConfigurable&lt;/p&gt;

&lt;p&gt;Non-root userConfigurableConfigurable&lt;/p&gt;

&lt;p&gt;The bottom two rows are the ones you still own. Everything above them is decided for you — which is the point of Fargate. The consequence that surprises people: you can't run your own runtime sensor, so runtime threat detection works differently.&lt;/p&gt;

&lt;h2&gt;
  
  
  Runtime threat detection = GuardDuty (there's no alternative)
&lt;/h2&gt;

&lt;p&gt;Because you can't run your own agent on Fargate, GuardDuty ECS Runtime Monitoring is the only managed runtime-threat path. It injects a sidecar into each task and bills per monitored vCPU-hour.&lt;/p&gt;

&lt;p&gt;On EC2 you'd run a Falco DaemonSet or a vendor agent on the host to watch process execution, file access, and network connections at runtime. On Fargate there's no host to put it on. AWS closes that gap with GuardDuty ECS Runtime Monitoring: when a task starts, GuardDuty attaches a managed security sidecar container to it. AWS is explicit that on Fargate you cannot manage that agent manually — GuardDuty is the only supported runtime path.&lt;/p&gt;

&lt;p&gt;Two operational gotchas. First, a Fargate task is immutable, so GuardDuty won't attach the sidecar to a task that's _already_running — you stop and restart the task to bring it under monitoring. Second, it's billed per monitored vCPU-hour on a tiered rate (with a 30-day free trial), so across 10+ always-on environments it's a real, and often unpredictable, line item. Check the &lt;a href="https://aws.amazon.com/guardduty/pricing/" rel="noopener noreferrer"&gt;GuardDuty pricing page&lt;/a&gt;for your region's exact rate before you assume it's free.&lt;/p&gt;

&lt;h2&gt;
  
  
  Image supply chain — scanning and immutable tags
&lt;/h2&gt;

&lt;p&gt;Secure the image before it runs: enable ECR scan-on-push, set tag immutability so a tag can't be silently overwritten, and fail the build on HIGH or CRITICAL CVEs. Basic scanning is free.&lt;/p&gt;

&lt;p&gt;Runtime hardening only matters if the image itself is sound. ECR basic scanning is free, uses an AWS-native CVE database (the older Clair-based basic scanning was retired on October 1, 2025), and checks each image on push; enhanced scanning via Amazon Inspector goes deeper into OS and language packages. Tag immutability stops a second push of &lt;code&gt;:v1.4.2&lt;/code&gt; from silently replacing the bytes you already reviewed and deployed.&lt;/p&gt;

&lt;p&gt;The registry is its own security surface — pull IAM, cross-account access, and lifecycle all matter at fleet scale. That's covered in depth in &lt;a href="https://fortem.dev/blog/aws-ecr-guide/" rel="noopener noreferrer"&gt;how ECR works for ECS Fargate teams&lt;/a&gt;; for security specifically, scan-on-push plus immutable tags is the baseline every repo should be born with.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where fleets actually break — security drift at 10+ environments
&lt;/h2&gt;

&lt;p&gt;At fleet scale the config is correct per-env but unaudited across envs. The real risks: one env with a too-broad task role, a secret rotated in prod but not staging, a public-subnet task missed.&lt;/p&gt;

&lt;p&gt;Every control above is easy to set on one task. The problem is that a fleet of 10–40 environments is edited one task definition at a time, in isolation, and nothing shows you all of them at once. So the failures are failures of &lt;em&gt;uniformity&lt;/em&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Task-role drift.&lt;/strong&gt; Prod's role got scoped to least-privilege during the SOC 2 push; the six-month-old sandbox and demo-eu environments still carry a copy-pasted role with s3:* or a wildcard Resource. Nothing flags it, because each env's task def is edited on its own.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Secrets rotated unevenly.&lt;/strong&gt; The DB credential is rotated in prod, but staging and qa still reference the old secret ARN — or worse, still carry the value in a plaintext environment var from before the migration. The secret is "handled" in one environment.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;The public-subnet task nobody noticed.&lt;/strong&gt; awsvpc and security groups are correct in 38 environments; #39 was stood up from an older Terraform module that drops the task in a public subnet with a permissive SG. It passes every single-env checklist, because that checklist only ever looks at one env.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Uneven read-only / non-root.&lt;/strong&gt; readonlyRootFilesystem and the USER directive are enforced in the environments the platform team built, and skipped in the ones a product squad self-served. The hardening exists as a policy but not as a fact across the fleet.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;GuardDuty on 30 of 40 clusters.&lt;/strong&gt; Runtime Monitoring is on account-wide but excluded via tag on the clusters someone muted during a noisy-alert incident and never re-enabled. Ten environments have zero runtime detection, and no dashboard shows the gap.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Container security on Fargate is not hard to configure — it's hard to keep uniform and prove. The reframing from "is this task hardened?" to "is every environment hardened the same way?" is the whole job at 10+ environments, and it's the thing a per-task checklist structurally can't answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  How this ties into your SOC 2 controls
&lt;/h2&gt;

&lt;p&gt;SOC 2 doesn't ask if you CAN secure a task — it asks you to prove the control holds in every environment. Fleet-wide uniformity is the audit evidence, and it breaks when envs are configured by hand.&lt;/p&gt;

&lt;p&gt;Each item in the hardening set maps to a control an auditor will ask about: least-privilege access (the task role), encryption (ephemeral storage and secrets), change monitoring (who edited a task definition). The gap auditors find isn't that you _can't_do these things — it's the one environment where the control isn't applied. Drift is the finding they circle in red, and proving uniformity across the fleet is the evidence that closes it.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you read this, you might also want to know
&lt;/h2&gt;

&lt;p&gt;Do I need GuardDuty if I already scan images in ECR?&lt;/p&gt;

&lt;p&gt;Yes — they cover different phases. ECR scanning finds known CVEs in the image before it runs (build-time / supply chain). GuardDuty Runtime Monitoring watches behavior while the container runs — process execution, file access, outbound connections — and catches things a clean image can still do at runtime, like credential theft or crypto-mining. Scanning is prevention; runtime monitoring is detection.&lt;/p&gt;

&lt;p&gt;Can I run Falco or my own security agent on Fargate?&lt;/p&gt;

&lt;p&gt;No. Falco and similar tools need host-level access (a DaemonSet or kernel module) that Fargate doesn't give you — there's no host to install them on. GuardDuty ECS Runtime Monitoring, which injects an AWS-managed sidecar, is the supported substitute. If a vendor claims Fargate runtime coverage, they're either using GuardDuty's feed or running in-task with the limited CAP_SYS_PTRACE capability.&lt;/p&gt;

&lt;p&gt;Is the task role or the execution role the one that reads my secrets?&lt;/p&gt;

&lt;p&gt;The execution role. The Fargate agent uses the execution role to fetch a secret referenced in the task definition's secrets block and inject it before your container starts, so the execution role needs secretsmanager:GetSecretValue or ssm:GetParameters. The task role is only for AWS calls your application makes at runtime.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Map every environment's security config in 5 min:&lt;/strong&gt; &lt;a href="https://fortem.dev/audit" rel="noopener noreferrer"&gt;fortem.dev/audit&lt;/a&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>ecs</category>
      <category>fargate</category>
      <category>security</category>
    </item>
  </channel>
</rss>
