6 min

Make the cloud your development workspace: autonomous AI agents on a VPS

How I moved development off my laptop using Orca, OMP, AgentKit and GitHub's ai-handle label, with practical setup steps and essential security safeguards.

Also in: Tiếng Việt · 中文 · 한국어 · 日本語

Make the cloud your development workspace: autonomous AI agents on a VPS
Make the cloud your development workspace: autonomous AI agents on a VPS

Lately I've moved most of my development work to the cloud and, strangely enough, I barely type prompts anymore. Sounds unlikely? Here's the setup I actually use: a VPS, Orca, Oh My Pi (OMP), AgentKit and GitHub issues labeled ai-handle.

Why move development to the cloud?

  • Closer to production: a Linux VPS makes OS-dependent debugging more predictable.
  • Mobile-first control: I can direct agents from my phone while the laptop is off.
  • GitHub issues become a task queue: adding ai-handle triggers a webhook workflow.
  • Customer support feeds engineering: Discord/Telegram reports become verified issues, then agent work and status reports.
  • Less strain on my laptop: parallel worktrees, tests, memory and disk activity run on the VPS.
  • Often better network throughput: dependency installs and repository operations can benefit from cloud connectivity.

My M1 Mac has only 512 GB of SSD storage. Running multiple agents and worktrees locally eats RAM, storage and responsiveness. Offloading that work helps, although a VPS is not guaranteed to outperform local hardware; CPU contention and disk I/O still matter.

From Claude Routines to my own remote environment

Claude's Routines and Cloud Environment gave me the idea. In my experience, being tied to Claude models, having long-running sessions sometimes sleep after two or three hours, and repeatedly copying setup scripts made the workflow less flexible than I wanted. Those are personal observations, not universal service limits.

Why not build the same experience on a VPS I control?

At first I wanted to build an entire new tool. Then I realized I could combine existing tools instead. One less unnecessary platform to maintain. Revolutionary, I know.

How the workflow fits together

mermaidflowchart LR
  User[Customer / developer] --> Chat[Discord / Telegram / GitHub]
  Chat --> Issue[GitHub issue]
  Issue -->|ai-handle label| Hook[Verified webhook]
  Hook --> Queue[Job queue]
  Queue --> Agent[OMP + AgentKit on VPS]
  Agent --> Verify[Tests and verification]
  Verify --> PR[Pull request + report]
  PR --> Notify[Discord notification]
  PR --> Human[Human approval before merge]
  Orca[Orca desktop + mobile] <-->|Private network| Agent
Conceptual workflow with recommended safety layers. A job queue, verified webhook and human approval must be configured explicitly; they are not automatic features of every setup.

The six setup steps

1. Prepare a dedicated Linux VPS

I use a Contabo VPS at roughly $40/month, with 12 vCPU, 48 GB RAM and 400 GB SSD. It's worked acceptably for me for about a year, despite mixed reliability reports. That's an anecdote, not an uptime guarantee. Prices and specifications can change.

  • Chưa xong: Create a dev account and grant only the sudo permissions it needs.
  • Chưa xong: Configure SSH public-key login and disable password-based logins, including for root, after verifying access.
  • Chưa xong: Configure a firewall; restrict ports and prefer a private VPN/Tailscale path.
  • Chưa xong: Keep recovery instructions in vps-xxx.md, but never store private keys, passwords or tokens there.

2. Pair Orca with your Mac and iPhone

Orca is an agent IDE with desktop, mobile and headless remote-server support. Install the server runtime on the VPS, then pair your clients using a private orca://pair?... link. That pairing URL is a credential: protect it like a password.

bash# Linux: Orca's CLI is named orca-ide
orca-ide status --json
orca-ide serve --pairing-address <TAILSCALE_IP> --mobile-pairing
# Never commit the pairing link

Once paired, I can use remote worktrees, terminals, files and even a headless browser from the client. There's a little latency, but it's surprisingly easy to forget where the code is actually running.

3. Install OMP and AgentKit

