What this guide covers
When you finish, running claude in the remote Mac's terminal opens a session, and you know how it updates and where credentials are kept. You need: a Claude account that meets the official requirements, and access to the browser inside the remote desktop.
Steps
Choose an install method: the native install updates itself
The official setup docs recommend the native install:
curl -fsSL https://claude.ai/install.sh | bashIt installs under your user directory, needs no administrator password and updates automatically in the background. You can also use
brew install --cask claude-code, but the docs state that the Homebrew method does not auto-update by default, so you have to runbrew upgrade claude-codeyourself. For a long rental where you do not want to think about upgrades, choose the native install.Confirm it installed
The install command shows no progress while downloading. When it finishes, open a new terminal window and run
claude --version. If the command is not found, the install directory is most likely not on PATH yet; follow the official troubleshooting page.claude doctorprints a read-only diagnosis of the installation and configuration, and it is the first thing to check if an update goes wrong later.Complete the login inside the remote desktop
Go into your project directory and run
claude. The first run opens a browser for you to log in. This browser opens on the remote Mac, so do this step in the remote desktop view and do not look for it in your local browser. If no browser appears, the official method is to presscto copy the login link and paste it into the remote Mac's browser. When the page gives you a code, paste it back into the terminal. The login is complete only when the terminal showsLogin successful. Use your own account. The account types the vendor requires are listed in the authentication docs.Know where the credentials are stored
The official docs state that on macOS the login credentials are saved in the keychain. When the keychain cannot be written to (for example, when you log in from an SSH session where the keychain is locked), they are stored in
~/.claude/.credentials.jsoninstead. On a rented machine this means: do the first login in the graphical session of the remote desktop where possible, and after the machine restarts, log in to the desktop once so the keychain unlocks before you start any job that depends on it.Put the session in tmux
Claude Code runs in a terminal, and the session ends when the terminal window closes. Run
tmux new -s ccfirst and startclaudeinside it. The task carries on after you disconnect the remote desktop, andtmux attach -t ccbrings you back to it next time. For background, see whether a long task survives a disconnect.Check how long the login is valid before leaving it unattended
The official docs mention that when the login is close to expiring, startup prompts you to renew with
/login. Once it has expired, requests fail until you log in again./statusshows which kind of credential is in use. Nobody clicks the browser for you while you are away, so before letting it run for several days, check whether there is an expiry warning. IfANTHROPIC_API_KEYis still set in the environment, it takes priority over the subscription login, and the billing may not be what you expected.Log out before the rental ends
Type
/logoutin Claude Code to log out. Then follow the official uninstall instructions to decide whether to delete config directories such as~/.claude(they hold session history and settings, so back up anything you need first). Like signing out of browsers and your Apple account, this is something you do yourself before handing the machine back.
FAQ
Will my account get restricted if I use Claude Code on this machine?
What we provide is a stable, compliant working environment located in the United States. We make no promise about the status of third-party accounts. Whether an account is restricted depends on the provider's rules, payment and how it is used. See this explanation.
Can several people share one Claude account on the machine?
No. The terms of use prohibit several people sharing one subscription account, and they also prohibit turning a subscription into an outward-facing API or reselling it. A seat is for the named user only.
Will an automatic update interrupt a running session?
The docs say updates are downloaded and installed in the background and take effect the next time Claude Code starts. To control the pace, you can switch to the stable channel or turn off auto-updates as described in the official docs.
Do I have to use a remote desktop? Can I use SSH only?
The connection methods we provide are UU Remote and RustDesk. For the trade-offs between the two ways of working, see remote desktop or terminal.
Related
- Remote Mac mini for heavy Claude Code use: an always-on workstation, not account insurance
- Can I rent just the Mac mini and use my own Claude account?
- Does a long Claude Code task stop when my remote connection drops?
- How to manage several long-running tmux sessions on a remote Mac mini
- How to store env vars and API keys for multiple projects on a remote Mac mini
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support