\>\_AI Agents

# Your AI Agent's  
Deployment Layer

DeployHQ gives AI coding agents a complete deployment platform. Your agent pushes code — DeployHQ handles builds, transfers, and rollbacks. Works with Claude Code, Codex, Cursor, GitHub Copilot, and more.

[Get started free](/signup?cta=Get+started+free)[CLI documentation →](https://www.deployhq.com/support/cli)

curlbrew

`curl -sSL deployhq.com/install/cli | sh`

`brew install deployhq/tap/dhq`

Running this through an agent? Point it at[deployhq.ai](https://deployhq.ai).

Works with any agent

CLI + MCP access

JSON output for agents

Last updated on 4th April 2026

Terminal

$curl -sSL deployhq.com/install/cli | sh

✓ dhq installed successfully

&nbsp;

$dhq hello

&nbsp;

Welcome to DeployHQ CLI! 👋

Logged in as you@company.com

3 projects • 5 servers • 142 deployments

Ready to deploy.

AI coding agents can write code — but they need infrastructure to deploy it. DeployHQ is the deployment platform that bridges the gap. Agents connect via the CLI or MCP server, trigger deployments with structured JSON output, and manage the full lifecycle from project creation to rollback. No custom integrations needed.

## Works With Your Favourite Agents

Bring your agent — DeployHQ is the deployment platform underneath.

 ![Claude Code](/assets/agents/claude-e1bb01acd38576beb62f51cfdd289acd6456b8ef37733170655adbd20d3b7f0d.svg)

### Claude Code
Anthropic

Agentic coding in your terminal. Runs dhq commands directly to deploy, check status, and roll back — all autonomously.

CLIMCP

 ![Codex](/assets/agents/openai-95c22bb9e71884094c8c1022cde5db89f3ef67f9b775939120cc68e2735f730b.svg)

### Codex
OpenAI

Lightweight terminal agent that reads, writes, and executes. Pair it with the DeployHQ CLI for automated deployments.

CLI

 ![Cursor](/assets/agents/cursor-0f1aed9ae27b76fd0f0e61ab4e12514b9f95d14d24b57ea6da217025137b53e3.svg)

### Cursor
Cursor Inc.

AI-first code editor with Composer mode. Use the terminal integration to deploy via dhq after multi-file edits.

CLIMCP

 ![GitHub Copilot](/assets/agents/github-copilot-55bb3c84a4daf91a3e5dceda3a3b0bba2a2044df2dc6f6f54cb264a7ac3076c2.svg)

### GitHub Copilot
GitHub

AI pair programmer with agent mode. The workspace agent understands your project and triggers deployments through the CLI.

CLIMCP

 ![Windsurf](/assets/agents/windsurf-bb643196cc205eb1d11fb74f2e1b8b7cc87dfd0053acd8988db0d0d8abeba71a.svg)

### Windsurf
Codeium

Agentic IDE with Cascade for multi-step tasks. Connect to DeployHQ for end-to-end code-to-deploy workflows.

CLIMCP

 ![Cline](/assets/agents/cline-fb7c7293fcba3c674018579577b542027578326b58da068bdebe0aac07c15aa7.svg)

### Cline
VS Code Extension

Autonomous VS Code agent with human-in-the-loop approval. Runs dhq commands to deploy, monitor, and manage infrastructure.

CLIMCP

 ![](/assets/agents/claude-e1bb01acd38576beb62f51cfdd289acd6456b8ef37733170655adbd20d3b7f0d.svg)

### Claude Code
Anthropic

Agentic coding in your terminal. Runs dhq commands directly to deploy, check status, and roll back — all autonomously.

CLIMCP

 ![](/assets/agents/openai-95c22bb9e71884094c8c1022cde5db89f3ef67f9b775939120cc68e2735f730b.svg)

### Codex
OpenAI

Lightweight terminal agent that reads, writes, and executes. Pair it with the DeployHQ CLI for automated deployments.

CLI

 ![](/assets/agents/cursor-0f1aed9ae27b76fd0f0e61ab4e12514b9f95d14d24b57ea6da217025137b53e3.svg)

### Cursor
Cursor Inc.

AI-first code editor with Composer mode. Use the terminal integration to deploy via dhq after multi-file edits.

CLIMCP

 ![](/assets/agents/github-copilot-55bb3c84a4daf91a3e5dceda3a3b0bba2a2044df2dc6f6f54cb264a7ac3076c2.svg)

### GitHub Copilot
GitHub

AI pair programmer with agent mode. The workspace agent understands your project and triggers deployments through the CLI.

CLIMCP

 ![](/assets/agents/windsurf-bb643196cc205eb1d11fb74f2e1b8b7cc87dfd0053acd8988db0d0d8abeba71a.svg)

### Windsurf
Codeium

Agentic IDE with Cascade for multi-step tasks. Connect to DeployHQ for end-to-end code-to-deploy workflows.

CLIMCP

 ![](/assets/agents/cline-fb7c7293fcba3c674018579577b542027578326b58da068bdebe0aac07c15aa7.svg)

### Cline
VS Code Extension

Autonomous VS Code agent with human-in-the-loop approval. Runs dhq commands to deploy, monitor, and manage infrastructure.

CLIMCP

## How Agents Connect

The DeployHQ CLI is the primary interface — a single binary with zero dependencies.

 ![](/assets/icons/text-4e556c28179c8aa2c87cbad966a3805f4b07a7d82b1a71b129247d19c3c6d5e0.svg)

### JSON Output

Every command supports --json with optional field selection. Get machine-readable responses perfect for agents and automation scripts.

 ![](/assets/icons/zap-17eaa1be55c76d539c8ab6b4c667d86fc6478529af6fc62d282cf996beda3fe0.svg)

### Zero Dependencies

A single binary with no runtime dependencies. Download it, run it. Works on macOS, Linux, and Windows out of the box.

 ![](/assets/icons/server-3dea9382c13b5eb86283b34dac5391d37d7daab491d2ab3b3f48fb6c03df33de.svg)

### 30+ Commands

Manage projects, servers, deployments, rollbacks, environment variables, SSH keys, and more. Full coverage of the DeployHQ API.

 ![](/assets/icons/rocket-270a2a2320b804363b0337aa5e6bda7fc7a8d24b928d97ee26961e5bb9225b4f.svg)

### AI Assistant

Built-in local AI assistant powered by Ollama. Ask questions about your deployments in natural language — all data stays on your machine.

 ![](/assets/icons/cloud-d372ee912544376132418f98c0f50595f884b9c6432a2f78d8fe9017186d8e90.svg)

### CI/CD Integration

Authenticate via environment variables for seamless GitHub Actions integration. No interactive login needed in pipelines.

 ![](/assets/icons/link-8a603022ae63ac39632fb80b724b15efe10ee196c06ce0af7d627654a5147eaa.svg)

### MCP Server

Agents that support MCP can discover DeployHQ tools automatically. The CLI is the recommended interface — MCP provides an alternative integration path.

 ![](/assets/icons/star-8bfd118157707bf903ad674d334797bcdf92c66741cec54f4aac4b7abf0842b5.svg)

### In-App CLI Hints

Every project view in the dashboard shows the matching `dhq` command. Learn the CLI as you click — and copy commands straight into your agent or script without context-switching to the docs.

## Up and Running in Minutes

Three steps to deploy from the command line.

1

### Install

Download the binary or install via Homebrew.

$`brew install deployhq/tap/dhq`

`✓ dhq installed successfully`

2

### Authenticate

Log in with your DeployHQ credentials.

$`dhq auth login`

`✓ Authenticated as you@company.com`

3

### Deploy

Start deploying from your terminal.

$`dhq deploy -p my-app --wait`

`✓ Deployed to production in 42s`

## Built for AI Agents

First-class support for autonomous deployment workflows.

 ![](/assets/icons/text-4e556c28179c8aa2c87cbad966a3805f4b07a7d82b1a71b129247d19c3c6d5e0.svg)

### Machine-Readable Output

Every command supports --json with optional field selection. Get exactly the data your agent needs.

 ![](/assets/icons/server-3dea9382c13b5eb86283b34dac5391d37d7daab491d2ab3b3f48fb6c03df33de.svg)

### Breadcrumb Navigation

Agents discover available commands and flags at every step. No guessing, no hallucinating endpoints.

 ![](/assets/icons/zap-17eaa1be55c76d539c8ab6b4c667d86fc6478529af6fc62d282cf996beda3fe0.svg)

### 144+ API Endpoints

Full coverage of the deployment lifecycle — projects, servers, deploys, rollbacks, environment variables, and more.

agent session

$dhq project list --json --fields name,permalink

[{"name":"magic-bean","permalink":"magic-bean"}]

$dhq deploy create -p magic-bean -s production --wait

Preparing deployment...

Building (npm run build)...

Transferring 42 files...

✓ Deployed to production in 38s

$dhq deploy show -p magic-bean --json --fields status,duration

{"status":"completed","duration":"38s"}

[Read the full documentation →](https://www.deployhq.com/support/cli)

## Chatting with an agent? Add the Skill

Prefer talking to Claude on claude.ai or the Desktop app, or running OpenAI Codex, instead of a terminal? Download the DeployHQ skill and your agent learns to deploy, roll back, and manage your servers for you — set up in 30 seconds.

[Get the Skill →](/agents/skill)

## Frequently Asked Questions

### Which AI agents work with DeployHQ?

Any agent that can run shell commands can use the DeployHQ CLI. This includes Claude Code, OpenAI Codex, Cursor, GitHub Copilot, Windsurf, Cline, and others. Agents that support MCP can also discover DeployHQ tools automatically.

### How do AI agents connect to DeployHQ?

Agents connect primarily through the DeployHQ CLI (dhq). Every command supports --json output with optional field selection, making responses machine-readable. Agents authenticate via environment variables and can access 144+ API endpoints for full deployment lifecycle management.

### What is the DeployHQ MCP server?

The MCP (Model Context Protocol) server allows compatible agents like Claude Code to discover and use DeployHQ tools automatically. The CLI is the recommended primary interface — MCP provides an alternative integration path for agents that support it.

### Can I use DeployHQ without an AI agent?

Absolutely. DeployHQ works through the web dashboard, the CLI, or AI agents. The CLI also includes a built-in AI assistant powered by Ollama that runs entirely on your machine for local help with commands and deployments.

### Does it work in CI/CD pipelines?

Yes. The CLI supports authentication via environment variables (DHQ\_EMAIL and DHQ\_API\_KEY), so you can use it in GitHub Actions and other CI/CD systems without interactive login.

### Is it free?

The CLI itself is free and open source. You need a DeployHQ account to use it — free plans are available with paid plans starting at affordable rates.

## Ready to let your agent deploy?

Get started with DeployHQ and connect your AI agent in minutes.

[Get started free](/signup?cta=Get+started+free)

10-day free trial • No setup fees • Cancel anytime

## Explore More Features

Discover all the tools that make DeployHQ the easiest way to deploy your code.

[

### Zero Downtime Deployments
→](/features/zero-downtime-deployments)[

### One-Click Rollback
→](/features/one-click-rollback)[

### Turbo Deployments
→](/features/turbo-deployments)[

### Build Pipelines
→](/features/build-pipelines)[

### Build Cache
→](/features/build-cache)[

### Scheduled Deployments
→](/features/scheduled-deployments)[

### Deployment Availability
→](/features/deployment-availability)[

### Docker Builds
→](/features/docker-builds)[

### Deployment Checks
→](/features/deployment-checks)[

### Deployment Targets
→](/features/deployment-targets)[

### Automatic Deployment
→](/features/automatic-deployments)[

### Deployment Templates
→](/features/deployment-templates)[

### Deploy Behind Firewalls
→](/features/deploy-behind-firewalls)[

### SSH Deployment
→](/features/ssh-deployment)[

### Deployment Zones
→](/features/deployment-zones)[

### Team & Permissions
→](/features/team-permissions)[

### Single Sign-On
→](/features/sso)[

### Custom Actions
→](/features/custom-actions)[

### Server Management
→](/features/server-management)[

### CLI & Agents
→](/agents)[

### Powerful Integrations
→](/features/integrations)

## Get started today for just $9/month

That's unlimited deployments and 3 projects.

[Start your free 10 day trial](/signup?cta=Start+your+free+10+day+trial)
