Skip to content
Skip to Content

Quickstart with AI

Add OpenPanel's MCP server to Claude Code and ask it to deploy a repository onto your server.

An AI agent can do in OpenPanel what the API offers: create a project, add a service from a repository or an image, set its variables, deploy it and read how the deploy went. This walk-through uses Claude Code; Cursor, ChatGPT and other clients work the same way.

Two things stay in the console: connecting a server and adding a Git account. Do those first.

Connect a server and a Git account

In the console, start the Servers plan, connect a server with One command, and add the Git account your repository is in. The Quickstart shows each step; stop before Create a project.

Add the MCP server to Claude Code

In a terminal:

claude mcp add --transport http openpanel https://openpanel.sh/api/mcp

Inside Claude Code, run /mcp, choose openpanel and sign in: your browser opens OpenPanel, where you choose Allow. Claude then acts as you, with your access and never more. See Claude Code.

Add the skills (optional)

OpenPanel's skills teach Claude the common jobs end to end, such as deploying a repository:

npx -y https://cdn.openpanel.sh/cli/0.2.0/openpanel-cli-0.2.0.tgz skills install

Claude Code loads them in its next session.

Ask it to deploy

In Claude Code, in your repository's folder, ask in your own words, for example:

Deploy this repository to OpenPanel as a new project called shop, on my server. It listens on port 3000. Give me its address when it runs.

Claude finds your server and Git account, creates the project and the service, deploys it and follows the deployment until it runs. Each step is a tool call you see, such as projects_create, services_create and deployments_create. See the tool list.

Check it in the console

The project is on the Projects page, with the service on its canvas. Its Overview tab shows the opnl.app address, and its Deployments tab what happened. Every change Claude made is in the audit log.

What it will ask you first

Deleting a project, a service, a volume, a variable or a domain, revoking a key and rolling back are marked destructive. Claude Code asks you to confirm each one before it runs. See What keeps it safe.

Next

  • Ask it to add a PostgreSQL service from its image, set a secret, scale a service to three replicas behind the load balancer, or roll back.
  • For a CI job or an agent without a browser, use an API key instead of signing in.