---
title: "Qwen Code terminal agent on a VPS · CloudSat"
description: "Put Qwen Code on a CloudSat server: the Apache-2.0 terminal coding agent with subagents, MCP tools, approval modes and a choice of Qwen or other models."
url: https://cloudsat.io/apps/deploy-qwen-code
updated: 2026-11-18T15:52:35Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Automation](https://cloudsat.io/apps/category/workflow-automation)

# Qwen Code on a VPS

Qwen Code is an Apache-2.0 AI coding agent for the terminal. It edits your project and runs commands with Qwen, OpenAI, Anthropic, Gemini or local models.

[Deploy Qwen Code](https://dash.cloudsat.io/console/deploy?image=app%3Aqwen-code&plan=cloud-1g) [All apps](https://cloudsat.io/apps)

## About Qwen Code

Qwen Code, from the Qwen team, is a terminal coding agent forked from Google's Gemini CLI and developed independently since v0.1. Run `qwen` in a project and it plans changes, edits files, runs commands and tests, and delegates to subagents.

Approval modes range from per-call confirmation to auto-edit and YOLO, plus a read-only plan mode, so on a CloudSat VPS it can work in `tmux` on a disposable clone. Headless `qwen -p` runs suit cron and CI.

It needs Node.js 22 or newer, and `/auth` handles sign-in on first start.

## What you get with Qwen Code

- Subagents for focused tasks in the foreground or background
- MCP servers for extra tools, resources and prompts
- Headless mode with `qwen -p` for scripts
- Hooks, LSP integration and Git worktrees
- Providers from Qwen and OpenAI to Ollama and vLLM

## Qwen Code use cases

- Let an agent work through a backlog on a server that stays online
- Run scripted reviews or fixes from cron or CI
- Pair it with local models served by Ollama or vLLM

## After you deploy Qwen Code

1. When **Running** appears, connect by SSH and create an unprivileged account for the agent.
2. Clone your project, start a `tmux` session and launch `qwen` inside the repository.
3. Run `/auth` and pick a Qwen account with a Plus or Pro subscription, or set up a provider with an API key.
4. Begin in plan mode, and widen the approval mode only after its changes earn your trust.

## Qwen Code ports

Open these in your firewall if you use one: `22/tcp SSH; the agent itself listens on nothing`.

## Qwen Code FAQ

### Is Qwen Code free to use?

The CLI is free under Apache-2.0; models are not. Use a Qwen Plus or Pro subscription, another provider's API key, or a local model.

### How does Qwen Code relate to Gemini CLI?

It started from Gemini CLI v0.8.2 and stopped syncing with upstream at Qwen Code v0.1, so the two projects now develop separately.

**Disclaimer.** The Qwen Code project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.

## Apps like Qwen Code

[All apps in Automation](https://cloudsat.io/apps/category/workflow-automation)

- [Pi](https://cloudsat.io/apps/deploy-pi): Automation Pi is an MIT-licensed coding agent and agent toolkit for the terminal. It works with OpenAI, Anthropic, Google and other models, and grows through packages.
- [OpenCode](https://cloudsat.io/apps/deploy-opencode): Automation OpenCode is an MIT-licensed AI coding agent with a terminal UI, build and plan agents, subagents and many model providers, extended through MCP servers and plugins.
- [aider](https://cloudsat.io/apps/deploy-aider): Self-hosted aider is an open-source AI pair programmer for the terminal: it edits files across your git repo with the model you choose and commits every change.
- [Claude Code](https://cloudsat.io/apps/deploy-claude-code): Self-hosted Claude Code is Anthropic's agentic coding tool for the terminal. On a CloudSat server, long sessions keep going after you close your laptop.
- [Activepieces](https://cloudsat.io/apps/deploy-activepieces): Automation Activepieces is an open-source Zapier alternative: a visual flow builder, 280+ integrations, code steps and AI agents, running on a server you control.
- [AdClaw](https://cloudsat.io/apps/deploy-adclaw): Automation AdClaw runs a team of AI marketing agents on your server, each with its own persona, model, skills and schedule, managed from a web dashboard or Telegram.
