# AI agents

> Let an AI coding agent deploy with Vantuly through the CLI or the MCP server.

Source: https://vantuly.com/docs/cli/ai-agents

An AI agent can deploy with Vantuly in two ways:

- **Run the CLI.** Any agent that can run shell commands can run `npx -y vantuly deploy <folder> --json` and read the JSON it prints.
- **Use the MCP tools.** When the [vantuly MCP server](/docs/cli/mcp) is connected, the agent calls tools like `deploy` and `deployment_logs` directly.

Either is fine. Both use your sign-in, so run `vantuly login` once on the computer first. The agent then deploys to the team you picked there.

## Tools

| Tool | What it is | Runs the CLI | Local MCP servers | Setup |
|---|---|---|---|---|
| Claude Code | CLI, also the Code tab in the Claude desktop app | Yes | Yes | [Claude Code](/docs/cli/mcp#claude-code) |
| Codex | CLI, the Codex app and an IDE extension | Yes | Yes | [Codex](/docs/cli/mcp#codex) |
| OpenCode | CLI and web interface, open source | Yes | Yes | [OpenCode](/docs/cli/mcp#opencode) |
| Cursor | IDE | Yes | Yes | [Cursor](/docs/cli/mcp#cursor) |
| VS Code with GitHub Copilot | IDE, agent mode | Yes | Yes | [VS Code](/docs/cli/mcp#vs-code-with-github-copilot) |
| Devin Desktop (formerly Windsurf) | IDE | Yes | Yes | [Devin Desktop](/docs/cli/mcp#devin-desktop-windsurf) |
| Zed | Editor | Yes | Yes | [Zed](/docs/cli/mcp#zed) |
| Gemini CLI | CLI | Yes | Yes | [Gemini CLI](/docs/cli/mcp#gemini-cli) |
| Command Code | CLI | Yes | Yes | [Command Code](/docs/cli/mcp#command-code) |
| Kimi Code | CLI | Yes | Yes | [Kimi Code](/docs/cli/mcp#kimi-code) |
| Amp | CLI and editor extension | Yes | Yes | [Amp](/docs/cli/mcp#amp) |
| Goose | CLI and desktop app, open source | Yes | Yes | [Goose](/docs/cli/mcp#goose) |
| Cline | VS Code extension and CLI | Yes | Yes | [Cline](/docs/cli/mcp#cline) |
| Kilo Code | VS Code extension and CLI | Yes | Yes | [Kilo Code](/docs/cli/mcp#kilo-code) |
| Roo Code | VS Code extension | Yes | Yes | [Roo Code](/docs/cli/mcp#roo-code) |

DeepSeek has no coding agent of its own. Its docs show how to use DeepSeek models in Claude Code and OpenCode, so use one of those (or another tool here that lets you pick the model) and set it up as above.

## A prompt to give an agent

```text
Build this site and deploy it with the vantuly MCP tools (or `npx -y vantuly deploy <folder> --json`).
Deploy the build output folder, not the project. If the deploy fails, read log_tail, fix the cause
and deploy again. Never deploy .env files; set variables with set_env. Tell me the URL at the end.
```

## Scripts and --json

- Every command takes `--json`. Errors are printed on stdout as `{"error": {"code": "...", "message": "...", "fields": {...}}}`. Local errors (a wrong flag, no linked site) have only `message`.
- No command ever prompts.
- Exit codes are stable: `0` ok, `1` usage or API error, `2` the deployment failed, `3` not signed in or not allowed.

`vantuly deploy dist --json` returns `url`, `site_id`, `created_site`, `detected_type`, `files`, `bytes`, `deployment` and, on failure, `log_tail` (the last 60 lines of the build log).

Agents can also read [app.vantuly.com/llms.txt](https://app.vantuly.com/llms.txt), a short version of these pages.
