Warp documentation
  • 🚀Getting Started
    • Quickstart Guide
    • What is Warp?
    • Migrate to Warp
    • Using Warp with [zsh|bash|fish|pwsh]
    • Privacy
    • Refer a Friend & Earn Rewards
    • Warp Preview & Alpha Program
    • Changelog
  • 🎨Appearance
    • Themes
    • Custom Themes
    • Prompt
    • Input Position
    • Text, Fonts, & Cursor
    • Size, Opacity, & Blurring
    • Pane Dimming & Focus
    • Blocks Behavior
    • Tabs Behavior
    • App Icons
  • 📕Features
    • Warp AI
      • Active AI
      • Agent Mode
      • Generate
      • Model Context Protocol
      • Voice
      • Rules
    • Command Palette
    • Warp Drive
      • Notebooks
      • Workflows
      • Prompts
      • Environment Variables
      • Warp Drive on the Web
    • Teams
    • Session Sharing
    • Blocks
      • Block Basics
      • Block Actions
      • Block Sharing
      • Block Filtering
      • Background Blocks
      • Sticky Command Header
    • Modern Text Editing
      • Alias Expansion
      • Command Inspector
      • Syntax & Error Highlighting
      • Vim Keybindings
    • Command Entry
      • Command Corrections
      • Command Search
      • Command History
      • Synchronized Inputs
      • YAML Workflows
    • Command Completions
      • Completions
      • Autosuggestions
    • Session Management
      • Launch Configurations
      • Session Navigation
      • Session Restoration
    • Window Management
      • Global Hotkey
      • Tabs
      • Split Panes
    • Warpify
      • Subshells
      • SSH
    • Accessibility
    • Find
    • Files, Links, & Scripts
    • Markdown Viewer
    • Working Directory
    • Smart-Select
    • Full-screen Apps
    • Keyboard Shortcuts
    • Notifications & Audible Bell
    • Settings Sync (Beta)
    • Quit Warning
    • Integrations
    • URI Scheme
    • Network Log
    • Secret Redaction
    • Linux
  • 📊How Does Warp Compare?
    • Performance
    • Terminal features
  • ❓Help
    • Sending Feedback & Logs
    • Plans, Subscriptions & Pricing
    • Updating Warp
    • Using Warp Offline
    • Logging out & Uninstalling
    • Known Issues
    • Troubleshooting Login Issues
    • Open Source Licenses
Powered by GitBook
On this page
  • How to access it
  • How it works
  • Secret Regex List

Was this helpful?

  1. Features

Secret Redaction

Secret Redaction attempts to automatically redact secrets and sensitive information in your terminal output, including passwords, IP addresses, API keys, and PII.

PreviousNetwork LogNextLinux

Last updated 14 days ago

Was this helpful?

How to access it

Disabled by default, to enable Secret Redaction open Settings > Privacy > Secret Redaction or type in "Secret Redaction" to toggle it in the .

How it works

Secret Redaction attempts to detect sensitive data (including secrets, passwords, API keys, and PII) using a list of default regex patterns and then masks it with asterisks. Clicking on a secret will display a tooltip that lets you reveal the secret or copy the secret's contents. When trying to copy terminal output containing secrets, it will be copied as asterisks (e.g. echo password becomes echo ********) unless revealed or copied from the tooltip. Secret redaction is not applied in shared sessions.

You can add additional custom regex for secrets you want to include in Settings > Privacy > Secret Redaction > Custom Secret Redaction.

Secret redaction always applies to AI interactions, regardless of this setting. Your secrets will never be sent to AI.

Secret Regex List

Here is a list of the default regular expressions that Warp uses to identify secrets.

Secret Type
Regex Pattern

IP V4 Address

\b((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}\b

IP V6 Address

\b((([0-9A-Fa-f]{1,4}:){1,6}:)|(([0-9A-Fa-f]{1,4}:){7}))([0-9A-Fa-f]{1,4})\b

Slack App Token

\bxapp-[0-9]+-[A-Za-z0-9_]+-[0-9]+-[a-f0-9]+\b

Phone Number

\b(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}\b

AWS Access ID

\b(AKIA|A3T|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{12,}\b

MAC Address

\b((([a-zA-z0-9]{2}[-:]){5}([a-zA-z0-9]{2}))|(([a-zA-z0-9]{2}:){5}([a-zA-z0-9]{2})))\b

Google API Key

\bAIza[0-9A-Za-z-_]{35}\b

Google OAuth ID

\b[0-9]+-[0-9A-Za-z_]{32}\.apps\.googleusercontent\.com\b

Github Classic Personal Access Token

\bghp_[A-Za-z0-9_]{36}\b

Github Fine Grained Personal Access Token

\bgithub_pat_[A-Za-z0-9_]{82}\b

Github OAuth Access Token

\bgho_[A-Za-z0-9_]{36}\b

Github User to Server Token

\bghu_[A-Za-z0-9_]{36}\b

Github Server to Server Token

\bghs_[A-Za-z0-9_]{36}\b

Heroku API Key

\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\b

Stripe Key

\b(?:r|s)k_(test|live)_[0-9a-zA-Z]{24}\b

Firebase Auth Domain

\b([a-z0-9-]){1,30}(\.firebaseapp\.com)\b

JSON web token

\b(ey[a-zA-z0-9_\-=]{10,}\.){2}[a-zA-z0-9_\-=]{10,}\b

OpenAI API Key

\bsk-[a-zA-Z0-9]{48}\b

Anthropic API Key

\bsk-ant-api\d{0,2}-[a-zA-Z0-9\-]{80,120}\b

Fireworks API Key

\bfw_[a-zA-Z0-9]{24}\b

📕
Command Palette