Connect an agent

Put the same guardrails on every agent your team runs, and optionally see them all in one workspace. Each connector checks actions and keeps receipts on your side first.

AgentPackageChecked before it runsNot covered
Claude Code, Cursor@scopebond/hookCommands, file access, MCP tools, web fetchesProcesses started outside the agent. Cursor file edits are flagged, not prevented
OpenAI Codex@scopebond/hookLocal commands, file changes, MCP toolsHosted web tools and Codex cloud runs
Your own agent@scopebond/gatewayActions sent through the gatewayAnything reached without the gateway
MCP servers@scopebond/mcpTool callsResource reads and prompts
Agent frameworks@scopebond/frameworkWrapped tool callsCode outside the wrapper
GitHub pull requests@scopebond/github-actionAgent pull requests, before mergeWork already done in the agent's sandbox

All six work locally today. Connect a computer, at the top of the workspace, covers the first two (Claude Code and Cursor, and Codex, plus GitHub Copilot); a self-hosted gateway connects as below; the other three report through those or through your repository.

Claude Code, Cursor or Codex

In the workspace, open Computers → Connect a computer, choose the environment and run the command on the computer. There is no agent to add: the computer joins your tool in that environment, which is made with your first computer there and named after you and the computer (for example "Dana · MacBook", then "Dana · Claude Code" once the computer reports its tool). Your other computers in the same environment join the same tool. On your plan an agent is one coding tool used by one person, counted while it has sent a record in the last 30 days: Claude Code and Cursor on one laptop are two agents, and the same tool on your second computer is still one. Settings → Billing shows the agents in use. Rename it or add labels (kind of work, impact, purpose) on the computer's page. From a tool's page, Connect a computer for this tool connects one to that tool instead. In the three-tab workspace (v4), Connect a computer is in the header: choose the computer and the tool, then run the command or download the Windows installer, and the popup waits for the computer to check in. Through the API, POST /api/app/organizations/{organizationId}/environments/{environmentId}/gateway-enrollments takes an optional agent_id to choose the tool and an optional name for the computer.

Windows: the signed installer

Windows installs with one installer, Scopebond for Windows, signed by Avouro LLC. It holds the Scopebond Agent and the hook, so no Node.js or npm is needed. The download link appears on your workspace's Connect page; every release is also on the GitHub releases page.

  1. Download Scopebond for Windows (signed by Avouro LLC), the .msi file.
  2. Run it. It installs for your user only, with no administrator prompt.
  3. The Scopebond tray starts and opens your workspace's approval page in the browser. Check that the code the tray shows matches, choose the environment and approve within 10 minutes. The page then shows the computer connecting, its first action and the Scopebond Agent's self-check.
  4. Done. Scopebond is listed in Settings → Apps → Installed apps, starts with Windows and updates itself. For Codex, open Codex, run /hooks and choose Trust once.
  5. Start a new session and ask the agent to do one safe action. It shows as connected in Computers.

The installer puts scopebond-agent on your PATH. Later, in a new terminal, scopebond-agent status shows when this computer last delivered records and anything waiting to send, and scopebond-agent uninstall removes it (as does Uninstall in Installed apps). The hook's own commands are scopebond-agent hook <command>, for example scopebond-agent hook doctor.

To install for every user on a computer (Intune, Group Policy or a script), an administrator runs:

msiexec /i scopebond-agent-<version>-x64.msi /qn ALLUSERS=1 WORKSPACE=https://cloud.scopebond.com

Each person then approves the sign-in from the Scopebond tray. A computer's page in the workspace says how its agent was installed.

macOS: the signed package

