# Quickstart with AI

Source: https://openpanel.sh/docs/getting-started/quickstart-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](/docs/ai/cursor), [ChatGPT](/docs/ai/chatgpt) and [other clients](/docs/ai/other-clients) work the same way.

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

<Steps>
<Step>
### Connect a server and a Git account [#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](/docs/getting-started/quickstart) shows each step; stop before **Create a project**.
</Step>

<Step>
### Add the MCP server to Claude Code [#add-the-mcp-server-to-claude-code]

In a terminal:

```sh
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](/docs/ai/claude-code).
</Step>

<Step>
### Add the skills (optional) [#add-the-skills-optional]

OpenPanel's [skills](/docs/ai/skills) teach Claude the common jobs end to end, such as deploying a repository:

```sh
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.
</Step>

<Step>
### Ask it to deploy [#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](/docs/ai/mcp-tools).
</Step>

<Step>
### Check it in the console [#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](/docs/monitoring/audit-log).
</Step>
</Steps>

## What it will ask you first [#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](/docs/ai#what-keeps-it-safe).

## Next [#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](/docs/api/authentication#api-keys) instead of signing in.