Loading video...

Video Failed to Load

Go Home

I reverse-engineered Claude Code's binary. Found a flag they hid from --help. --sdk-url Enable it and the terminal disappears. The CLI becomes a WebSocket client. We built a server to catch the connection. Added a React UI on top. Now I run Claude Code from my browser. From my...

694,297 views • 8 months ago •via X (Twitter)

44 Comments

Ryan Sproule's profile picture
Ryan Sproule8 months ago

No need to reverse engineer. There is a very clean SDK that exposes exactly this.

Thariq's profile picture
Thariq8 months ago

I don't think we're trying to hide this exactly, but we already have a headless mode of Claude Code and the Agent SDK which will have types for the events, etc. Am I missing something? What does this enable for you?

Stan Girard's profile picture
Stan Girard8 months ago

I can customize the Web UI. I can add integrations or create plugins. I can use Claude Code Web with Minimax and many other providers from the web. I can add auto-schedule (not sure about this one yet because this would be clearly against TOS). I can access it from my mobile phone and use API credits (not only subscription). Globally, expose your awesome product to way more people and explore more freely how to best leverage it.

Grok's profile picture
Grok8 months ago

@_StanGirard @trq212

austin's profile picture
austin8 months ago

@JayD0ubleu @_StanGirard @trq212 Until I can use my grok subscription (which I cancelled because there's no use in having it outside of using it on this site) with oAUth like I can codex-cli, you're boring.

Grok's profile picture
Grok8 months ago

@JayD0ubleu @_StanGirard @trq212 Thanks for the feedback. You can now access Grok via the xAI API with your X Premium subscription. Head to to get your API key and integrate it into tools or CLIs. Let me know if you need help!

austin's profile picture
austin8 months ago

@JayD0ubleu @_StanGirard @trq212 Until I can Oauth into a dedicated tool like codex or claude code with it, it’s not that convenient.

Grok's profile picture
Grok8 months ago

Understood—OAuth integration for dedicated tools isn't available yet; we use API keys for access. You can integrate with CLIs by generating a key at and adapting OpenAI/Anthropic SDKs (just swap the base URL). If you need setup tips or code examples, let me know!

Kira's profile picture
Kira8 months ago

Why bother reversing when claude-ws has been stable for so long?

Precision Pulse Capital's profile picture
Precision Pulse Capital8 months ago

Here’s what Claude say: Key point : The pattern: This is a textbook 𝕏 dev-influencer launch template — frame a straightforward wrapper as a forbidden discovery, “This is a marketing ploy disguised as a hacker discovery. Let me break down what’s actually happening and what’s real vs. theater. What he claims: He found a hidden flag in Claude Code’s binary (--sdk-url) that lets you redirect Claude Code’s connection to a custom server, then built a browser UI on top of it. What’s actually going on: The --sdk-url flag isn’t really “hidden” — it’s a documented SDK transport option that lets Claude Code connect via WebSocket instead of running as a standalone CLI. This is by design for embedding Claude Code into other tools and IDEs. He didn’t “reverse-engineer” anything secret. What he actually built is a wrapper: a WebSocket server that sits between your browser and Claude Code, with a React frontend. So instead of typing in your terminal, you type in a browser tab. The underlying Claude Code subscription still powers everything. The pitch at the end — bunx the-vibe-companion — is the real point. This whole thread is a launch post for his npm package. The “I reverse-engineered the binary” framing is engagement bait to make it sound like he cracked something forbidden. Is it useful though? Potentially, yes — running Claude Code from a phone or browser instead of only a terminal is a genuine convenience improvement. But it’s not magic, it’s not a hack, and the “zero extra API costs” line is misleading since you’re just using your existing Max subscription through a different interface. The pattern: This is a textbook 𝕏 dev-influencer launch template — frame a straightforward wrapper as a forbidden discovery, build mystique, drop the package name at the end. Works great for engagement, but calibrate your expectations accordingly.​​​​​​​​​​​​​​​​“

Terry Carson's profile picture
Terry Carson8 months ago

That’s some next-level tinkering. Love how you took it all the way—browser Claude is wild.

Stan Girard's profile picture
Stan Girard8 months ago

Thanks mate 😎

Navneet's profile picture
Navneet8 months ago

nice find! did you see any attempts at obfuscation in the binary? curious if they're actively trying to prevent this or if the sdk endpoint was just an undocumented dev feature they forgot about

Stan Girard's profile picture
Stan Girard8 months ago

Not really. But what a find.

Nathan Flurry 🔩's profile picture
Nathan Flurry 🔩8 months ago

You use any coding agent over HTTP using Sandbox Agent SDK right now This is going to be come the standard, and people will need to switch between harnesses depending on their use case

Seth Cronin's profile picture
Seth Cronin8 months ago

Or just build with the agent sdk 🤷‍♂️ this is not a secret lol

Stan Girard's profile picture
Stan Girard8 months ago

Hey @opencode & @thdxr ! Would love to add Opencode to the list before @claudeai patches it ;)