Install Oh My Pi as the coding agent runtime and AgentKit for my preferred workflows. Let AI help with installation, but authenticate providers yourself rather than handing credentials to an assistant.

bashssh dev@<VPS_IP>
# Install OMP: https://omp.sh/
# Install AgentKit: https://agentkit.best/docs.md
omp
ak login --api-key <YOUR_AK_KEY>
ak kit init engineer --target omp -g -y

4. Wire up GitHub webhooks

My favorite part: label an issue ai-handle and GitHub notifies a VPS listener. It starts OMP, follows /ak:vibe --advice --ship --beta, then sends a completion report to Discord. GitHub Settings and account authentication may require a few manual steps.

textRepository: <OWNER>/<REPO>
Event: issues.labeled with label == ai-handle
Action: launch OMP; follow /ak:vibe --advice --ship --beta
Return: run status, tests, commits, pull request, errors
Notify: Discord webhook stored as a secret
Controls: verify X-Hub-Signature-256, scope to repo,
 deduplicate deliveries, bound concurrency and cost,
 require human approval before merge/deploy.

Start by having agents open pull requests. Keep merging and deployment behind human approval until you have stronger verification and operating controls.

5. Test the entire chain

Create a harmless issue, such as updating a README, then add ai-handle. Verify that GitHub sends the event, the VPS authenticates it, a separate agent worktree starts, checks run, and a PR/report and Discord notification arrive.

  • Chưa xong: Reject invalid signatures and out-of-scope repositories.
  • Chưa xong: Handle duplicate webhook deliveries safely.
  • Chưa xong: Constrain the agent's workspace, permissions, timeout and budget.
  • Chưa xong: Attach test evidence and commit/PR links to the report.
  • Chưa xong: Never merge or deploy to production without approval.

6. Connect Dewee/GoClaw to customer support

My Dewee agent listens on Discord. When a customer reports a bug, it can inspect source code, verify the report, draft a well-structured GitHub issue and attach ai-handle. The OMP agent picks it up in the cloud, works on a fix and reports back. I can also start that process in a Telegram chat.

The important bit is converting noisy conversations into scoped tasks with acceptance criteria and evidence. Customer messages still need validation; they must never become unrestricted shell commands.

Who does what?

ComponentPurposeGuardrail
Linux VPSRuns agents, worktrees and testsIsolate from production
OrcaMac/iPhone interface to remote runtimePrivate pairing link + network
OMPExecutes coding tasksLimit permissions and resource use
AgentKitRepeatable workflows and checksVerify results, not claims
GitHub webhookStructured task triggerValidate and deduplicate events
Dewee + chatBug intake and reportingTreat customer input as untrusted

Frequently asked questions

How do I test the UI when code runs on a VPS?

Orca can connect desktop/mobile clients to remote worktrees and a headless browser, including remote browser output. Browser features and latency depend on your Orca version and network. Keep screenshots and test traces as evidence.

Can I send screenshots and files to the remote agent?

Use Orca's file and image features or a secure SSH file transfer. Avoid automatically uploading private directories or data you don't need.

How should I manage .env files and secrets?

I use AgentWiki; 1Password and Bitwarden also offer CLI-based approaches. Give agents scoped, short-lived credentials when necessary. Never hand over an entire .env file.

Does a 24/7 VPS mean fully autonomous agents?

No. Always-on compute is only availability. Reliable autonomy also requires job persistence, retries, monitoring, test results, permissions, cost controls and human approval for risky actions.

The point isn't the VPS

The best part isn't that the agent runs on another computer. It's that work doesn't begin with me opening a terminal and typing a prompt. Customer reports become structured tasks, an agent produces changes and evidence, and I decide what ships.

Start with one isolated VPS, one test repository, one ai-handle label and one harmless README issue. Make one complete loop work before you scale it. Running unattended is not the same as being trustworthy.


Original article / SourceSubstackOrca remote server documentationGitHubGitHub webhook signature validationGitHub Docs