content/manuals/ai/gordon/how-to/permissions.md
{{< summary-bar feature_name="Gordon" >}}
Before Gordon uses a tool or action that can modify your system, it proposes the action and waits for your approval before executing.
By default, the following actions require approval before Gordon can use them:
To change the default permission settings for Gordon:
Open Docker Desktop.
Select Gordon in the sidebar.
Select the settings icon at the bottom of text input.
In the Basic tab you can configure whether Gordon should ask for permission before using a tool.
You can also enable YOLO mode to bypass permission checking altogether.
The new permission settings apply immediately to all sessions.
When you choose "Approve for this session" (Desktop) or "A" (CLI), Gordon can use that specific tool without asking again during the current conversation.
Example:
$ docker ai "check my containers and clean up stopped ones"
Gordon proposes:
docker ps -a
Approve? [Y/n/a]: a
[Gordon executes docker ps -a]
Gordon proposes:
docker container prune -f
[Executes automatically - you approved shell access for this session]
Session permissions reset when:
docker ai (CLI)Working directory : The working directory sets the default context for file operations. It does not constrain Gordon's access to files or directories; Gordon can read files outside this directory.
Verify before approving : Gordon can make mistakes. Before approving:
If you don't understand an operation, ask Gordon to explain it or reject and request a different approach.
Destructive operations
: Gordon warns about destructive operations but won't prevent them. Operations
like docker container rm, docker system prune, and docker volume rm can
cause permanent data loss. Back up important data first.
Stop Gordon during execution by pressing Ctrl+C (CLI) or selecting Cancel
(Desktop).
Revert Gordon's actions using Docker commands or version control:
Use version control for all files in your working directory.
Administrators can control Gordon's capabilities at the organization level using Settings Management.
Available controls:
For Business subscriptions, Gordon must be enabled by an administrator before users can access it.
See Settings Management for details.