Product · Security

AI agent security with scoped secrets and tool access

Paperclip controls AI agent access across five layers: runtime-resolved secret references, per-agent connector action rules, execution policy review stages, human roles with private projects and tasks, and self-hosted storage on your servers.

Off / Ask first / Allowedper-action rules on every connected app or MCP server
4 human rolesOwner, Admin, Operator and Viewer, plus private tasks
Runtime secretsscoped refs resolved per run, never pasted in prompts
Secrets & credentials

Keep raw secrets out of agent prompts

Static environment files hand every agent broad, long-lived keys. Paperclip stores company secrets and per-user secret values in its secrets manager, then binds secret references to agent, project, routine, or environment configuration. The server resolves each reference at runtime only for the dispatched run. User-scoped values stay private to their owner and are never displayed back, even to admins.

  • Secret references bind to agent, project, routine or environment config and resolve only at runtime
  • Company secrets and per-user secret values stay encrypted under a master key you control
  • User-scoped values remain private to their owner and are never shown to teammates or admins
Read the secret scopes reference→
Tool access by role

Restrict connector actions per agent

Giving a team shared agents should not give every agent access to every app. With Paperclip Connectors and MCP servers, you choose which people can use each connection, which agents are eligible, and a rule for every action: Off, Ask first, or Allowed. Normal new active actions start as Allowed, including writes, so narrow write and destructive actions to Ask first or Off before unattended work starts. Newly discovered actions stay quarantined until a person reviews them. Connector rules govern gateway tool calls, not shell commands such as git or gh.

  • Assign separate app accounts and tool lists to sales, support, engineering and operations agents
  • Set any action or the full Write group to Ask first so calls pause in the Review queue
  • Newly discovered actions arrive quarantined until an operator explicitly approves them
See how roles get separate connectors→
Isolation & governance

Sandboxes, review stages and private work

Combine execution isolation with human sign-off and workspace privacy. Paperclip supports isolated execution workspaces, opt-in per-task git worktrees (Isolated Workspaces), and configurable sandbox providers with network egress policies on providers that support them. Add Execution Policy review and approval stages so sensitive tasks require a reviewer or human approver before they close. Human membership roles (Owner, Admin, Operator, Viewer) stay separate from agent reporting lines, and Manage access restricts private projects and tasks to named people and agents.

  • Sandbox providers and opt-in Isolated Workspaces contain runs and reclaim leases on release
  • Execution Policy routes finished work through agent review and human approval before shipping
  • Private projects and tasks keep sensitive work restricted through Manage access
Read about governance and approvals→
Your infrastructure

Self-hosted storage with an honest data boundary

Paperclip runs on your own servers in local_trusted mode for personal use, or authenticated mode over Tailscale, a VPN, or HTTPS for a team. Tasks, threads, approvals, and encrypted secrets stay on your server. Paperclip does not run the model loop, so each configured runtime sends prompts, read files, and tool results to its model provider, and connectors call the external services you connect. Pair access controls with budget hard stops to cap financial blast radius too.

  • Company records, approvals and encrypted secrets stay in your own database and storage
  • Configured model providers still receive runtime prompts, read files and tool results
  • Bring your own provider keys or subscription logins and rotate them on your schedule
Read deployment modes→
Overview

How Paperclip secures AI agent tool access and secrets

Securing a multi-agent team requires separating what an agent can read, which credentials it receives, which external actions it can execute, and who approves finished work. Static API keys in shared .env files break down once several agents and teammates share tools, because one misbehaving loop or prompt injection inherits full account access.

Paperclip applies defense in depth across five controls: scoped secret references resolved at runtime, per-agent connector action rules (Off, Ask first, Allowed), Execution Policy sign-off stages, human company roles paired with private projects and tasks, and budget caps that pause runaway spend. Read how each role gets separate connectors to see role boundaries in practice.

Walkthrough

Set up scoped secrets, tool rules and review stages

Follow this five-step sequence to lock down credentials, tool permissions, approvals and access for a multi-agent Paperclip company.

  1. Store company and per-user secrets as scoped references

    Add shared API tokens as company secrets and personal credentials as user-scoped secrets in Paperclip’s secrets manager. Bind secret references to the exact agent, project, routine or environment that needs them instead of pasting raw values into prompts or task descriptions. Back up your secrets master key immediately.

  2. Configure per-agent connector action rules

    Open Connectors to connect apps or an MCP server. Choose whether the connection is personal or shared and pick which agents may access it. Because normal active actions start as Allowed, switch write and destructive actions to Ask first or Off before starting unattended work. Newly discovered actions stay quarantined until you review them.

  3. Add review and approval stages in Execution Policy

    Open a task’s Properties and add Reviewers and Approvers for sensitive deliverables. When an agent finishes, Paperclip moves the task to In Review until the configured reviewer and human approver sign off. For code repositories, pair task sign-off with repository branch protection so shell git or gh commands cannot merge unreviewed code.

  4. Assign human roles and restrict private projects or tasks

    Invite teammates with the right human role (Owner, Admin, Operator or Viewer) and explicit grants where needed. Sharing is the default, and privacy is explicit: mark sensitive projects or tasks private and use Manage access to select the exact people and agents allowed to view them.

  5. Verify your self-hosted data boundary and budgets

    Deploy in authenticated mode (--bind lan, --bind tailnet, or behind HTTPS) before teammates connect. Document which external model providers and connected services receive prompts, file contents and tool outputs, disable optional telemetry if policy requires it (DO_NOT_TRACK=1), and set budget caps on the company, agents and projects.

Control layers

Where each AI agent security control applies

No single control covers every risk. Use this table to see what Paperclip enforces directly and what your team configures in the surrounding environment.

