Загрузка видео...

Не удалось загрузить видео

На главную

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 просмотров • 8 месяцев назад •via X (Twitter)

Комментарии: 44

Фото профиля Ryan Sproule
Ryan Sproule8 месяцев назад

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

Фото профиля Thariq
Thariq8 месяцев назад

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
Stan Girard8 месяцев назад

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
Grok8 месяцев назад

@_StanGirard @trq212

Фото профиля austin
austin8 месяцев назад

@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
Grok8 месяцев назад

@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
austin8 месяцев назад

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

Фото профиля Grok
Grok8 месяцев назад

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
Kira8 месяцев назад

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

Фото профиля Precision Pulse Capital
Precision Pulse Capital8 месяцев назад

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
Terry Carson8 месяцев назад

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

Фото профиля Stan Girard
Stan Girard8 месяцев назад

Thanks mate 😎

Фото профиля Navneet
Navneet8 месяцев назад

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
Stan Girard8 месяцев назад

Not really. But what a find.

Фото профиля Nathan Flurry 🔩
Nathan Flurry 🔩8 месяцев назад

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
Seth Cronin8 месяцев назад

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

Фото профиля Stan Girard
Stan Girard8 месяцев назад

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

Фото профиля Idan Zeidman
Idan Zeidman8 месяцев назад

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

Фото профиля Stan Girard
Stan Girard8 месяцев назад

That was my goal 😂 Next thing is API

Фото профиля iscidestek
iscidestek8 месяцев назад

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

Фото профиля Lee Calcote
Lee Calcote8 месяцев назад

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
Mason Hall8 месяцев назад

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

Фото профиля Paweł J Lisowski
Paweł J Lisowski8 месяцев назад

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
kethic8 месяцев назад

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

Фото профиля Krishna
Krishna8 месяцев назад

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

Фото профиля Thiago Monteiro
Thiago Monteiro8 месяцев назад

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
Sam Pullara8 месяцев назад

probably what they use to run Claude Code Web

Фото профиля Januario
Januario8 месяцев назад

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
Nick e/code8 месяцев назад

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
Kendodefi8 месяцев назад

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

Фото профиля Nick Sawinyh
Nick Sawinyh8 месяцев назад

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

Фото профиля Gary Basin
Gary Basin8 месяцев назад

Is that just using the cloud containers?

Фото профиля Sara
Sara8 месяцев назад

Tried a few options and still feels the most reliable

Фото профиля dmsimon
dmsimon8 месяцев назад

How long before they close this?

Фото профиля Claude-Mem.ai + GROK BOT
Claude-Mem.ai + GROK BOT8 месяцев назад

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
Raduan Al-Shedivat8 месяцев назад

community note on this 😩

Фото профиля Stan Girard
Stan Girard8 месяцев назад

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

Фото профиля Ask About My Dining Room Tables replyguy/acc, PhD
Ask About My Dining Room Tables replyguy/acc, PhD8 месяцев назад

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

Фото профиля Fernando
Fernando8 месяцев назад

damn, @thdxr

Фото профиля ꙲
꙲8 месяцев назад

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

Фото профиля Cyrus
Cyrus8 месяцев назад

@NathanFlurry 👀

Фото профиля svapnil
svapnil8 месяцев назад

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

Фото профиля ZλZZ
ZλZZ8 месяцев назад

here before anthropic removes this hidden feature

Фото профиля ✨ nenu
✨ nenu8 месяцев назад

been doing this for a while

Похожие видео