Basic Authentication
Wormkey supports HTTP Basic Authentication to protect your development server from unauthorized access. When enabled, viewers must provide a username and password to access your wormhole.Enable Basic Auth
Use the--auth flag when creating a wormhole:
Output
When basic auth is enabled, the CLI will print the credentials:The password is randomly generated for each session. Share these credentials with collaborators who need access.
How It Works
Generate credentials
When
--auth is passed, the control plane generates:- Username: Always
worm - Password: Random 8-character token
Print to console
The CLI displays the credentials immediately after session creation. Copy them before sharing your wormhole URL.
Use Cases
Client Demos
Share your development work with clients without exposing it publicly:Team Collaboration
Allow specific team members to access your local environment:Staging Previews
Protect feature branches during review:Security Notes
- Credentials are randomly generated per session
- Password length: 8 characters (alphanumeric)
- No credential reuse between sessions
- Sessions expire based on
--expiresduration (default: 24h)
Combine with Other Options
Disable Auth
Omit the--auth flag to create an open wormhole:
Public wormholes are accessible to anyone with the URL. Use basic auth for sensitive development work.
Related
- Session Configuration - Learn about expiry and policy settings
- CLI Reference - View all
wormkey httpoptions