Claude Code

OddSockets + Claude Code

Add real-time WebSocket channels to your Claude Code workflow. 30 seconds.

Claude Code Cursor Cline Windsurf Aider Codex Remote MCP
1

Get your API key

Sign up with the OddSockets CLI — it wraps signup, billing and keys for you. Your key works immediately, capped at 10,000 messages, 25 channels and 25 connections. Add a card within 48 hours to start your 7-day free trial.

npx oddsockets signup myproject --email you@example.com

Add to your .env

ODDSOCKETS_API_KEY=your_api_key_here
2

Install the SDK

Install the Node.js SDK for server-side real-time channels.

npm install oddsockets-js
3

Add to CLAUDE.md

Add the following to your project's CLAUDE.md so Claude Code knows how to use OddSockets real-time channels.

# OddSockets Integration

Real-time WebSocket channels via OddSockets SDK. Auth: API key from env.

## Connect
const client = new OddSockets({ apiKey: process.env.ODDSOCKETS_API_KEY });

## Subscribe to a channel
client.channel('my-channel').subscribe(msg => console.log(msg));

## Publish to a channel
client.channel('my-channel').publish({ text: 'Hello!' });

## Presence (who's online)
client.channel('my-channel').presence();

## REST API
- List keys: oddsockets keys
- Plan and usage: oddsockets plan --email you@example.com
- Cluster status: oddsockets status

## Infrastructure
- Manager: https://connect.oddsockets.tyga.network
- Workers: wss://worker1-1.oddsockets.tyga.network, wss://worker1-2.oddsockets.tyga.network
- Dashboard: https://oddsockets.com/developer-dashboard
- Docs: https://docs.oddsockets.com
4

Use it

Ask Claude Code to work with real-time channels. Try these prompts:

5

All 19 SDKs available

OddSockets has SDKs for every major language and framework.

JavaScript
Node.js
Python
Go
Java
Rust
C#
Kotlin
Swift
Flutter
PHP
React Native
Ruby
Elixir
Svelte
C
C++
Unity
Unreal Engine