
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
@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
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.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.