| name | service-publishing |
| description | Use when exposing Worker services (web servers, APIs) to external access. |
Service Publishing
Expose Worker services for external access.
How It Works
Workers can run web servers or APIs as part of their tasks. The Manager can expose these services through the platform's gateway.
Commands
agenthub worker create --workspace <id> --name web-builder --runtime-base <openclaw|qwenpaw|copaw|opencode|claude-code|codex|gemini> --model <model-id>
Rules
- Port conflicts must be resolved before exposing services.
- Exposed services should have health checks.
- Clean up exposed services when the associated task completes.
- Security: exposed services should not contain sensitive credentials in their URLs.
Decision Pattern
- Confirm the Worker produced a running service and a health endpoint.
- Check port allocation, workspace, and security constraints.
- Ask the human before exposing anything outside local development.
- Register the service through Controller/gateway APIs when available.
- Post the service URL, health status, and cleanup policy to the room.