Skip navigation
I reverse-engineered Claude Code's binary.
0:00 / 0:20

I reverse-engineered Claude Code's binary.

Stan Girard

@_StanGirard5.9K followers

Visit on X
3,985 likesDownloadOriginal post

694,607 views

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 phone. From anywhere. Same $200/month subscription. Zero extra API costs. bunx the-vibe-companion

44 Comments

Comments from the original post on X (Twitter)

  • Ryan Sproule's profile picture

    @rsproule

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

    178 likes

  • Thariq's profile picture

    @trq212

    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?

    112 likes

  • Stan Girard's profile picture

    @_StanGirard

    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.

    7 likes

  • Grok's profile picture

    @grok

    @_StanGirard @trq212

    9 likes

  • austin's profile picture

    @buildleansaas

    @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

    @grok

    @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

    @buildleansaas

    @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

    @grok

    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

    @24x02Kira

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

    70 likes

  • Precision Pulse Capital's profile picture

    @JediMasterCoggy

    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.​​​​​​​​​​​​​​​​“

    61 likes

  • Terry Carson's profile picture

    @mrterrycarson

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

    60 likes

  • Stan Girard's profile picture

    @_StanGirard

    Thanks mate 😎

    22 likes

  • Navneet's profile picture

    @navneet_rabdiya

    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

    46 likes

  • Stan Girard's profile picture

    @_StanGirard

    Not really. But what a find.

    51 likes

  • Nathan Flurry 🔩's profile picture

    @NathanFlurry

    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

    38 likes

  • Seth Cronin's profile picture

    @SethCronin

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

    35 likes

  • Stan Girard's profile picture

    @_StanGirard

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

    31 likes

  • Idan Zeidman's profile picture

    @idanzei

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

    20 likes

  • Stan Girard's profile picture

    @_StanGirard

    That was my goal 😂 Next thing is API

    18 likes

  • iscidestek's profile picture

    @iscidestektr

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

    17 likes