Vuncloud Blog
← Back to Dev Notes

Can you code with AI without setting up a dev environment? From a VPS to the first coding agent

The laptop only signs in · the toolchain stays on the remote machine · one comment is the checkAbout 11 min read

An open MacBook Pro on a dark code editor, for installing an AI coding agent on a remote machine while the laptop only uses SSH — Vuncloud
The result first
  • The laptop does not get a toolchain. Xcode, Android Studio, Node, and a JDK stay on the remote machine. Locally you need the built-in terminal, or the provider’s web console
  • Memory follows the install page. Claude Code’s docs say 4 GB or more, on x64 or ARM64. Use an Ubuntu LTS that is still inside standard support
  • The check is one comment. In a disposable repo, the agent edits hello.py. git diff should add that line and nothing else
  • Signing and the Simulator need a Mac. Vuncloud sells a dedicated Mac mini M4, which is a different machine from a general Linux VPS

In November 2026 a coding agent runs on a machine that has a shell. You buy that machine. The laptop only signs you in. The steps below are purchase, login, install, and a check. Claude Code commands follow the setup page. Codex follows the installer in the official repository. The Linux path fits an Ubuntu machine from any provider. When the repo needs Xcode, come back to a Vuncloud Cloud Mac.

4 GB+
Memory floor written on the Claude Code setup page
1 line
The first diff should add a single comment
SSH
The one client the laptop needs

What stays on the laptop

A development environment usually means a compiler, an SDK, a simulator, and an IDE. A coding agent needs something else: a shell that can read the repo, run commands, and write the edits back. That shell lives on the machine you buy. The laptop opens a terminal and finishes the login page.

The laptop still needs a terminal. macOS has Terminal. Windows has the built-in OpenSSH client. A provider web console works too, when it gives you a shell on that machine. The SSH public key is also created on the laptop. That step produces a key. It does not install a language runtime.

On the laptop, before you order
ssh-keygen -t ed25519 -C "vps-agent"

Accept the default path, ~/.ssh/id_ed25519. Paste the single line in the .pub file into the order form. The private key stays on the laptop.

Pick the machine

An Ubuntu VPS

For a website, Python, Go, scripts, or an ordinary backend, one Ubuntu LTS box is enough for the agent. In November 2026, 24.04 is still inside standard support and is the image most panels offer. A newer LTS on the same panel is fine. A short-support non-LTS image will stop receiving updates before the agent feels familiar.

The hardware line on the Claude Code setup page is 4 GB of RAM or more, on x64 or ARM64. A 2 GB plan sits under that line. The installer and a small git repo fit on a common 20 GB disk. Add a language runtime when the repo’s README names one.

When it has to be a Mac

Xcode, the Simulator, codesign, and TestFlight run on macOS. A repo that needs them needs a Mac. Vuncloud’s Cloud Mac is a dedicated Mac mini M4 with its own IPv4 address and 1Gbps, in Singapore, Japan, Korea, Hong Kong, US East, and US West. You can order before you log in. Pay in the same browser, then sign in, and the order joins the account. After the machine is ready, the SSH port, the key, or VNC is on the order in the console. Power on, power off, and a hard restart go through a ticket. The console has no one-click power button.

What the repo needsMachine
Web, Python, Go, scripts, an ordinary backendUbuntu LTS VPS, at least 4 GB
Xcode, Simulator, signing, TestFlightDedicated Mac mini M4

Which of 16 GB and 24 GB can hold a build and an agent together is in the 16 GB and 24 GB notes. Shared Mac hosting and a dedicated Cloud Mac are compared in Mac VPS and Cloud Mac.

Four checks at checkout

  • Image. Ubuntu LTS. In November 2026 that is 24.04, or a newer LTS the panel already lists
  • Memory. At least 4 GB, matching the hardware line on the Claude Code setup page. Add more when the agent will also run tests or a browser
  • Login. Paste id_ed25519.pub before the machine is created. Turn password login off when the panel allows it
  • Address. Write down the IPv4 and the username the panel shows. Ubuntu cloud images often use ubuntu. The panel text wins

Pick a region close to you so typing over SSH feels immediate. Model requests still travel to Claude or OpenAI. A farther data center does not change that hop.

The first login

The address below is a documentation example. Replace it with the panel’s IPv4, and replace the username too.

First SSH
ssh ubuntu@203.0.113.10

Once you are in, install three packages. git produces the diff, curl downloads the official installer, and ca-certificates checks HTTPS.

After login, these three packages
sudo apt update
sudo apt install -y git curl ca-certificates

Skip build-essential, nodejs, and default-jdk for now. When the agent needs to run tests, install the one runtime that repo’s instructions name. If the panel issued a first password, change it on this login. The Cloud Mac order notes ask for the same change after the first login.