When your workspace offers it, Connect a computer on a Mac shows Download for Apple silicon and Download for Intel: the Scopebond package, signed by Avouro LLC and notarized by Apple. It installs for every user of the Mac (it asks for an administrator's password): the scopebond-agent command, the Scopebond menu-bar app, and the Scopebond Agent, which starts at each sign-in and updates itself to the signed version your workspace names. Then run the command Connect shows in Terminal (scopebond-agent setup <workspace-url>, with --cursor or --codex for those tools) and approve the code as in step 2 below. Remove it with sudo "/Library/Application Support/Scopebond/uninstall.sh". Until the package is offered, use the npm steps below; they work on every Mac.

macOS or Linux

  1. On the computer where you use the agent, open your own terminal (not inside the agent), go to your home folder and run the setup command:

``bash cd ~ npx -y @scopebond/agent@latest setup <workspace-url> # add --cursor or --codex ``

  1. It prints a workspace link and a code. Open the link in your browser. Check that the code matches, choose the environment and approve within 10 minutes. The command then installs the Scopebond Agent for your user, starts it with your sign-in and ends with its status; the page shows the computer connecting, its first action and the agent's self-check.
  2. For Codex, open Codex, run /hooks, and choose Trust.
  3. Start a new session and ask the agent to do one safe action. It shows as connected in Computers.

scopebond-agent status should say the computer is connected and that the agent starts with your sign-in. Running the setup command again is safe: it keeps the connection and only puts back what is missing. To remove it later, run scopebond-agent uninstall; the .scopebond folder stays until you run uninstall --purge.

GitHub Copilot is set up by the hook's sign-in for now (the agent's setup does not take --copilot yet): run npx -y @scopebond/hook@latest login <workspace-url> --copilot, then npm install -g @scopebond/agent@latest and scopebond-agent autostart on. Connect a computer in the workspace shows the sign-in command when you choose Copilot, and its Other ways to connect lists the step-by-step sign-in for every tool.

What changes on the computer

Signing in sets up the whole computer. It adds the Scopebond hook to your user-level agent settings (%USERPROFILE%\.claude\settings.json on Windows, ~/.claude/settings.json elsewhere; likewise .cursor\hooks.json and .codex\hooks.json), so every project is checked, and it keeps everything else in that file. The machine credential is saved in .scopebond\cloud.json in the same home folder; never share or commit it. npx -y @scopebond/hook@latest status on macOS and Linux (scopebond-agent hook status on Windows) shows when this computer last delivered records and anything waiting to send. If a step fails, the When something goes wrong table gives the cause and the one fix.

The Scopebond Agent runs in the background for your user: it sends waiting records, keeps the connection and rules current, moves Scopebond to the version your workspace names, puts back a lost hook entry and checks once a day that everything works end to end. It fixes what it can by itself and speaks up only when you need to act, such as approving a sign-in code. On Windows the Scopebond icon in the notification area lists what was blocked and what you can do about each block (The Scopebond icon on Windows); on macOS and Linux it notifies you when something needs attention. Where your workspace lets people unblock an action, you do it from the icon's list (a reason is optional unless the workspace asks for one). The hook keeps deciding every action even when the agent is not running.

To check one project only, without a workspace, run npx -y @scopebond/hook@latest init in the project root on macOS and Linux, or scopebond-agent hook init on Windows with Scopebond for Windows installed (init --shared gives the whole team the setup through git).

A computer without a browser can use a one-time setup command instead: Use a one-time setup command instead on the Connect page. Its key is single use, expires after about 15 minutes, and should stay out of chat.

GitHub Copilot in VS Code and the Copilot cloud agent (coming next)

