PinchTab can be configured using environment variables or a JSON configuration file. Environment variables take precedence over file-based configuration.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pinchtab/pinchtab/llms.txt
Use this file to discover all available pages before exploring further.
Configuration File
PinchTab looks for a configuration file at~/.pinchtab/config.json by default. You can specify a custom path using the BRIDGE_CONFIG environment variable.
Initialize Config File
Config File Format
~/.pinchtab/config.json
Environment variables take precedence over config file values. The config file is only used when the corresponding environment variable is not set.
Environment Variables
Server Configuration
BRIDGE_BIND
BRIDGE_BIND
Type: String
Default:
Description: IP address to bind the HTTP server to.
Default:
127.0.0.1Description: IP address to bind the HTTP server to.
BRIDGE_PORT
BRIDGE_PORT
Type: String
Default:
Description: Port for the main HTTP API server.
Default:
9867Description: Port for the main HTTP API server.
INSTANCE_PORT_START
INSTANCE_PORT_START
Type: Integer
Default:
Description: Starting port for instance allocation.
Default:
9868Description: Starting port for instance allocation.
INSTANCE_PORT_END
INSTANCE_PORT_END
Type: Integer
Default:
Description: Ending port for instance allocation. PinchTab can create up to 100 instances by default (9868-9968).
Default:
9968Description: Ending port for instance allocation. PinchTab can create up to 100 instances by default (9868-9968).
BRIDGE_TOKEN
BRIDGE_TOKEN
Type: String
Default: (none)
Description: Authentication token for HTTP API access. When set, all requests must includeThen make requests with:
Default: (none)
Description: Authentication token for HTTP API access. When set, all requests must include
Authorization: Bearer <token> header.Chrome Configuration
CDP_URL
CDP_URL
Type: String (WebSocket URL)
Default: (none)
Description: Connect to an existing Chrome instance instead of launching a new one.See CDP Integration for details.
Default: (none)
Description: Connect to an existing Chrome instance instead of launching a new one.
BRIDGE_HEADLESS
BRIDGE_HEADLESS
Type: Boolean
Default:
Accepts:
Default:
trueAccepts:
true, false, 1, 0, yes, no, on, offCHROME_BIN / CHROME_BINARY
CHROME_BIN / CHROME_BINARY
Type: String (file path)
Default: Auto-detected
Description: Path to Chrome/Chromium binary. PinchTab auto-detects Chrome on most systems, but you can override it.
Default: Auto-detected
Description: Path to Chrome/Chromium binary. PinchTab auto-detects Chrome on most systems, but you can override it.
CHROME_FLAGS
CHROME_FLAGS
Type: String
Default: (none)
Description: Additional Chrome command-line flags to pass at startup.
Default: (none)
Description: Additional Chrome command-line flags to pass at startup.
Common flags for containerized environments:
--no-sandbox(required in some Docker setups)--disable-dev-shm-usage(fixes shared memory issues)--disable-gpu(when no GPU available)
BRIDGE_CHROME_VERSION
BRIDGE_CHROME_VERSION
Type: String
Default:
Description: Chrome version to report in User-Agent string.
Default:
144.0.7559.133Description: Chrome version to report in User-Agent string.
Profile & State
BRIDGE_PROFILE
BRIDGE_PROFILE
Type: String (directory path)
Default:
Description: Directory where Chrome stores browser profile data (cookies, localStorage, history).
Default:
~/.pinchtab/chrome-profileDescription: Directory where Chrome stores browser profile data (cookies, localStorage, history).
Each profile is isolated. Use different profile directories to simulate different users or sessions.
BRIDGE_STATE_DIR
BRIDGE_STATE_DIR
Type: String (directory path)
Default:
Description: Directory where PinchTab stores state data (tab metadata, instance info).
Default:
~/.pinchtabDescription: Directory where PinchTab stores state data (tab metadata, instance info).
BRIDGE_NO_RESTORE
BRIDGE_NO_RESTORE
Type: Boolean
Default:
Description: Skip restoring tabs from previous session on startup.
Default:
falseDescription: Skip restoring tabs from previous session on startup.
Browser Behavior
BRIDGE_MAX_TABS
BRIDGE_MAX_TABS
Type: Integer
Default:
Description: Maximum number of tabs allowed per instance.
Default:
20Description: Maximum number of tabs allowed per instance.
BRIDGE_TIMEZONE
BRIDGE_TIMEZONE
Type: String
Default: System timezone
Description: Override timezone for the browser.
Default: System timezone
Description: Override timezone for the browser.
BRIDGE_USER_AGENT
BRIDGE_USER_AGENT
Type: String
Default: Auto-generated
Description: Custom User-Agent string to use for all requests.
Default: Auto-generated
Description: Custom User-Agent string to use for all requests.
BRIDGE_NO_ANIMATIONS
BRIDGE_NO_ANIMATIONS
Type: Boolean
Default:
Description: Disable CSS animations and transitions for faster page loads.
Default:
falseDescription: Disable CSS animations and transitions for faster page loads.
Content Blocking
BRIDGE_BLOCK_IMAGES
BRIDGE_BLOCK_IMAGES
Type: Boolean
Default:
Description: Block image loading to save bandwidth and speed up page loads.
Default:
falseDescription: Block image loading to save bandwidth and speed up page loads.
BRIDGE_BLOCK_MEDIA
BRIDGE_BLOCK_MEDIA
Type: Boolean
Default:
Description: Block video and audio loading.
Default:
falseDescription: Block video and audio loading.
BRIDGE_BLOCK_ADS
BRIDGE_BLOCK_ADS
Type: Boolean
Default:
Description: Enable basic ad blocking.
Default:
falseDescription: Enable basic ad blocking.
Stealth & Detection
BRIDGE_STEALTH
BRIDGE_STEALTH
Type: String
Default:
Accepts:
Description: Stealth level for evading bot detection.Stealth Levels:
Default:
lightAccepts:
off, light, medium, aggressiveDescription: Stealth level for evading bot detection.
off: No modificationslight: Basic fingerprint randomizationmedium: Additional evasion techniquesaggressive: Maximum evasion (may break some sites)
Timeouts
BRIDGE_TIMEOUT
BRIDGE_TIMEOUT
Type: Integer (seconds)
Default:
Description: Default timeout for browser actions (click, type, etc.).Can also be set in config file as
Default:
30Description: Default timeout for browser actions (click, type, etc.).
timeoutSec.BRIDGE_NAV_TIMEOUT
BRIDGE_NAV_TIMEOUT
Configuration Priority
Configuration is loaded in this order (later sources override earlier ones):- Default values (hardcoded in PinchTab)
- Config file (
~/.pinchtab/config.jsonor$BRIDGE_CONFIG) - Environment variables
Example Configurations
Production Setup
Production with Auth
Development Setup
Development (Headed)
Containerized Setup
Docker/Kubernetes
Memory-Constrained Environment
Low Memory
Multi-Instance Coordinator
Coordinator Mode
CLI Reference
Troubleshooting
Config file not loading
Config file not loading
Check that the file exists and is valid JSON:If invalid, reinitialize:
Environment variables not working
Environment variables not working
Verify the variable is set:Make sure to export it:
Token authentication not working
Token authentication not working
Ensure you’re including the Authorization header:Not: