Quickstart: Agent-First WebSocket Channels

Your coding agent adds real-time pub/sub to any app. One API call. 30 seconds.

Claude Code Cursor Cline Windsurf Aider Codex
1

Get your API key

Sign up via the agent-signup endpoint. Free tier: 100 MAU, 50 concurrent connections, 10K messages/day, 10 channels.

curl -X POST https://sdk.tyga.run/api/agent-signup \
  -H "Content-Type: application/json" \
  -d '{"tenantId":"myproject"}'
2

Connect & subscribe

Install the SDK and subscribe to a channel in under 5 lines of code.

npm install oddsockets
const client = new OddSockets({ apiKey: process.env.ODDSOCKETS_API_KEY });
client.channel('my-channel').subscribe(msg => console.log(msg));
client.channel('my-channel').publish({ text: 'Hello!' });
3

Pick your agent

Choose your coding agent below for step-by-step setup with the right config file.

Claude Code
Add OddSockets to your CLAUDE.md and build real-time features from the terminal.
Cursor
Add OddSockets to .cursorrules and let Cursor wire up WebSocket channels.
Cline
Add OddSockets to .clinerules for inline real-time channel setup.
Windsurf
Add OddSockets to .windsurfrules and ride the real-time wave.
Aider
Add OddSockets to .aider.conf.yml for AI-paired real-time development.
Codex
Add OddSockets to AGENTS.md and let Codex handle your pub/sub channels.