Skip to content

The Deska blog

Running AI Coding Agents on a Second Computer and Controlling Them Remotely

Learn how to optimize your workflow by running AI coding agents on a second computer while maintaining full remote control and secure access from any device.

11 min read

Modern development workflows are shifting toward heavy automation, but running AI coding agents on a second computer remains the most effective way to protect your primary laptop from thermal throttling and battery drain. When you delegate long running tasks like codebase refactoring or test generation to a dedicated machine, you need a reliable bridge to oversee the process. Navigating the trade-offs between raw terminal access and sophisticated remote workspaces is essential for any developer looking to maintain high velocity without being tethered to a desk.

The Case for a Dedicated Agent Machine

AI agents like Claude Code or OpenCode are resource intensive. They often require significant CPU cycles for syntax highlighting, file indexing, and executing test suites. Running these directly on a thin client or a portable laptop leads to loud fans and sluggish UI response times. By offloading these tasks to a secondary desktop machine, you gain several technical advantages.

First, stability is significantly improved. If an agent enters an infinite loop or consumes excessive memory, your primary workstation remains responsive. Second, power management becomes a non-issue. A plugged-in desktop can run complex indexing jobs for hours without battery concerns. Third, the local-first nature of these agents means they perform best when they have direct, high-speed access to the file system where the code resides.

Traditional Remote Access Methods

Developers have historically used a few standard tools to manage remote processes. While these tools are robust, they often lack the visual context needed for modern AI workflows.

SSH and Tmux

The most common approach is using SSH combined with a terminal multiplexer like tmux. This allows you to start an agent session on the remote machine, detach, and reconnect later. It is lightweight and works on almost any network. However, it is limited to text. If the agent generates a UI component or requires you to check a browser output, SSH becomes a bottleneck.

Remote Desktop and VNC

Tools like VNC or RDP provide a full graphical interface. This is useful for seeing the entire workspace, but these protocols are often laggy over high-latency connections. They also send large amounts of pixel data, which can be expensive on mobile data plans.

VS Code Remote Tunnels

This method allows you to use a local editor UI while the backend runs on the second computer. It is a powerful middle ground, though it requires a specific set of extensions and a persistent login to a central service, which may not align with a strictly local-first philosophy.

Introducing a Modern Relay Approach

A more integrated way to manage these tasks involves using a workspace that treats the remote machine as a secure node. Deska offers a unique solution by acting as a canvas-based environment that can be accessed via a secure relay. This eliminates the need for exposing ports or setting up complex VPNs.

When you use Deska, you can arrange multiple panels side by side. For example, you can have a terminal running Claude Code in one panel and the coding agents like Codex CLI in another. Because the app is local-first, the actual execution happens on that hardware.

The transition to mobile is where this setup shines. Through the mobile app, you can pair your phone directly with your workstation. This creates a secure tunnel that allows you to monitor the terminals or check the progress of an agent from anywhere. You are not just seeing a static screenshot; you are interacting with the live session.

Managing Multiple Agents on the Canvas

One of the challenges of running agents is the fragmentation of information. If you have three different agents working on different parts of a project, a single terminal window is insufficient. Using an infinite canvas allows for a different mental model.

  • Place agents in dedicated panels.
  • Use the voice assistant, Ask Deska, to trigger commands on the remote machine without typing.
  • Zoom out to see the status of all concurrent agent threads at once.
  • Keep notes next to the terminal to document the agent's logic.

This visual organization prevents the "hidden process" problem common in tmux, where you might forget a background agent is still consuming API tokens or modifying files in a way you didn't intend.

Security Considerations for Remote Agents

Running AI coding agents on a second computer introduces risks if the connection is not properly hardened. Traditional port forwarding is dangerous because it exposes your local network to the public internet.

A secure relay approach is preferable. By using end to end encryption and direct device pairing, your code and sessions stay private. This respects the privacy requirements of professional software development while maintaining the flexibility of remote work. Always ensure that your API keys are managed securely and not hardcoded into scripts that the agents might inadvertently read or leak.

Comparing Remote Workflows

FeatureSSH + TmuxRemote DesktopDeska Relay
InterfaceCLI OnlyFull GUICanvas Panels
Mobile AccessDifficultHigh BandwidthOptimized mobile
Setup ComplexityMediumHighLow
Network PrivacyManual VPNPort ForwardingSecure Relay
Multi-Agent ViewSequentialSingle ScreenInfinite canvas

Frequently Asked Questions

How can I access my home computer from a different network?

You can use a secure relay or a virtual private network. Deska simplifies this by allowing you to pair devices directly through its remote-access feature, which avoids the need for opening firewall ports or manual IP configuration.

Do AI agents need a GPU on the second computer?

Most agents like Claude Code or OpenCode rely on cloud LLMs and only need CPU and RAM for local operations. However, if you are running local models via managed inference, a GPU will significantly speed up response times.

Can I run multiple agents at the same time?

Yes, using a workspace that supports panels allows you to run different agents side-by-side. This is useful for comparing how different models handle the same prompt or for delegating different sub-tasks to specialized agents.

Getting Started with Remote Agents

Setting up a dedicated machine for your AI agents is a significant upgrade for any developer's productivity. By offloading the heavy lifting to a secondary computer, you keep your main environment clean and responsive. Whether you prefer the simplicity of the terminal or the visual clarity of an infinite canvas, the goal is to keep the agents working for you, not against your hardware.

If you are ready to build your remote-first AI workspace, you can download the desktop app for your primary machine and start pairing your devices today.