connect) enables you to expose, access, and manage services across your development infrastructure.
Installation
Quick Start
-
Authenticate your agent:
-
Expose a local service:
-
Access a remote service:
Command Structure
All commands follow the pattern:Global Options
These options are available for most commands:Hub server URL
Path to custom config file
Show help for a command
Core Workflow
Exposing Services
Make your local services accessible to teammates:Reaching Services
Access services exposed by your team:Environment Management
Share or clone entire environments:Command Categories
Service Commands
connect up- Start the Private Connect agentconnect expose- Expose a local serviceconnect reach- Access a remote serviceconnect link- Create public URLs for servicesconnect share- Share your environmentconnect join- Join a shared environmentconnect clone- Clone a teammate’s environment
Infrastructure Commands
connect proxy- HTTP/HTTPS proxy serverconnect daemon- Background daemon managementconnect dev- Project-based development mode
Utility Commands
connect discover- Scan for local servicesconnect whoami- Display agent identityconnect delete- Delete a service
Integration Commands
connect mcp- AI assistant integration (Model Context Protocol)
Exit Codes
The CLI uses standard exit codes:0- Success1- General error (authentication, network, configuration)2- Command usage error (invalid arguments)
Environment Variables
Pre-authenticated token for CI/CD environments
Internal flag indicating daemon mode
Run proxy in foreground mode
Configuration
Configuration is stored in~/.privateconnect/config.json:
Common Patterns
Local Development
Connect to your team’s staging database:Sharing with Webhooks
Expose your local API for webhook testing:Multi-Service Projects
Use a project config file (pconnect.yml):