CLAUDE LABJP
AUTO — Auto mode becomes the default in Claude Code tomorrow, August 14, across the Pro, Max, and Team plansSUNSET — The legacy Workbench and the experimental prompt tool APIs retire on August 17, now four days awayCOWORK — Cowork has expanded to mobile and web, so sessions and files follow you between devices, with background runs, scheduled tasks, and approvals from your phoneDESIGN — Claude Design is here: build branded decks, landing pages, and prototypes in one conversation, then export to PDF, PPTX, Canva, or HTMLAUDIT — The Compliance API now covers Cowork and Claude Code across desktop, web, mobile, and CLI, in beta for Enterprise customersPRICE — Sonnet 5 promo pricing at $2/$10 per Mtok runs through August 31, moving to $3/$15 on September 1AUTO — Auto mode becomes the default in Claude Code tomorrow, August 14, across the Pro, Max, and Team plansSUNSET — The legacy Workbench and the experimental prompt tool APIs retire on August 17, now four days awayCOWORK — Cowork has expanded to mobile and web, so sessions and files follow you between devices, with background runs, scheduled tasks, and approvals from your phoneDESIGN — Claude Design is here: build branded decks, landing pages, and prototypes in one conversation, then export to PDF, PPTX, Canva, or HTMLAUDIT — The Compliance API now covers Cowork and Claude Code across desktop, web, mobile, and CLI, in beta for Enterprise customersPRICE — Sonnet 5 promo pricing at $2/$10 per Mtok runs through August 31, moving to $3/$15 on September 1
Articles/Claude Code
Claude Code/2026-06-29Advanced

Borrowing the Trusted Devices Idea for a Solo Setup: Pinning Automated Runs to Devices You Approved

The Trusted Devices feature that landed in Claude Code on June 28, 2026 is for Team and Enterprise. You can't use the feature on a solo plan, but you can borrow the idea. Here is how to identify a device in a way that doesn't break, and stop any automated run that starts from a device you never approved — with working code and the traps to avoid.

Claude Code216Trusted Devices2Security11Automation42Device Trust

Premium Article

The scariest moment in scheduled automation isn't when a job fails. It's when a job succeeds quietly on a device you never meant to run it on. As an indie developer I run article updates for several sites unattended, staggered through the night, and besides my main Mac I keep a second machine for working sessions. The same tokens and config sometimes sync to both. When that happens, "the same job ran twice in the middle of the night, once from a machine that was never supposed to touch it" is exactly the kind of incident that goes unnoticed for too long — because nobody is watching a screen.

On June 28, 2026, Claude Code gained Trusted Devices: a Team / Enterprise capability that verifies the device itself before a remote Claude Code session begins. You can't use it on a personal plan, but the underlying idea — making "which device is this running on" the starting point of your operations — is especially useful for a small, solo automation. Below I turn that idea into code so that a run never even starts from a device you haven't approved.

What you're protecting is the device, not the model

When people think about security for unattended runs, attention goes to key strength and permission scopes. Those matter. But in solo development the thing that actually bit me was more mundane: a drift in who is executing.

Concretely: an old laptop I never wiped still had a synced cron entry quietly firing. A VM I cloned "just for testing" inherited the production schedule. A script in a cloud-synced folder got mounted on a machine I didn't expect. None of these are "unauthorized access." They are all the same problem — my own asset running somewhere I didn't intend.

That is exactly the axis Trusted Devices points at. The question isn't whether something holds the key; it's whether the operator knew, in advance, which device is using it. Translated to a solo setup, it becomes a minimal gate: keep your own list of approved devices, and refuse to read credentials anywhere else.

What Trusted Devices covers, and the gap left for solo runs

First, let's be clear about the scope difference, so we know which part to build ourselves.

AspectTrusted Devices (Team / Enterprise)What you build for solo
What is verifiedThe device starting a remote sessionThe device where cron / launchd runs
Allowlist managementAdmin approves in a consoleYou keep one file of approved devices
On rejectionBlocks the session from startingExit before reading credentials, log and alert
ScopeMostly interactive / remoteFully unattended batch jobs

What a solo operator really wants protected is the batch entry point, not the interactive one. A nightly scheduled run is not a remote session, so it falls outside Trusted Devices. That's precisely why it's worth carrying the same idea as your own preflight, right before execution.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
How to pick a device identifier that survives reboots and network changes (macOS IOPlatformUUID / Linux machine-id) instead of fragile hostname or IP, with the code to read it on both
A preflight guard you call from cron or launchd that refuses to read credentials at all unless the device is on your allowlist
Why a blocked run must never exit quietly: logging and alerting so a new, un-approved device surfaces instead of silently doing nothing
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Claude Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

Claude Code2026-07-05
Rolling Out Trusted Devices for a Small Team: Enrollment, Preflight, and Rotation
How to introduce Team/Enterprise Trusted Devices for a 2-5 person team: device enrollment, an unattended-run preflight gate, and closing the gaps that appear during device rotation and offboarding.
Claude Code2026-07-25
Locking down Claude Code sandbox egress with strictAllowlist
Tightening automation egress with strictAllowlist in Claude Code v2.1.219, plus measured failure timings that tell a policy deny from DNS and real outages.
Claude Code2026-07-17
The String I Approved Wasn't the String I Read — Testing a Relayed Permission Prompt with Deceptive Characters
I pushed bidi overrides and zero-width characters through my own approval relay. NFKC normalization caught 0%. Here is why, and the implementation that catches 100% with zero false positives.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →