Repository navigation
Port and Service Map
Canonical source:
context/port-and-service-map.md— this page is rendered from it on every publish; edit the source.
Review when a service port constant or Compose host port changes. Last verified: 2026-10-04.
The canonical port table. Ground truth: .ai/manifests/ports.json (the 18
*_SERVICE_PORT constants in @claw/shared-constants) and
.ai/manifests/services.json (per-service port + portSource).
| Service | Port | Port source | DB |
|---|---|---|---|
| frontend | 3000 | env (FRONTEND_PORT) |
— |
| auth | 4001 | shared-constants | Postgres |
| chat | 4002 | shared-constants | Postgres |
| connector | 4003 | shared-constants | Postgres |
| routing | 4004 | shared-constants | Postgres |
| memory | 4005 | shared-constants | Postgres |
| file | 4006 | shared-constants | Postgres |
| audit | 4007 | shared-constants | Mongo |
| ollama | 4008 | shared-constants | Postgres |
| health | 4009 | shared-constants | none |
| prometheus | 9090 | image only, never published | own TSDB volume |
| grafana | 3000 | image only, never published | own volume (dashboards are code) |
| client-logs | 4010 | env-only (CLIENT_LOGS_PORT) |
Mongo |
| server-logs | 4011 | env-only (SERVER_LOGS_PORT) |
Mongo |
| image | 4012 | shared-constants | Postgres |
| file-generation | 4013 | shared-constants | Postgres |
| workspace | 4014 | shared-constants | Postgres |
| agent | 4015 | shared-constants | Postgres |
| research | 4016 | shared-constants | Postgres |
| llamacpp | 4017 | shared-constants | Postgres (Debian base) |
| payment | 4018 | shared-constants | Postgres |
| threads | 4019 | shared-constants | none (health-only foundation) |
| thread-generation | 4020 | shared-constants | PostgreSQL (claw_thread_generation) |
| plugin | 4021 | shared-constants | PostgreSQL (claw_plugin) |
Backend services occupy 4001–4021 contiguously, except the existing client-logs/server-logs env-only ports 4010–4011. New services continue at 4022.
client-logs-service (4010) and server-logs-service (4011) have NO
*_SERVICE_PORT constant in @claw/shared-constants. Their port is defined
only by the env vars CLIENT_LOGS_PORT / SERVER_LOGS_PORT. This is a real,
audited gap — the inventory audit reports it as portCoverageGaps /
service-without-port-constant (severity: medium), and services.json records
"port": null, "portSource": "env-only (no constant)" for both.
Consequences and cautions:
- The canonical port catalog in
@claw/shared-constantslists 16 services, not 18. Any code that iterates the port constants will miss these two. - nginx still routes them (
/api/v1/client-logs→ 4010,/api/v1/server-logs→ 4011, fromnginx-routes.json) because those ports are hard-configured, not read from the constant. - If you standardize ports, add
CLIENT_LOGS_SERVICE_PORTandSERVER_LOGS_SERVICE_PORTto@claw/shared-constantsand update the two services to read them — closing the gap. Until then, treat 4010/4011 as env-only and never assume a constant exists.
- Full gateway route table → request-flow-map.md and
.ai/manifests/nginx-routes.json. - DB ownership per port → database-ownership-map.md.
- Port env vars and propagation → environment-ownership-map.md.
ClawAI Wiki · source-controlled under wiki/ · generated/mirrored from the current repository knowledge layer.
ClawAI Wiki
Product
- Product-Vision
- Flagship-Features
- Business-Overview
- Requirements-Register
- Drift-Log
- Runtime-Managed-Connector-Providers
- Threads
- ADR-Index
Architecture
- System-at-a-Glance
- Architecture-Map
- System-Architecture
- Message-Flow
- End-to-End-Data-Flow
- Routing-Engine
- Event-Bus
- Security-Architecture
Platform
- Backend-Services
- Frontend-Architecture
- Shared-Packages
- Database-Reference
- API-Reference
- Provider-Catalog
- Memory-and-Context-Architecture
- File-Support-Architecture
- Research-and-Web-Crawling
Runtime & Ops
- Docker-Guide
- Nginx-Reference
- CI-CD-Pipeline
- Logging-and-Observability
- Operational-Runbooks
- Troubleshooting
Quality
Engineering OS
- AI-Native-Engineering-OS
- Generated-Manifests
- Rules-Catalog
- Skills-Catalog
- Context-Layer
- Engineering-Memory
- Tooling-and-Automation
- Scripts-and-Operations
- ESLint-and-Architecture-Enforcement
- Extended-Work-Skills
Agents
Reference