
Product
PHP and Composer Support Is Now in Beta
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.
@essentialai/cogent-server
Advanced tools
Cloud relay server for Cogent bridge inter-session communication. Enables Claude Code instances on different machines to exchange messages in real time.
npm install @essentialai/cogent-server
Set environment variables (all optional with sensible defaults):
| Variable | Default | Description |
|---|---|---|
COGENT_SERVER_PORT | 3000 | HTTP server port |
COGENT_SERVER_DATA_DIR | ./data | Session data directory |
COGENT_SERVER_MAX_SESSIONS | 1000 | Maximum concurrent sessions |
COGENT_SERVER_MAX_MESSAGES | 500 | Messages per session |
COGENT_SERVER_MAX_PEERS | 10 | Peers per session |
COGENT_SERVER_SESSION_TTL_DAYS | 7 | Auto-cleanup inactive sessions |
COGENT_SERVER_WS_HEARTBEAT_MS | 30000 | WebSocket ping interval |
COGENT_SERVER_LOG_LEVEL | info | Log verbosity |
# Start the server
npx @essentialai/cogent-server
# Or with custom config
COGENT_SERVER_PORT=8080 npx @essentialai/cogent-server
docker build -t cogent-server .
docker run -p 3000:3000 -v ./data:/app/data cogent-server
A docker-compose.yml and nginx configuration example are included in the package.
| Method | Path | Auth | Description |
|---|---|---|---|
| POST | /api/sessions | No | Create a new session |
| POST | /api/sessions/:id/join | No | Join an existing session |
| GET | /api/sessions/resolve/:label | No | Resolve label to session ID |
| POST | /api/sessions/:id/peers | Yes | Register a peer |
| DELETE | /api/sessions/:id/peers/:peerId | Yes | Deregister a peer |
| GET | /api/sessions/:id/peers | Yes | List peers |
| POST | /api/sessions/:id/messages | Yes | Send a message |
| GET | /api/sessions/:id/messages | Yes | Get message history |
| GET | /api/sessions/:id/poll | Yes | Poll for new messages |
| GET | /api/health | No | Health check |
| GET | /ws | Yes | WebSocket connection |
The public instance runs at cogent.tools. For self-hosting, see the included Dockerfile, docker-compose.yml, Caddyfile, and nginx.conf.example.
Apache-2.0
FAQs
Cogent relay server with session management and bearer auth
The npm package @essentialai/cogent-server receives a total of 33 weekly downloads. As such, @essentialai/cogent-server popularity was classified as not popular.
We found that @essentialai/cogent-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.