Mike MurphyAI Handyman
Subscribe
Back to tutorials

Claude Code: How To Add Trusted Directories

January 19, 2026 ·

In this tutorial, you will learn how to add Trusted Directories (Folders) to prevent Claude Code from asking 'Do You Trust Files?' when launching from a trusted directory.

Description

In this tutorial, you will learn how to add Trusted Directories (Folders) to prevent Claude Code from asking ‘Do You Trust Files?’ when launching from a trusted directory.

Code Snippets:
nano ~/.claude/settings.json
“trustedDirectories”: [/Users/homefolder/TrustedDirectory“]

Keyboard Shortcuts:
Show/Hide Hidden Files: Shift + Command + Period
Print Working Directory (pwd)

Nano Editor:
Write Out: Ctrl + O
Write Files: Return
Exit: Ctrl + X

📌 Links:

What You Will Learn:

  • Locate Claude Code Settings.json file
  • Add Folder as Trusted Directory
  • Save & Exit Nano Text Editor
  • Launch Claude Code from Trusted Directory

🕒 Timestamps:
00:00 Intro: About The Tutorial
00:54 The Fix: Overview
02:20 Step 1: Open Terminal
03:17 Finder Navigation
03:44 Show & Hide Hidden Files/Folders
05:15 Bonus Tip: Copy File Pathname
05:53 Add Additional Trusted Directories
06:14 Write Out & Exit Nano
06:38 Quit & Relaunch Terminal
06:58 Open Trusted Directory in Terminal
07:07 Print Working Directory (pwd)
07:54 Test Directory ‘Inside’ Trusted Directory

🪜What You Will Learn:

  1. Open Terminal
  2. Open Claude Settings File (nano ~/.claude/settings.json)
  3. Add “trustedDirectories”: [/Users/homefolder/TrustedDirectory“]
  4. Write Out (Ctrl + O)
  5. Write Files (Return)
  6. Exit Nan (Ctrl + X)
  7. Open Trusted Directory in Terminal
  8. Launch Claude Code (claude)
  9. Claude should open without prompt: Do You Trust Files?
  10. Exit Claude Code (/exit)

AI Unplugged · weekly

Newsletter for AI Builders

One practical email with the news, tools, terms, and tutorials worth remembering. Beehiiv sends it; Astro owns the archive.

No spam. Reply-friendly. Easy to leave.