Install the first agent

This walkthrough finishes Claude Code. Codex is a second installer on the same machine; keep one of the two. The personal Gemini CLI signed in with a Google account stopped on 18 June 2026, and that terminal path moved to Antigravity CLI, so it is not the first agent here. Cursor installs on the laptop, which leaves this “no local toolchain” path. How the seat fee and the overage split is in the four monthly bills and the Claude Code bill.

Claude Code

The setup page recommends the native installer. It does not ask you to install Node first. The npm path is marked deprecated. Even if you use npm, it installs the same native binary and wants Node.js 22 or newer.

Claude Code installer
curl -fsSL https://claude.ai/install.sh | bash

The installer prints almost nothing while it downloads. When it finishes, open a new shell, or follow the PATH hint it printed. Then:

Confirm the binary is on PATH
claude --version

A version number means claude is on PATH. On command not found, check that you are still in the shell from before the install.

From the repo directory, run claude and follow the browser prompt. On a machine you only have over SSH, open the link from the terminal on the laptop. The setup page says that an existing ANTHROPIC_API_KEY, once you confirm you want to use it, skips the login prompt. Keep that key out of the repo and out of chat logs.

Do not put sudo in front of the installer. It installs for the current user.

Codex

On the same Ubuntu machine, the Codex installer is:

Codex installer
curl -fsSL https://chatgpt.com/codex/install.sh | sh

In the project directory run codex and choose sign-in with a ChatGPT account. npm install -g @openai/codex is the alternative. The native installer also skips a Node install.

HTML and CSS side by side on a monitor, for the one-line git diff that checks the agent’s edit — Vuncloud

The first task

Use a new directory. Leave the repo you are shipping until this diff passes.

A disposable repo
mkdir -p ~/work/hello-agent
cd ~/work/hello-agent
git init
printf 'print("hello")\n' > hello.py
git add hello.py
git -c user.email="you@example.com" -c user.name="you" commit -m "start"
claude

The email exists so git can record a baseline without a global identity. The check is the working-tree diff, not that address.

Send one sentence in the session: add one comment above the print, saying this file is the check. Do not change the string. Do not add dependencies.

After you leave the session, read the diff. If the working tree is already clean, the agent committed. Read the last commit instead.

The check
git diff
git log -1 -p

A pass looks like this: hello.py has one new comment, and print("hello") is still there. If the file did not change, stop. The usual causes are the wrong directory, or a login that never finished.

When it sticks

  • command not found. Open a new shell. The setup page treats this as PATH not being active yet
  • The login page will not open. Open the terminal’s link in the laptop browser. If there is still no link you can open, use the provider’s web console. On a Cloud Mac, use the VNC details on the order and finish the same step
  • Memory pressure. The setup page’s floor is 4 GB. Tests or a browser on top of the agent make 4 GB tight. That is a signal to add memory
  • A command is looking for xcodebuild. This machine is Linux. Move to the Mac section above. The installer stays the same
  • Privileges. Do not run the agent as root, and do not commit an API key

FAQ

I have never used a terminal. Is a web console enough?

It is enough for the installer and the first task, when the console is a shell on this machine and not a panel of power buttons. The public key still has to be created on a computer you hold. With no local terminal, finish the install in the provider’s web console, then add the key.

Will a cheap 2 GB VPS run it?

The Claude Code setup page says 4 GB or more. 2 GB is under that line. Pulling dependencies and running tests can make 4 GB tight as well. What you add then is memory, not an IDE on the laptop.

Why keep the real repo out of the first task?

A failed first run in a shared repo mixes into other people’s commits. A disposable directory reduces the check to one comment: the diff adds that line, and the string is unchanged. That is the signal that the agent can read and write. Clone the real project after that.

When do you have to switch to a Mac?

When the task needs Xcode, the Simulator, signing, or TestFlight. A Linux VPS does not have those tools. A Vuncloud dedicated Mac mini M4 uses the same Claude Code installer. SSH and VNC are on the order in the console, and power actions go through a ticket.

Close

At this point the laptop has one new thing: an SSH key. Compiling and editing happen on the machine you bought. When the first diff is a single comment, the agent can already read and write the repo. Next, clone the real project and add the runtime its README names. Signing and the Simulator move from the Linux VPS to a Cloud Mac. The installer does not change.

Signing stays on the Mac

Xcode, the Simulator, and certificates run on a Cloud Mac. Web and scripts can stay on the Ubuntu VPS. Both machines use the same agent installer.

View Cloud Mac plans · 16/24 GB notes

Dev Notes · Agent

Move signing and the Simulator to a Mac

Xcode · SSH · Cloud Mac

View Cloud Mac plans
Limited offer View plans