Users, tokens and AI agents
Users and roles
Every user belongs to one or more organizations. Permissions come from the role in that organization:
| Role | Can |
|---|---|
| Observer | read servers, projects, deployments, services, domains, clusters, backups, operations |
| Developer | + read logs, create deployments (production still needs approval) |
| Operator | + approve deployments and restores, restart workloads, manage secrets, bind services, create backups, cancel operations |
| Infrastructure Admin | + servers and agents, domains, projects, services, clusters, provider accounts, backup targets, audit log |
| Super Admin | everything, including members and service accounts |
Add a user on the panel server:
cd /srv/podmaker/current/apps/control-plane
sudo -u podmaker php artisan podmaker:user:create colleague@example.com --name "Colleague"
The user becomes Super Admin of a new organization of their own. Inviting a user into an existing organization with a chosen role is not in the panel or API yet. Until then, share access through service accounts with the role you want, or work in separate organizations.
Protect your account under Settings → Security: two-factor authentication (TOTP app with recovery codes) and passkeys.
API tokens
For your own CLI use, create a token under API access in the panel. On
the server you can also run php artisan podmaker:token:create you@example.com.
podmaker login --url https://panel.podmaker.sh/api/v1 --token-stdin <<< "$TOKEN"
- Tokens expire (default 30 days, at most 365).
- A token can be limited to some permissions (
--ability). - The CLI keeps the token in the OS keychain.
Service accounts (CI, scripts)
Non-human identities have their own accounts, roles and tokens. Every action is audited as that account.
podmaker service-account create github-ci --role Developer
podmaker service-account token-create github-ci --name deploy --ability deployment.create --ability deployment.read
podmaker service-account tokens github-ci
podmaker service-account token-revoke github-ci <token-id>
podmaker service-account disable github-ci
See CI/CD for a full example.
AI agents (MCP)
Podmaker includes an MCP server. Claude Code, Cursor and other MCP clients
can list servers, read deployment status, deploy to staging, investigate
failures, prepare a project for Podmaker (podmaker.yml), and request (not
approve) production changes.
In the panel: go to API access → Connect an AI assistant → Generate
connection commands. Choose the access level: Developer (account
ai-assistant) reads and deploys to staging; Builder (account
ai-builder) can also set projects up: projects, environments, services,
domains. For a new server it returns a link to the prefilled create form that
you confirm. Neither level can approve, handle secrets or create servers. The
card creates a 90-day token and shows ready-to-paste commands. One
line sets up Claude Code:
curl -fsSL https://panel.podmaker.sh/cli | sh && printf '%s' '<token>' | podmaker mcp login --url https://panel.podmaker.sh/api/v1 && claude mcp add --scope user podmaker -- podmaker mcp serve
For other clients the card shows the mcp.json entry. By hand:
podmaker service-account create claude --kind ai_agent --role Developer
podmaker service-account token-create claude --name mcp --ability project.read --ability deployment.read \
--ability deployment.create --ability server.read --ability operation.read
printf '%s' "$TOKEN" | podmaker mcp login --url https://panel.podmaker.sh/api/v1
claude mcp add --scope user podmaker -- podmaker mcp serve
Guarantees:
- An
ai_agentaccount can never approve anything, whatever its role. - Production deployments it requests wait for a human.
- Secrets are never returned to the agent.
- Every call is audited as
ai_agent.
Tool list, remote (HTTP) mode and details: MCP guide.
Audit log
Every change is recorded with actor, target, time and correlation id: logins, deployments, approvals, secret changes (names only), server enrollments and agent tasks. The log is append-only.
podmaker audit --since 24h
podmaker audit --action deployment.approved
In the panel: Audit log.
Monitoring
GET /metrics serves Prometheus metrics for servers, agents, tasks,
deployments and backups. Set IMP_METRICS_TOKEN in
/srv/podmaker/shared/.env (the installer generates one) and scrape with
Authorization: Bearer <token>. Suggested alerts are in the
operations guide.