CloudShip Integration
Connect your Station to CloudShip for centralized management, OAuth authentication, and team collaboration.Why CloudShip?
| Feature | Standalone Station | With CloudShip |
|---|---|---|
| Management | Local only | Centralized dashboard |
| Authentication | Manual API keys | OAuth for team members |
| Collaboration | Single user | Organization-wide access |
| Audit Trail | Local logs | Centralized tracking |
Quick Setup
1. Get a Registration Key
From your CloudShip dashboard:- Go to Settings > Stations
- Click Create Registration Key
- Copy the key
2. Configure Station
Add to yourconfig.yaml:
3. Start Station
Authentication Methods
Interactive Login
Registration Key (Automated)
For automated deployments, use a registration key in config:Check Status
OAuth for MCP Access
When CloudShip OAuth is enabled, MCP clients authenticate through CloudShip before accessing your Station’s agents.Who Can Access?
Only users who:- Have a CloudShip account
- Are members of your organization
- Successfully authenticate via OAuth
Enable OAuth
- Create an OAuth App in CloudShip (Settings > OAuth Apps)
- Configure Station:
- Invite team members to your CloudShip organization
How OAuth Works
- MCP client sends request to Station
- Station returns 401 with
WWW-Authenticateheader containing OAuth metadata URL - Client discovers CloudShip’s authorization server endpoints
- User logs in via browser, authorizes access
- Client exchanges authorization code for access token
- Client retries request with Bearer token
- Station validates token with CloudShip, returns MCP response
MCP Client Configuration
Point your MCP client to port 8587 (Dynamic Agent MCP):- Client receives 401 with OAuth discovery URL
- Browser opens for CloudShip login
- After authentication, client automatically retries with token
Configuration Reference
Development Setup
Local Development (No CloudShip)
Local Lighthouse (Testing)
For testing CloudShip integration locally:Production CloudShip (Recommended)
Multi-Station Management
Naming Stations
Each Station needs a unique name within your organization:Filtering by Tags
In CloudShip dashboard, filter Stations by tags to manage specific environments.Security
Registration Keys
- Keep registration keys secret
- Rotate keys periodically
- Use different keys for different environments
OAuth Tokens
- Validated on every MCP request
- PKCE required (S256 code challenge)
- Cached for 5 minutes to reduce introspection calls
Audit Trail
CloudShip logs all:- Station connections/disconnections
- Agent executions triggered via MCP
- OAuth authentications
- Configuration changes
Troubleshooting
Connection Failed
- Registration key is valid
- Network allows outbound to
lighthouse.cloudshipai.com:443 - TLS is properly configured
OAuth 401 Errors
- OAuth is enabled in config
- Client ID is correct
- User is member of organization
Token Expired
Tokens auto-refresh. If issues persist:Next Steps
- Authentication - All auth options
- Deployment - Production setup
- Observability - Centralized tracing