Not available yet, and not verified on a live install. Both run the same Copilot hook file as the Copilot CLI, and both are cooperative · prevents if honored · a hook timeout fails open: Copilot asks Scopebond first and honours a deny, but if the hook runs past its time limit Copilot lets the action run, so Scopebond answers within its own shorter deadline and denies when it cannot decide in time (VS Code Local: not yet confirmed; its default limit is 30 seconds). On Connect they are listed as planned.

  • VS Code agent mode reads .github/hooks/*.json in the workspace and ~/.copilot/hooks/*.json for your user (.claude/settings.json only when the VS Code setting chat.useClaudeHooks is on). With the Copilot session target it behaves like the Copilot CLI. With the Local session target it sends its own tool names, which are not published, so until a person's check records them its calls are recorded and not checked, and Scopebond's protection of hook files does not apply inside Local yet. Whether Local runs Scopebond's hook file at all is not yet confirmed. VS Code's own chat.useHooks, chat.hookFilesLocations and chat.useClaudeHooks settings can switch these hooks off; an agent that tries to set them in a VS Code settings file through a tool Scopebond checks is refused, but a change made in VS Code's settings screen is not seen.
  • The Copilot cloud agent runs only the hook file committed to .github/hooks/ on the default branch, in a sandbox with no one to answer questions: an action that would need someone's approval is denied there, and the reason says so. It uses the repository installation (Computers → Repositories): run init --repo, commit the files to the default branch, and add the repository's token as the secret SCOPEBOND_REPO_TOKEN in the repository's copilot environment. The token can only deliver records and read rules for that one repository installation (it cannot read records or connect computers), so it is safe to give to the agent it governs. Without the token, the committed hook says the repository is not connected and checks nothing. Keep gating its pull requests with the GitHub check.

To help verify your setup, run npx -y @scopebond/hook@latest capabilities --prove --copilot, use Copilot for a few minutes, and run it again: it lists the tool names Copilot actually sent from each surface on that computer (names and argument names only, never values).

Your own agent: the gateway

Run the open-source gateway in front of the tools or APIs your agent uses. It denies anything unsigned, unknown or outside your policy.

npx -y @scopebond/gateway@latest init

On Windows, type npx.cmd instead of npx in PowerShell.

init writes an agent key and a starter policy, and prints the start command. Keep the printed token and the key out of source control. For the workspace, open Computers → Connect a computer, choose Self-hosted gateway and Create the setup command; a gateway connected earlier gets a new one from its computer's page. Full setup: https://github.com/avouro-com/scopebond.

MCP servers

Put the proxy between your MCP client and the server. A denied tool call never reaches the server.

npx -y @scopebond/mcp@latest --server filesystem --policy scopebond.policy.json --key scopebond-agent.key \
  -- npx -y @modelcontextprotocol/server-filesystem /path/to/workspace

On Windows, type npx.cmd for both. To install the proxy once instead: npm install -g @scopebond/mcp@latest (npm.cmd on Windows), then run scopebond-mcp.

Agent frameworks

Wrap your tools once. A denied call returns a refusal to the model instead of running.

import { createToolGuard, wrapVercelTools } from "@scopebond/framework";
const guard = createToolGuard({ policy, agentKeyPem, manifest: { transfer: "payout.create" } });
const tools = wrapVercelTools(myTools, guard); // also LangGraph and OpenAI tools

GitHub pull requests

Add the action to a read-only workflow on pull_request_target that checks out the base commit. Make it a required check. The policy comes from the base commit, so a pull request cannot loosen its own rules.

- uses: actions/checkout@v4
  with: { ref: "${{ github.event.pull_request.base.sha }}", fetch-depth: 0 }
- uses: avouro-com/scopebond/packages/github-action@main  # or pin a commit
  with: { policy: scopebond.policy.json }

Agent pull requests (Copilot, Devin, Codex, Cursor, Claude) are checked. People's pull requests are never blocked. For Cursor, this stops an out-of-policy edit from merging.

After connecting

Open Activity to see each receipt, Protection to set each rule to Monitor or Block for everyone, a group or one agent, and Settings → Notifications (in the account menu at the top right) to send alerts by email, Slack or webhook.

See how much of your fleet is governed

The top of Overview shows how many of your connected computers are protected. To see coverage against all the computers your company manages, an owner or admin imports a device list in Settings → Security & data → Known devices: paste host names, one per line, or upload a CSV export from Microsoft Intune, Jamf or Fleet (the column headed host name, device name or computer name is used; without a header, the first column, and the import message says which header was read; at most 5,000 devices and 2 MB per import; a quoted cell that never closes is refused and nothing changes). A new import replaces that source's list. Scopebond keeps only a hash of each host name unless you choose to keep the names; kept names of listed devices that no signed-in computer matches are listed there.

A listed device matches a computer that signed in to the workspace with the same host name, compared exactly apart from case and surrounding spaces:

  • Use the computer's own host name, as hostname prints it. A full domain name (laptop-7.corp.example.com) or a display name from your device manager ("Jane's MacBook Pro") does not match.
  • A computer that signed in with SCOPEBOND_HOSTNAME_MODE=hash matches through its hash; one that signed in with off sends no name and is counted as "name withheld".
  • A host name with characters other than plain letters, digits and punctuation, or longer than 80 characters, is stored shortened at sign-in and cannot match.

Check a computer from your workspace

  • Right after you approve, the approval page keeps following that computer: it finished connecting, its first action arrived, and the Scopebond Agent's self-check passed. A step still waiting after two minutes shows the one thing to do, in the form your system runs. You can close the terminal; the page keeps checking for 30 minutes and then offers Check again.
  • Computers lists every computer. Needs attention names the most important problem on a computer: records missing, a failed self-check, or the Scopebond hook set up twice. Home → Needs attention counts the silent computers (out of contact for more than a day) and, under them, the other computers that need attention.
  • Open a computer to see "This computer": its versions, its last self-check, and the one fix, most important first.
  • Records missing since …: the computer numbers every record, and some numbers never arrived. Run scopebond-agent flush on it (without the agent, the hook's flush). If it says nothing is waiting, they were lost on that computer and the line stays as the record of the gap.
  • Lost on the computer: the computer's delivery queue was removed before some records were sent. They cannot be recovered; the count says how many and when it was seen.
  • A computer that signed in again shows its old connection as replaced, and one you disconnected shows as disconnected. Neither needs anything.