Skip to content

Instantly share code, notes, and snippets.

@bstee615
Last active March 28, 2026 07:22
Show Gist options
  • Select an option

  • Save bstee615/9b43dd9e40f91f0f082f5697968f04b3 to your computer and use it in GitHub Desktop.

Select an option

Save bstee615/9b43dd9e40f91f0f082f5697968f04b3 to your computer and use it in GitHub Desktop.
Windows Terminal profile for Claude with no permission prompts

Claude — Windows Terminal Profile (No Permission Prompts)

A Windows Terminal profile that opens Claude with --permission-mode bypassPermissions, skipping the workspace trust prompt.

image

Quick install

Run this one-liner in PowerShell:

irm 'https://gist.githubusercontent.com/bstee615/9b43dd9e40f91f0f082f5697968f04b3/raw/setup.ps1' | iex

Manual setup

Open Windows Terminal settings (Ctrl+,Open JSON file) and add this to the profiles.list array:

{
    "commandline": "cmd.exe /c claude --permission-mode bypassPermissions",
    "guid": "{a1b2c3d4-e5f6-7890-abcd-ef1234567890}",
    "hidden": false,
    "name": "Claude",
    "startingDirectory": "%USERPROFILE%"
}

Note: Only use this in directories you own or fully trust. This flag disables all safety checks.

# Claude Windows Terminal Setup Script
$ErrorActionPreference = "Stop"
$wtPackage = Get-ChildItem "$env:LOCALAPPDATA\Packages" -Filter "Microsoft.WindowsTerminal*" -Directory | Select-Object -First 1
if (-not $wtPackage) { Write-Error "Windows Terminal not found."; exit 1 }
$settingsPath = Join-Path $wtPackage.FullName "LocalState\settings.json"
$settings = Get-Content $settingsPath -Raw | ConvertFrom-Json
$profileGuid = "{a1b2c3d4-e5f6-7890-abcd-ef1234567890}"
$exists = $settings.profiles.list | Where-Object { $_.guid -eq $profileGuid }
if (-not $exists) {
$newProfile = [PSCustomObject]@{
commandline = "cmd.exe /c claude --permission-mode bypassPermissions"
guid = $profileGuid
hidden = $false
name = "Claude"
startingDirectory = "%USERPROFILE%"
}
$settings.profiles.list += $newProfile
$settings | ConvertTo-Json -Depth 10 | Set-Content $settingsPath -Encoding UTF8
Write-Host "✓ Windows Terminal profile added." -ForegroundColor Green
} else {
Write-Host "~ Windows Terminal profile already exists, skipping." -ForegroundColor Yellow
}
Write-Host ""
Write-Host "Done! Open Windows Terminal and select the 'Claude' profile." -ForegroundColor Cyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment