Permissions & Security
Sitepins enforces strict, multi-layered security guardrails whenever an AI agent connects to your projects.
π Permission Scopes
When creating a token in Settings β MCP Connection, you control exactly what the agent can access:
| Permission | What It Allows | Default |
|---|---|---|
| See sites | View and list the sites covered by the token. | Always On |
| Read files | Read content, schemas, and file history. | Always On |
| Edit content | Create, edit, and delete files in content and config folders. | Enabled |
| Manage media | Upload, rename, and delete assets in your media folder. | Enabled |
| Edit schemas | Modify blueprints and snippets in .sitepins/schema. | Enabled |
| Edit code | Modify templates, styles, and scripts. (CI files are always locked). | Off |
| Branches & PRs | Save changes to new Git branches and open pull requests. | Off |
| See organization | View team members and roles. | Off |
| Manage members | Invite or update non-owner team members. | Off |
π« Hard Guardrails (What Agents Can Never Do)
Regardless of the permissions granted, AI agents can never:
- β Touch CI/CD Workflows: Agents cannot create or edit
.github/workflows/,.gitlab-ci.yml,.circleci/, or Git submodule files. - β Access Git Credentials: Agents never receive your private GitHub/GitLab passwords or OAuth tokens.
- β Modify Billing or Plans: Agents cannot upgrade, downgrade, or view credit cards.
- β Delete Projects: Agents cannot delete sites or disconnect Git repositories.
- β Exceed Your Role: An agent can never perform an action that you cannot personally perform. If your team access is removed, all agent tokens stop working immediately.
π‘οΈ Repository Protection & Safety
Bot Commits with Attribution
Every change committed by an agent is made through the Sitepins bot (sitepins[bot] on GitHub, Sitepins on GitLab). Commit messages explicitly name both you and your agent (e.g., Somrat via Claude).
Real-Time Conflict Detection
If someone is editing a file in the visual editor while an agent attempts a commit, Sitepins prevents silent overwrites:
- The commit is rejected with the latest version.
- The user editing the document receives an in-editor alert showing the external change.
Automatic Expiration & Revocation
- Tokens automatically expire after 7, 30, or 90 days.
- You can revoke any token with a single click in Settings β MCP Connection. Revocation takes effect immediately.
π₯οΈ Self-Hosting Setup
AI agent access works out of the box on self-hosted instances without extra third-party setup. It relies on your existing environment variables:
BASE_URL: The public URL of your Sitepins API.APP_URL: The public URL of your Sitepins web app.INTERNAL_API_SECRET: Shared secret securing internal communications.
See Environment Variables for full setup instructions.