
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@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 17 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.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.