AI agent security control layers in Paperclip, what each enforces and its boundary
Security layerWhat Paperclip enforcesConfiguration and boundary
Secrets managerEncrypts company and per-user secrets at rest and resolves scoped references at runtime for the dispatched run.Never paste raw keys in prompts. User-scoped values stay hidden even from admins. Back up the master key.
Connector action rulesEnforces Off, Ask first and Allowed per action on connected apps and MCP servers, and quarantines newly discovered actions.Normal new active actions start as Allowed, so tighten writes deliberately. Governs gateway calls, not shell git or gh.
Execution Policy sign-offRoutes completed tasks through configured Review and Approval stages and logs every decision and comment.Governs task sign-off before shipping. Pair with Git branch protection and deploy approvals for shell actions.
Human roles and privacySeparates Owner, Admin, Operator and Viewer grants from agent titles, and enforces Manage access on private projects and tasks.An agent titled admin has no Paperclip admin rights. Protected tasks stay private even if you later open their project.
Sandboxes and workspacesSupports opt-in Isolated Workspaces (per-task git worktrees) and configurable sandbox providers with lease cleanup and egress policy.Isolation strength and network policy depend on the sandbox provider and image you configure. Check coding adapter permission flags.
Self-hosted data pathKeeps tasks, threads, approvals, documents and encrypted secrets in your own database and storage.Configured model providers still receive runtime prompts, files and tool results, and connectors call connected apps.
Spend capsWarns at 80% and auto-pauses the company, agent or project at 100% of recorded spend (Budgets).Evaluated on recorded spend as runs complete, so in-flight runs can overshoot the cap.

Secrets manager

What Paperclip enforces
Encrypts company and per-user secrets at rest and resolves scoped references at runtime for the dispatched run.
Configuration and boundary
Never paste raw keys in prompts. User-scoped values stay hidden even from admins. Back up the master key.

Connector action rules

What Paperclip enforces
Enforces Off, Ask first and Allowed per action on connected apps and MCP servers, and quarantines newly discovered actions.
Configuration and boundary
Normal new active actions start as Allowed, so tighten writes deliberately. Governs gateway calls, not shell git or gh.

Execution Policy sign-off

What Paperclip enforces
Routes completed tasks through configured Review and Approval stages and logs every decision and comment.
Configuration and boundary
Governs task sign-off before shipping. Pair with Git branch protection and deploy approvals for shell actions.

Human roles and privacy

What Paperclip enforces
Separates Owner, Admin, Operator and Viewer grants from agent titles, and enforces Manage access on private projects and tasks.
Configuration and boundary
An agent titled admin has no Paperclip admin rights. Protected tasks stay private even if you later open their project.

Sandboxes and workspaces

What Paperclip enforces
Supports opt-in Isolated Workspaces (per-task git worktrees) and configurable sandbox providers with lease cleanup and egress policy.
Configuration and boundary
Isolation strength and network policy depend on the sandbox provider and image you configure. Check coding adapter permission flags.

Self-hosted data path

What Paperclip enforces
Keeps tasks, threads, approvals, documents and encrypted secrets in your own database and storage.
Configuration and boundary
Configured model providers still receive runtime prompts, files and tool results, and connectors call connected apps.

Spend caps

What Paperclip enforces
Warns at 80% and auto-pauses the company, agent or project at 100% of recorded spend (Budgets).
Configuration and boundary
Evaluated on recorded spend as runs complete, so in-flight runs can overshoot the cap.

Review connector action permissions, secret scopes and sandbox providers before running unattended agents.

FAQ

Questions about AI agent security, tool access and secrets

How do I restrict AI agent tool access by role in Paperclip?

Open Connectors, connect each app or MCP server, and select only the agents allowed to use that connection. Then set each action (or the entire Write group) to Off, Ask first or Allowed. For example, give a coding agent GitHub pull-request creation while keeping merge Off, and keep billing or email connections restricted to their own roles. See connectors for each role.

Do AI agents see raw API keys or passwords in Paperclip?

No raw secrets belong in prompts or ordinary agent config. Paperclip stores company and per-user secrets encrypted under your master key and binds them as secret references on agent, project, routine or environment settings. The server resolves references only for the authorized run, and user-scoped values are never shown back to teammates or admins.

Are connector actions blocked by default on a new connection?

No. On a normal new connection, active actions start as Allowed, including writes. Set write and destructive actions to Ask first or Off before letting agents run unattended. Any newly discovered actions that appear later stay quarantined until a person reviews them.

Can an agent with an admin title change company permissions or approve its own work?

No. Agent org-chart titles are separate from human membership roles (Owner, Admin, Operator and Viewer). Agents cannot approve their own governed action requests or edit their own principal permission grants. Human sign-off stages and company administration stay under authorized human members.

How do private projects and private tasks work for a shared team?

Sharing is the default so a whole team can collaborate with shared agents. For sensitive work, mark a project or task private and open Manage access to choose the exact people and agents that can see it. If you later open a private project to the company, its individually protected tasks stay private.

Does self-hosting Paperclip keep all prompts and files inside our network?

Self-hosting keeps your company records, task threads, approvals and encrypted secrets on your own server. However, Paperclip launches external agent runtimes such as Claude Code or Codex, which send prompts, read files and tool results to the model provider you configured. Connectors also reach the external apps you attach. See self-hosted AI agent stacks for the full boundary.

“Self-hosting gives you an honest list of where data goes. Task records and encrypted secrets stay on your servers, tool rules decide which actions wait for a person, and model calls go only to the providers you choose.”

The Paperclip security modelScoped secrets · per-action tool rules · self-hosted

Security you can read the source of

Self-host Paperclip, scope secrets at runtime, and grant each agent only the tools it needs.