Overview
The Swif OpenClaw Tools Access Policy controls which tools OpenClaw agents may use on managed devices.
Administrators can establish a base tool profile, allow or deny individual tools and tool groups, apply provider-specific and sender-specific restrictions, control tools inside sandboxed sessions, restrict elevated command execution, manage agent-to-agent access, and limit session visibility.
The policy supports:
macOS
Windows
Linux
Company-owned devices
BYOD devices
This is a security-sensitive policy. An overly broad configuration can allow an AI agent to execute commands, modify files, interact with external services, communicate through connected channels, or access other sessions. Begin with least privilege and test each permitted workflow before expanding access.
Requirements
Requirement | Details |
Swif access | An active Swif workspace and an administrator with permission to create and assign policies |
Supported platforms | macOS, Windows, and Linux |
Device ownership | Company-owned and BYOD devices |
Device management | The target device must be enrolled in Swif Agentic Security |
OpenClaw | The OpenClaw gateway must be installed and configured on the device |
Connectivity | The device must be online to receive a new or updated policy |
Testing | Use a non-production device, workspace, and test account before broad deployment |
The policy configures OpenClaw tool access. It does not install the OpenClaw gateway or the Swif Agentic Security agent.
How Tool Access Is Evaluated
OpenClaw evaluates tool access through multiple layers. The effective result is the intersection of the applicable profile, allow rules, deny rules, provider or sender restrictions, sandbox rules, and other runtime security controls.
The most important rules are:
The tool profile establishes the base set of tools.
Allowed Tools can narrow access to an explicit list.
Also Allowed Tools adds tools to a base profile in scopes where Swif exposes that field.
Denied Tools overrides profile and allow rules.
Provider, sender, and sandbox policies can impose additional restrictions.
Operating-system permissions and OpenClaw runtime controls still apply. A tool being allowed does not guarantee that its action will succeed.
Important: Deny rules take precedence. If a tool matches both an allow rule and a deny rule, it remains denied.
Tool names are case-insensitive in OpenClaw allow and deny policies. Wildcards such as * are supported.
Recommended Configuration
For an initial enterprise deployment, use the following least-privilege baseline:
Setting | Recommended value |
Tool Profile |
|
Allowed Tools | Add only the tools required for the approved workflow |
Denied Tools | Explicitly deny high-risk tools that are not required |
Elevated Exec | Disabled |
Agent To Agent | Disabled |
Sessions Visibility |
|
For a managed software-development workflow, you can use the coding profile, but consider denying unrestricted runtime execution and file modification unless those capabilities are required:
group:runtime write edit apply_patch
If developers need read-only filesystem access, deny individual mutation tools instead of denying group:fs, because group:fs also contains read.
Default-profile notice: Explicitly select a Tool Profile when creating the policy. Native OpenClaw commonly initializes an unset local profile as coding, while Swif policy versions can display a more restrictive profile in the editor. Selecting the value explicitly prevents the effective profile from depending on an inherited or previously applied default.
Tool Profiles
Minimal
The minimal profile permits only basic session-status access.
Use it when an agent should have no general filesystem, command-execution, web, messaging, or cross-session tools unless you add specific exceptions.
Coding
The coding profile is intended for software-development workflows. It includes tool groups for:
Filesystem access
Runtime and command execution
Web access
Sessions and subagents
Memory
Selected automation, planning, agent, and media tools
Configured MCP servers through
bundle-mcp
This profile provides significant capability. Review filesystem mutation, command execution, external access, and session tools before assigning it to production devices.
Messaging
The messaging profile supports messaging and conversation-oriented workflows, session access, subagents, and related coordination tools. It can also expose configured MCP servers through bundle-mcp.
Use sender-specific rules when a connected channel accepts requests from multiple people.
Full
The full profile applies no profile-level tool restriction. It is equivalent to leaving the native OpenClaw profile unrestricted.
Do not use full as a convenience default. Assign it only when the device, user, connected channels, credentials, workspace, and runtime isolation have been reviewed for unrestricted tool access.
Common Tool Groups
Tool groups make it easier to manage related capabilities together.
Tool group | Examples of included capabilities |
| Command and code execution, including |
| Filesystem access, including |
| Web search and retrieval tools |
| Session listing, history, search, messaging, spawning, and status tools |
| Memory search and retrieval |
| Messaging tools |
| Node and computer-control tools |
| Agent, goal, planning, and related workflow tools |
| Image, audio, video, and text-to-speech tools |
| Tools supplied by loaded plugins and configured MCP servers |
Group membership can change as OpenClaw evolves. Review the current OpenClaw tools configuration reference before using a group in a sensitive policy.
Policy Settings
Tool Profile
Sets the base tool allowlist before additional allow and deny rules are applied.
Available values:
Value | Intended use |
| Highly restricted baseline |
| Development and coding workflows |
| Messaging and conversation workflows |
| Unrestricted base profile |
Always choose this value explicitly.
Allowed Tools
Creates an explicit global tool allowlist. Entries can include:
Individual tool IDs, such as
web_searchTool groups, such as
group:fsWildcard patterns
Examples:
group:fs
group:web
web_search
apply_patch
Use exact tool names whenever practical. A broad group or wildcard can automatically include capabilities added by a future OpenClaw release.
Denied Tools
Creates an explicit global denylist. Deny rules win over profile and allow rules.
Examples:
exec
process
write
edit
apply_patch
group:runtime
write and apply_patch are separate tool IDs. Denying write does not automatically deny apply_patch. To block all filesystem operations, deny group:fs. To preserve read access while blocking changes, deny each mutation tool individually.
Provider Tool Policy
Applies additional rules to a particular AI provider or provider/model combination.
Each entry contains:
Field | Purpose |
Name | Provider or model key, such as |
Tool Profile | Provider-specific base profile |
Allowed Tools | Explicit allowlist for this provider or model |
Also Allowed Tools | Adds tools to the selected provider profile |
Denied Tools | Provider-specific denylist |
OpenClaw applies the base profile, then the provider profile, followed by provider allow and deny rules. Use provider policies to reduce access for a provider or model that should not receive the full global tool set.
Do not configure Allowed Tools and Also Allowed Tools in the same provider entry. OpenClaw rejects a scope containing both. Use one of these patterns:
Set Allowed Tools to define the complete permitted set.
Set a Tool Profile and use Also Allowed Tools to add specific exceptions.
Sender Tool Policy
Restricts tools according to the verified requester identity supplied by an OpenClaw channel adapter.
The Name field identifies the sender rule. Supported key formats include:
channel:discord:1234567890123
id:guest-user-id
e164:+15555550123
username:approved-user
name:Approved User *
Each sender entry can contain a Tool Profile, Allowed Tools, Also Allowed Tools, and Denied Tools.
Sender rules provide defense in depth. They do not replace channel authentication or access controls, and they do not authenticate names or instructions merely included in message text.
Use the wildcard sender * to establish a restrictive fallback for requesters who do not match a more specific rule.
Sandbox
The Sandbox Tool Policy creates an additional allow and deny gate for sessions that are already sandboxed.
It supports:
Tool Profile
Allowed Tools
Also Allowed Tools
Denied Tools
This setting does not enable OpenClaw sandbox mode by itself. It controls tool visibility within a sandbox created by the applicable OpenClaw agent or runtime configuration.
For MCP or plugin tools to remain available inside a sandbox, you may need to add one of the following to Also Allowed Tools:
bundle-mcp
group:plugins
You can instead allow a specific plugin ID, exact MCP tool name, or an appropriately scoped wildcard. Avoid group:plugins when only one integration is required.
Elevated Exec
Controls whether the exec tool can run outside the sandbox.
Field | Purpose |
Enabled | Enables or disables elevated execution outside the sandbox |
Allow From | Lists the channel and sender IDs allowed to request elevated execution |
For each Allow From entry:
Name is the channel key, such as
whatsappordiscord.Sender IDs contains the phone numbers or platform IDs authorized for that channel.
The Swif policy default is Disabled.
Warning: Elevated execution bypasses sandbox isolation for the applicable command. Enable it only for explicitly identified senders, and combine it with operating-system permissions, logging, and a narrowly scoped command workflow.
Do not enable elevated execution with an empty or unverified sender configuration.
Agent To Agent
Controls whether one OpenClaw agent can target another agent through supported session tools.
Field | Purpose |
Enabled | Enables or disables cross-agent tool access |
Allowed Agents | Lists the agent IDs permitted to participate in cross-agent targeting |
The Swif policy default is Disabled.
When enabled, list every approved participating agent. OpenClaw requires both the requesting and target agent IDs to match the allowlist.
Important: In native OpenClaw behavior, an omitted or empty agent allowlist can be treated as unrestricted when agent-to-agent access is enabled. Do not enable this feature until Allowed Agents contains the complete intended set. Review the policy after deleting or renaming an agent.
Sessions
Controls which sessions can be targeted by supported session tools such as session listing, history, search, send, and status operations.
Visibility | Access scope |
| Only the current session |
| The current session and sessions it spawned; the canonical main session can have broader same-agent visibility |
| Sessions belonging to the current agent ID |
| Any session allowed by the applicable agent-to-agent policy |
The Swif policy default is tree.
Use self for the narrowest isolation. Use tree when a workflow requires subagents. Avoid all unless administrators have reviewed cross-agent access and the risk of exposing other users' or agents' session history.
Sandbox runtime settings can further restrict session visibility even when this policy selects a broader scope.
Create the Policy
Sign in to the Swif Admin Console.
Go to Agentic Security > Policy Management.
Select Create new policy.
Start from scratch and select Swif OpenClaw Tools Access Policy.
Enter a descriptive policy name, such as:
OpenClaw Restricted Coding Tools
Select the Tool Profile explicitly.
Configure the required allow and deny rules.
Leave Elevated Exec and Agent To Agent disabled unless the approved workflow requires them.
Set Sessions Visibility to the narrowest scope that supports the workflow.
Assign the policy to a test device or pilot device group.
Review the configuration and finish creating the policy.
Allow the device to check in and apply the policy.
For the general assignment workflow, see Assigning policies to devices or groups.
Configuration Examples
Minimal Agent With Web Search Only
Setting | Value |
Tool Profile |
|
Allowed Tools |
|
Elevated Exec | Disabled |
Agent To Agent | Disabled |
Sessions Visibility |
|
Use this pattern for an agent that needs research access but should not read files, run commands, modify the device, or interact with other sessions.
Coding Agent Without Command Execution or File Changes
Setting | Value |
Tool Profile |
|
Denied Tools |
|
Elevated Exec | Disabled |
Agent To Agent | Disabled |
Sessions Visibility |
|
This preserves much of the coding workflow while blocking command execution and common filesystem mutation tools. Test the exact agent because some development workflows may require one of the denied tools.
Messaging Agent With a Restrictive Sender Fallback
Setting | Value |
Tool Profile |
|
Sender entry for approved user | Explicitly permitted messaging and session tools |
Sender entry | Deny |
Elevated Exec | Disabled |
Sessions Visibility |
|
Use verified channel and sender IDs. Do not rely only on a display name when a stable sender ID is available.
Verify the Policy
After deployment:
Confirm that the target device is online.
Open the policy deployment report and confirm that it was applied successfully.
OpenClaw should continue to start normally on the device.
Begin a new test session so the current policy is loaded.
Confirm that an allowed tool is visible and works as expected.
Ask the agent to use a denied tool in a harmless test.
Confirm that the denied tool is unavailable or refused.
If sender rules are configured, test both an approved sender and the fallback sender policy.
If sandbox rules are configured, repeat the test inside the intended sandbox mode.
Review Agentic Security logs for the test actions when logging is enabled.
Do not test elevated execution, deletion, external messaging, or cross-agent access with production data or credentials.
Note: A successful policy status confirms that Swif delivered the configuration. It does not prove that every rule behaves as intended for every provider, plugin, channel, or OpenClaw version. Functional testing is required.
Interaction With Agentic Security Logging
Use the Swif Agentic Security Logging Policy alongside this policy when administrators need an audit record of supported agent activity.
The tools access policy determines which tools an OpenClaw agent may use. The logging policy determines whether supported activity is reported for monitoring and investigation. Enabling logging does not grant a tool, and allowing a tool does not automatically enable logging.
Security Considerations
Use the narrowest profile that supports the business workflow.
Prefer exact tool names over broad wildcards.
Review tool-group membership after OpenClaw upgrades.
Keep
exec,process, filesystem mutation, external messaging, and browser or computer control restricted unless required.Treat
bundle-mcpandgroup:pluginsas access to additional external capabilities.Use stable, verified sender identifiers for channel policies.
Keep elevated execution disabled for untrusted or public channels.
Limit session visibility to prevent one workflow from exposing another session's history.
Require logging and administrator review for privileged workflows.
Test policy changes on isolated data before production rollout.
Do not treat tool policy as an operating-system sandbox or identity boundary.
Troubleshooting
An Allowed Tool Does Not Appear
Check the following:
The tool is included in the selected profile or explicit allowlist.
The tool is not matched by a global deny rule.
A provider or sender policy is not restricting it.
The session is not subject to a stricter sandbox tool policy.
The required plugin or MCP server is installed, loaded, and permitted inside the sandbox.
The current provider and OpenClaw version support the tool.
A new session was started after the configuration changed.
Remember that deny rules win over all matching allow rules.
A Denied Tool Is Still Available
Confirm the exact tool ID shown by the current OpenClaw version.
Check whether the action uses a different tool ID or plugin tool.
Deny
apply_patchseparately fromwrite.Use
group:runtimeto cover the runtime execution group.Review provider, agent, and local OpenClaw configuration for another applicable scope.
Confirm that the latest policy version was delivered to the device.
Start a new session and test again.
MCP or Plugin Tools Disappear in a Sandbox
Sandbox tool policy is an additional gate. Add only the required plugin ID, MCP tool name, or narrowly scoped wildcard to Also Allowed Tools.
Use bundle-mcp for OpenClaw-managed MCP servers or group:plugins for all plugin-owned tools only when that broader access is intended.
OpenClaw Rejects the Configuration
Check for these common causes:
Allowed Tools and Also Allowed Tools are both configured in the same nested scope.
A tool profile contains a value other than
minimal,coding,messaging, orfull.Session visibility contains a value other than
self,tree,agent, orall.A provider, model, sender, channel, or agent key is malformed.
An array contains blank or unintended entries.
Correct the policy, redeploy it, and review the new deployment report.
Elevated Execution Does Not Work
Confirm that:
Elevated Exec > Enabled is enabled.
The request originated from the configured channel.
The sender's verified ID exactly matches an entry in Sender IDs.
The
exectool is permitted by the applicable profile and tool policies.The OpenClaw runtime and operating system permit the requested action.
Do not broaden the sender allowlist merely to make a failed test pass. First verify the actual channel identity supplied to OpenClaw.
Agent-to-Agent Access Is Broader Than Expected
Disable Agent To Agent immediately while reviewing the policy.
Confirm that Allowed Agents is neither omitted nor empty.
List both the requesting and target agent IDs.
Review Sessions Visibility and avoid
allunless required.Recheck the allowlist after an agent is deleted or renamed.
Start new sessions and repeat the test with non-sensitive data.
Change or Remove the Policy
To reduce access, update the policy with a narrower profile or additional deny rules, then verify the result in a new session.
To stop managing OpenClaw tool access through this policy:
First deploy the restrictive state that should remain on the device.
Confirm that the device received the updated configuration.
Remove the policy assignment or delete the policy.
Review the local OpenClaw configuration and effective tool access.
Removing a policy assignment does not necessarily restore the configuration that existed before Swif managed it. Do not remove the assignment while a broad or privileged policy is the last applied state.
Summary
The Swif OpenClaw Tools Access Policy provides centralized control over OpenClaw tool access on macOS, Windows, and Linux devices.
For a secure deployment:
Start with the
minimalprofile.Add only the tools required for the approved workflow.
Use deny rules for high-risk capabilities.
Keep elevated and cross-agent access disabled unless required.
Restrict session visibility.
Test allowed and denied actions in a new session.
Enable Agentic Security logging for audit visibility.
Review the configuration after OpenClaw upgrades.