Direct answer
Yes. Git, SSH keys and the command-line tools of the various code platforms all work normally. We suggest generating a separate key for this machine and limiting its permissions; whether company code may go on it is a question for your organization first.
Basis
- Clone and push are both connections initiated outward from the machine. They need no inbound port, and the network as delivered is enough.
- Generate the key fresh on this machine; do not copy over the private key from your local computer. Then, when the rental ends or you suspect a leak, you only have to delete this one key on the code platform.
- Most code platforms support deploy keys that apply to a single repository, or access tokens that can be limited by repository and expiry. The narrower the credentials you give Claude Code, the better.
- The platform runs necessary operational and security monitoring, which sees information such as processes and network connections. It does not record screen content or the content of business data, and does not proactively access what is on the device.
Boundaries: when the answer is different
If your company's repositories only accept access from registered fixed addresses, this is probably not the right fit: the exit is not a fixed address and may be shared with other machines, so putting it on an allowlist is both unstable and equivalent to letting in every other machine on the same exit. For confidential code or code under compliance constraints, whether it may be placed on a device provided by a third party is for your organization to judge; we do not make that call for you. After the rental ends the whole machine is wiped and reinstalled, but keys and tokens left on the code platform do not expire on their own. You have to revoke them yourself.
How to do it
- Run
ssh-keygen -t ed25519 -C "remote-mac"to generate a new key, and set a passphrase. - Add the public key to the code platform, preferring a single-repository deploy key.
- Test connectivity with
ssh -T, then clone the repository. - Set the commit name and email at the repository level so they do not get mixed up with other projects.
- Before the rental ends, delete this key and all tokens on the code platform, then sign out of each account.
Related questions
- Remote Mac mini for heavy Claude Code use: an always-on workstation, not account insurance
- Can the rental provider see the code on my machine?
- Is the network exit on my rented Mac mini used only by me?
- Do I need to back up the data on a remote Mac mini myself?
- Can I install Node, Homebrew and Docker on a rented Mac mini myself?
Use case
This question belongs to the use case: Remote Mac mini for heavy Claude Code use: an always-on workstation, not account insurance
Other questions in the same use case:
- Can several people on a team share one remote Mac mini?
- Do I have to sign in with an Apple ID to run Claude Code on a remote Mac mini?
- Can I schedule Claude Code to run unattended (headless) on a remote Mac mini?
- Can Claude Code build iOS apps and run the simulator on a remote Mac mini?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support