---
title: "Make the cloud your development workspace: autonomous AI agents on a VPS"
url: "https://zuey.me/articles/bien-moi-truong-cloud-thanh-noi-lam?lang=en"
locale: en
access: free
full_text: true
published_at: "2026-10-10T15:58:50.654Z"
tags: ["AI Agents", "Automation", "MCP", "Developer Tools", "Programming"]
translations:
  vi: "https://zuey.me/articles/bien-moi-truong-cloud-thanh-noi-lam.md?lang=vi"
  zh: "https://zuey.me/articles/bien-moi-truong-cloud-thanh-noi-lam.md?lang=zh"
  ko: "https://zuey.me/articles/bien-moi-truong-cloud-thanh-noi-lam.md?lang=ko"
  ja: "https://zuey.me/articles/bien-moi-truong-cloud-thanh-noi-lam.md?lang=ja"
---
# 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.

![Make the cloud your development workspace: autonomous AI agents on a VPS](https://substack-post-media.s3.amazonaws.com/public/images/0075cdda-601e-49bc-bfe6-9add8ed936de_960x540.jpeg)

*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`.

> **TIP:** **The real shift:** this isn't just a terminal on a remote machine. It's a repeatable loop: **trigger → agent execution → verification → report**. I no longer need to sit at my laptop and kick off every task.

### 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

```mermaid
flowchart 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.*

![Screenshots from the original article 1](https://substack-post-media.s3.amazonaws.com/public/images/c09b2a5b-8f19-4756-94ac-4f67b17d8931_2996x1683.png)

![Screenshots from the original article 2](https://substack-post-media.s3.amazonaws.com/public/images/101091e5-a859-45fb-853a-30ef7bfeaedc_2146x1204.png)

*Screenshots from the original article*

### 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.

> **WARN:** **Never share this VPS with production services.** Agents can execute commands and modify files. Isolate projects and privileges before giving an agent real autonomy.

- [ ] Create a `dev` account and grant only the sudo permissions it needs.
- [ ] Configure SSH public-key login and disable password-based logins, including for `root`, after verifying access.
- [ ] Configure a firewall; restrict ports and prefer a private VPN/Tailscale path.
- [ ] 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](https://github.com/stablyai/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.

> **INFO:** **Current Orca CLI detail:** on Linux the executable is usually `orca-ide`, not `orca` (which may refer to the GNOME screen reader). For a headless server, use `orca-ide serve`, preferably over Tailscale. Mobile pairing has its own flag and flow; check the upstream documentation.

```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](https://omp.sh/) as the coding agent runtime and [AgentKit](https://agentkit.best/docs.md) for my preferred workflows. Let AI help with installation, but authenticate providers yourself rather than handing credentials to an assistant.

```bash
ssh 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
```

> **WARN:** **Credential rule:** never paste live API keys into prompts, GitHub issues, Markdown, terminal transcripts or logs. Use the credential manager or secrets store, least-privilege access and revocable tokens.

#### 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.

```text
Repository: <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.
```

> **WARN:** **Do not execute arbitrary webhook payloads.** Verify the GitHub HMAC SHA-256 signature (`X-Hub-Signature-256`), allowlist repos and event types, deduplicate deliveries, cap concurrency/runtime, and keep Discord webhook URLs in a secrets store. Issue text is untrusted input, not an authorization policy.

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.

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

#### 6. Connect Dewee/GoClaw to customer support

My [Dewee](https://dewee.sh/) 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?

| Component | Purpose | Guardrail |
| --- | --- | --- |
| Linux VPS | Runs agents, worktrees and tests | Isolate from production |
| Orca | Mac/iPhone interface to remote runtime | Private pairing link + network |
| OMP | Executes coding tasks | Limit permissions and resource use |
| AgentKit | Repeatable workflows and checks | Verify results, not claims |
| GitHub webhook | Structured task trigger | Validate and deduplicate events |
| Dewee + chat | Bug intake and reporting | Treat 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](https://agentwiki.cc/); 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 / Source](https://goonnguyen.substack.com/p/bien-moi-truong-cloud-thanh-noi-lam)

> Substack

[Orca remote server documentation](https://github.com/stablyai/orca/blob/main/docs/site/content/docs/remote-servers.mdx)

> GitHub

[GitHub webhook signature validation](https://docs.github.com/en/webhooks/using-webhooks/validating-webhook-deliveries)

> GitHub Docs
