TL;DRTo activate the 1Password ngrok shell plugin:
- Sign up for 1Password
- Install and sign in to 1Password on your machine
- Install the 1Password CLI on your machine
- Integrate the 1Password CLI with the 1Password desktop app
- Import your ngrok credentials into 1Password
- Launch ngrok
- Store your credentials in exactly one place, limiting the risk of not updating environments after resetting tokens
- Share credentials between environments securely, eliminating the risk of copy and pasting credentials in other tools or reusing credentials between multiple projects accidentally
- Switch between credentials as necessary to test with different ngrok configurations, feature sets, or even accounts
- A 1Password account
- 1Password desktop app installed on your machine (v8 or later)
- 1Password CLI installed on your machine (v2.14.0 or later)
- ngrok installed on your machine
- Basic familiarity with the command line
Step 1: Initialize the 1Password ngrok shell plugin
To configure the ngrok shell extension, open a terminal and run this command:


Step 2: Clean up your ngrok.yml file
Now that your credentials are safely in your 1Password vault, you can remove them from your local environment. Use your text editor to update .ngrok2/ngrok.yml and remove the authtoken value:Step 3: Start your tunnel
Now that we have our environment configured, we start our tunnel. 1Password will intercept the request, determine which credential to use, and start a tunnel as we requested.