Sitemap
Saurabh Sarkar

Saurabh Sarkar

Still learning to write; that's why human is the slowest species.

๐— ๐˜† ๐—ฅ๐—ฎ๐—ฏ๐—ฏ๐—ถ๐˜ ๐—ฅ๐Ÿญ ๐—ต๐—ฎ๐—ฑ ๐—ฏ๐—ฒ๐—ฐ๐—ผ๐—บ๐—ฒ ๐—ฎ ๐—ฑ๐—ฟ๐—ฎ๐˜„๐—ฒ๐—ฟ ๐—ผ๐—ฟ๐—ป๐—ฎ๐—บ๐—ฒ๐—ป๐˜. ๐—ง๐—ต๐—ถ๐˜€ ๐˜„๐—ฒ๐—ฒ๐—ธ๐—ฒ๐—ป๐—ฑ ๐—œ ๐—ด๐—ฎ๐˜ƒ๐—ฒ ๐—ถ๐˜ ๐—ฎ ๐—ฟ๐—ฒ๐—ฎ๐—น ๐—ท๐—ผ๐—ฏ

2 min readJul 2, 2026

rabbit inc. recently shipped a way to connect the R1 to OpenClaw, so the device can talk to an agent gateway instead of just the stock assistant:
https://www.rabbit.tech/blog/connect-your-r1-to-openclaw

Cool idea โ€” but two things got in my way:

1. The R1 only speaks the OpenClaw โ€œclawdbot-gatewayโ€ protocol.
2. That path leans on provider API keys. I donโ€™t live in API keys โ€” I live in Claude Code (Anthropic) and Codex (OpenAI) every day, signed in with my normal subscriptions (OAuth/login, e.g. OpenAI), not raw keys.

So instead of fighting it, I leaned into it.

I wrote a small WebSocket shim that impersonates an OpenClaw gateway. The R1 thinks itโ€™s talking to OpenClaw โ€” but every push-to-talk turn actually gets routed to whatever agent is running on my server (an Apple Mac Mini M4 sitting on my desk):

R1 โ†’ Wi-Fi โ†’ shim on the Mac Mini โ†’ local Claude Code / Codex CLI โ†’ answer streamed back to the R1 screen.

Get Saurabh Sarkarโ€™s stories inย yourย inbox

Join Medium for free to get updates fromย thisย writer.

The nice part: it reuses the CLIโ€™s own auth, so it just works with my Claude and Codex logins. No API key juggling. The R1 becomes a dedicated hardware push-to-talk remote for the coding agents I already use.

Bonus gotcha for anyone trying the official path: current OpenClaw floors its gateway at protocol v4, but shipped R1 firmware only speaks v3 โ€” so a fresh gateway rejects the very device itโ€™s meant to serve (โ€œgateway unreachableโ€). My shim negotiates down to v3, and I documented the downgrade fix for the official route too.

Open-sourced it (MIT), Claude Code + Codex backends included:
https://github.com/sarkarsaurabh27/rabbit-r1-hooks ๐Ÿค–

Repurposing hardware you already own > buying more hardware. Finally using my Rabbit R1 for something. ๐Ÿ‡

#rabbitr1 #claudecode #codex #aitools #opensource #buildinpublic #hackathon

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size

--

--

Saurabh Sarkar
Saurabh Sarkar

Written by Saurabh Sarkar

Still learning to write; that's why human is the slowest species.