Skip to Content
πŸ€– AI AgentsPermissions & Security

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:

PermissionWhat It AllowsDefault
See sitesView and list the sites covered by the token.Always On
Read filesRead content, schemas, and file history.Always On
Edit contentCreate, edit, and delete files in content and config folders.Enabled
Manage mediaUpload, rename, and delete assets in your media folder.Enabled
Edit schemasModify blueprints and snippets in .sitepins/schema.Enabled
Edit codeModify templates, styles, and scripts. (CI files are always locked).Off
Branches & PRsSave changes to new Git branches and open pull requests.Off
See organizationView team members and roles.Off
Manage membersInvite 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:

  1. The commit is rejected with the latest version.
  2. 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.

Last updated on