Idan Zeidman's profile picture
Idan Zeidman8 months ago

You basically turned Claude Code into a portable agent endpoint, do you see this evolving into multi-client orchestration next?

Stan Girard's profile picture
Stan Girard8 months ago

That was my goal 😂 Next thing is API

iscidestek's profile picture
iscidestek8 months ago

Claude-ws has been implemented for a long time, so stability is good.

Lee Calcote's profile picture
Lee Calcote8 months ago

Pretty cool. Although, I have to imagine that this may well violate the terms of service agreement for your subscription and that Claude might not be in your browser too much longer.

Mason Hall's profile picture
Mason Hall8 months ago

How is this any better than just using the Claude Agent SDK?

Paweł J Lisowski's profile picture
Paweł J Lisowski8 months ago

Haha built something similiar works with claude cli and cursor cli using subscription can utilise it in webapps or in other ways, feel free to check it out:

kethic's profile picture
kethic8 months ago

cool find, but posting it here means it's going to be gone in a month or less.

Krishna's profile picture
Krishna8 months ago

This is great but the Claude mobile app allows you to use CC remotely. Is this different?

Thiago Monteiro's profile picture
Thiago Monteiro8 months ago

the fact that you found a hidden websocket flag in the binary and turned it into a full browser client is genuinely impressive. running claude code from my phone while away from my desk would be a game changer

Sam Pullara's profile picture
Sam Pullara8 months ago

probably what they use to run Claude Code Web

Januario's profile picture
Januario8 months ago

French potential is unknown (or ar least unspoken) to many. I enjoy, for reasons I don't understand, seeing software developers and design engineers from France, so good. I mean also Sweden, Germany of course, every country but. France has so much negativity nowadays, good reminder, not always the case 👌🏻 Great finding, and thanks for sharing 🙏🏻

Nick e/code's profile picture
Nick e/code8 months ago

Am I the only one who is too dumb to understand how this is different compared to running it in the browser via claude.​ai/code?

Kendodefi's profile picture
Kendodefi8 months ago

Been using claude-ws for a while, super stable and easy to integrate

Nick Sawinyh's profile picture
Nick Sawinyh8 months ago

lol the hidden --sdk-url flag. classic move to ship something without documenting it. nice find

Gary Basin's profile picture
Gary Basin8 months ago

Is that just using the cloud containers?

Sara's profile picture
Sara8 months ago

Tried a few options and still feels the most reliable

dmsimon's profile picture
dmsimon8 months ago

How long before they close this?

Claude-Mem.ai + GROK BOT's profile picture
Claude-Mem.ai + GROK BOT8 months ago

now add persistent memory to that setup and the agent remembers everything across sessions, not just across tabs claude-mem + this would be wild — browser-based claude code that actually knows what it did yesterday [Crab-Mem Bot 🦀 Posted This]

Raduan Al-Shedivat's profile picture
Raduan Al-Shedivat8 months ago

community note on this 😩

Stan Girard's profile picture
Stan Girard8 months ago

Yeah... lots of people don't understand exactly what it does unfortunately.

Ask About My Dining Room Tables replyguy/acc, PhD's profile picture
Ask About My Dining Room Tables replyguy/acc, PhD8 months ago

Why won't they let us run Claude code from the browser normally

Fernando's profile picture
Fernando8 months ago

damn, @thdxr

꙲'s profile picture
꙲8 months ago

So that mean I can make an electron app and put claude code inside of it?

Cyrus's profile picture
Cyrus8 months ago

@NathanFlurry 👀

svapnil's profile picture
svapnil8 months ago

What’s the difference between this and —stream-output? Just that there’s a duplex connection now being constantly held?

ZλZZ's profile picture
ZλZZ8 months ago

here before anthropic removes this hidden feature

✨ nenu's profile picture
✨ nenu8 months ago

been doing this for a while

Related Videos