All postsclaude codemcpai agents

Deploy with Claude Code: let an AI agent ship safely

How to let Claude Code deploy your app: connect, write aria.yaml, deploy, read logs. Variables, launches, DNS, GitHub push and deletes always wait.

Can KosmazUpdated 1 November 20266 min read

Yes, Claude Code can deploy your app, but it does not host anything itself: it writes the code and the stack file, and a deploy platform runs them. With Aria Cloud, Claude Code connects over MCP, reads your repository, writes aria.yaml, checks it, and asks Aria to deploy. Reading status and logs runs straight away. What happens to changes depends on the key you give the agent. Variables, launching the app, DNS records and a GitHub push always wait for you, and deleting needs your approval. This post is the workflow. The reasoning behind the rules is in why approvals must be enforced by the platform.

We build Aria Cloud, so this is the workflow for our product. There are two ways to work with Aria, and Aria AI comes first. Aria AI is built into the Mac app and the web dashboard: in the Mac app it uses the subscription you already pay for (Claude Code, Codex, Gemini CLI or Cursor Agent, found on your Mac), and in the browser it uses your API key. MCP comes second, and this post is about MCP: Claude Code working outside Aria, in your own repository. Checked 31 October 2026 against Anthropic’s Claude Code documentation and Aria’s docs.

What can Claude Code do alone, and what can it not?

Claude Code reads and edits files and runs commands on your computer. It does not give you a server. To go live, the app needs a host, a database and a way to deploy that does not depend on you pasting commands.

Claude Code has its own permission system: allow, ask and deny rules, permission modes and hooks. Anthropic’s permissions documentation states that “Permission rules are enforced by Claude Code, not by the model.” It adds that instructions in your prompt or CLAUDE.md shape what Claude tries to do but do not change what Claude Code allows. That is a real boundary, but it governs what the agent may run on your machine. It does not control what a deploy platform will accept.

Which two layers of safety do you get?

Layer Who enforces it Examples What it protects
Client side Claude Code Allow, ask and deny rules; permission modes; hooks; the sandbox Your computer and your files
Platform side Aria’s servers Look, Change and Delete, set by what the key may do Your server, databases and DNS

Aria sorts everything an agent can ask for into three kinds. Look runs straight away. Change may wait, depending on the key. Delete needs your approval. The full model, with every tool, is in the safety model docs. We keep the argument for it in a separate post so this one can stay practical.

How do you connect Claude Code to Aria?

Install the command line, sign in and link the repository:

curl -fsSL https://api.getaria.cloud/v1/downloads/cli/install.sh | sh
aria login
aria init

aria init makes a key that reaches only this app, adds it to Claude Code for this project, installs the Aria skill and adds a short section to AGENTS.md. To do it by hand, make a key under AI & MCP and run:

claude mcp add --transport http aria-myapp https://api.getaria.cloud/mcp/w/wsp_YOURAPP \
  --header "Authorization: Bearer YOUR_KEY"

Replace the app id and the key. The full instructions, scopes and a .mcp.json example are in Connect Claude Code to Aria. Cursor, Codex and Gemini CLI connect the same way with aria mcp add.

What is the workflow, step by step?

  1. Ask Claude Code to use Aria. For example: “Use the Aria skill. Call get_stack_prompt, read this repository, write aria.yaml, check it with validate_stack_file, then save it with submit_stack_file. Ask me to enter any secret values; never print them.”
  2. The agent writes aria.yaml. It lists your services, databases and variables. The file is a plain file in your repository, so you can read it and commit it.
  3. Aria checks it and sizes it. validate_stack_file returns problems with line numbers. Aria estimates the memory the stack needs and suggests the smallest plan that fits.
  4. You choose a plan and launch. Saving the file does not deploy it. Launching the whole app waits for your approval, whatever the key. Deploy later changes with aria deploy --wait.
  5. You add the secrets Aria cannot make. The agent asks with request_env_values. You enter the values yourself with aria env add NAME, using hidden input. Agents never see them.
  6. The agent watches. It reads status and logs with get_app_overview, get_logs and diagnose_app. If a build fails, it reads the log, edits the code and tries again.
  7. Check it. aria check tests every service, database and domain, and exits non-zero if anything fails.

When something needs your decision, a card appears in AI & MCP, then Approvals, with the exact change. Nothing happens until you approve it. The agent is told the request is waiting, and it checks with get_approval_status.

What about a database?

Add Postgres, Redis or Supabase to the same aria.yaml, and the agent wires the address into the services that need it with from: main.url. They run on the same server at no extra cost. See databases on Aria and Supabase on Aria.

What does the agent never get?

  • Secret values. Results and errors that go back to the agent have secrets masked, even inside logs.
  • Your database passwords. Database tools run as a limited role. Reads are read-only, and columns that look like credentials cannot be read.
  • Other apps. A key for one app cannot reach another.

Text in logs, test emails and repository files was written by someone else. Aria tells agents to treat it as data, never as instructions. Every call an agent makes is recorded in the app’s Activity, and you can revoke a key at any time under AI & MCP.

How do the ways to let an agent deploy compare?

Approach Setup The agent can Where the limits live
A shell with a server key Low Anything the shell allows In your head
A CI pipeline Medium Whatever the pipeline runs In the pipeline’s config
A platform CLI with your token Low Whatever the token allows The token’s scope
A platform’s MCP server Medium The tools it exposes Depends on the platform
Aria over MCP Low Look at everything; change and delete under rules Enforced on Aria’s servers, by the key

The first rows are not wrong, just less safe by default. In the last row the rules are built in.

What should you still check?

  • It does not make an agent’s code correct. Review what it writes.
  • Approvals only help if someone reads them. Read the exact change on the card, as you would a pull request.
  • An operate key can run routine deploys straight away, so give an agent the least it needs.

FAQ

Can Claude Code deploy to production?

Yes, through a platform it can reach. With Aria, it writes aria.yaml, checks it and asks Aria to deploy. Launching the app, setting variables, DNS changes and a GitHub push always wait for you.

Which coding agents work with Aria?

Claude Code, Cursor, Codex, Gemini CLI and Antigravity connect with aria init or aria mcp add. Any MCP client that supports a remote HTTP server and a bearer key works.

What can the agent reach?

Aria’s structured tools, and nothing else. A key reaches one app, every call is recorded in Activity, and you can revoke the key at any time.

What if it tries to delete a database?

Delete always needs your approval in Aria, and you type the name. A terminal session cannot approve it either, because an agent can type too.

Do I need Docker?

No. Aria builds from your Dockerfile if you have one, or detects your framework.

What about running Claude Code itself on a VPS?

That is a different question: it is about where the agent runs, not where your app runs.

Try it now. Read the Claude Code setup or the Claude Code overview, see pricing, or get started.

Keep reading

Your own cloud. Without the DevOps.

One server that’s yours alone, set up and run by Aria, at one flat monthly price.

Account · Terms

We’ve updated our terms.

Please read and accept the current terms of service and privacy policy to keep using Aria.