A static outbound IP for Claude Code on Grok Bot's cloud computer
Overview
To call Claude Code from Grok Bot, especially on mobile, the author says changing outbound IPs can destabilize account access. The proposed fix is to sign in and buy a static US IP.
Workflow
- Trigger: The cloud computer's IP changes. Connecting Claude Code from Grok Bot is straightforward, but the cloud computer's outbound IP is dynamic and changes can make the account unstable. The proposed sequence is Claude account and plan, Claude Code sign-in on the Grok Bot cloud computer, then fixed outbound IP. Once set, call it from mobile too. The primary Grok Bot is enough, mainly for its cloud computer and browser.
- By hand: Prepare an account and plan. Free does not include Claude Code. Start at Pro ($20 monthly or about $17 per month billed annually), Max ($100), or Ultra ($200). The author suggests trying Pro for a few days before upgrading instead of starting at Ultra.
- Bot: Sign in to Claude Code on the cloud computer (the author's wording). Tell the primary bot the following.
Meaning: Create a Claude Code bot and sign in to my Claude Code account with the cloud computer's CLI.
帮我新建一个 Claude Code bot,并通过云电脑的 CLI 登录我的 Claude Code 账号。
It usually starts Claude Code in the cloud terminal. The first sign-in opens a browser page. Enter the account, password, and code yourself. After sign-in, Claude Code can handle work such as coding and editing, but the IP can still change and access may be unstable.
- By hand: Fix the outbound IP (the author's main step). The common approach is buying a static US IP. Choose US on SwiftProxy's static ISP proxy page, listed at about $6 per IP per month with unlimited traffic. Save the hostname, port, username, and password from the dashboard. Sign in to SwiftProxy in the Grok Bot cloud browser and send the official setup docs to the primary bot to configure the static IP. Then require Claude Code to use that route. The author believes sign-in makes it usable and the fixed IP reduces problems from addresses changing.
- By hand: Know the pitfalls. Continued stability is not guaranteed. Start with Pro instead of $200 Ultra and avoid heavy 24-hour operation. Some think 3–4 hours daily is more stable. If Claude Code is already installed locally, Grok Bot can also call it directly while the computer is on. Check four things after setup: Claude Code is signed in, the outbound IP is the US static IP purchased, Claude Code is restricted to that route, and mobile can call it.
- Bot: Send the complete example to the agent. Meaning: Set up Claude Code on the cloud computer rather than only giving a tutorial. Make a Claude Code bot, sign in from the cloud CLI, configure a US static IP in SwiftProxy using official docs, and require Claude Code to use that route.
请帮我在你的云电脑里接入 Claude Code,不要只给我教程。 请完成:
- 新建一个 Claude Code bot
- 通过云电脑 CLI 登录我的 Claude Code 账号
- 打开 SwiftProxy,帮我按美国地区配置一个静态 IP
- 配置时请参考官方文档,并限定 Claude Code 必须走这条线路
需要登录、密码、验证码、付款或者授权时,让我本人操作,其他步骤请直接完成。 配好以后,请检查:
- Claude Code 是否已经登录
- 出口 IP 是否已经固定
- 是否已经限定 Claude Code 只走这条线路
- 手机端是否也能正常调用
如果过程中遇到报错,请继续排查并修复,不要只告诉我解决方法,直到可以稳定调用。
- Check: The source has no results from the author's own run. Readers can check the four items from step 5: sign-in, outbound IP, route restriction, and mobile operation. Ask the agent to keep fixing errors until calls are stable. Platforms have different account and sign-in rules, so the author does not guarantee continued stability.
Key points and results
- Changing outbound IPs are the reported cause of instability. The tutorial's main sequence is to sign in, then make the IP static.
- A static IP is about $6 per month. SwiftProxy's static US ISP proxy has unlimited traffic. Have the primary bot configure it from official docs and require Claude Code to use only that route.
- Free does not include Claude Code. Pro starts at $20 monthly or about $17 monthly on annual billing. The author recommends trying Pro first and has not verified claims that 3–4 hours a day is more stable than continuous use.
- A local install can stay local. Grok Bot can call local commands when the computer is on.
Source
- Platform
- X
- Author
- YuChen 大王
- Published
- Categories
- Code and repos, Getting started
What this evidence label means
Source read in full
We read the source (post, article or transcript). That only means the original was read. It does not mean this site reproduced the author's results.