Use with AI
An AI agent can do in OpenPanel what the API offers: create projects, deploy from Git or an image, set variables and secrets, add domains, scale, roll back, read status, and manage project access. It works as you, with your access and never more. Connecting servers and inviting members stay in the console for now.
There are three ways in. Most agents use the first; the other two make it better.
| What it is | Use it when | |
|---|---|---|
| MCP server | https://openpanel.sh/api/mcp, one tool for every API operation | Your AI tool speaks MCP: Claude Code, Cursor, ChatGPT and others |
| Skills | Step-by-step guides an agent follows for common jobs | Your agent loads skills (Claude Code does) |
| CLI | openpanel, the same operations in a terminal | Your agent runs shell commands, or you work in CI |
The MCP server
Add https://openpanel.sh/api/mcp to your AI tool:
Any other client that supports remote MCP servers over streamable HTTP works the same way: give it the address, then sign in when it asks, or send an API key as Authorization: Bearer opk_….
What the agent can do
Every tool is one operation of the API, with the same name: projects_create is POST /projects. The tool list names them all. The agent also gets resources it can read: openpanel://projects, openpanel://projects/{id} (a project with its services and domains) and openpanel://services/{id} (a service with its last deployments).
What keeps it safe
- It is you. Signed in with OAuth, the agent acts as you. With an API key, it acts as the person who made the key, capped by the key's scope (view, deploy or admin) and, if you chose, limited to some projects. A private project you cannot see, it cannot see.
- It asks before it destroys. Deleting a project, service, volume, variable or domain, revoking a key and rolling back are marked destructive. The agent's tool asks you to confirm first; a tool that cannot ask must pass
confirm: true, which a well-behaved agent does only after you said yes. - A key cannot make keys. An agent that uses an API key cannot make or revoke keys, so a leaked key cannot make itself a successor. Signed in with OAuth, the agent is you, and can.
- You can see it. Every change is in the audit log, with the key it came through.
Which organization
The agent starts in your own organization. To work in another one you belong to, add ?org=<slug> to the server's address, for example https://openpanel.sh/api/mcp?org=acme. An API key always works in the organization it was made in.