> ## Documentation Index
> Fetch the complete documentation index at: https://openclaw.veiseule.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# approbations

# `openclaw approvals`

Gérez les approbations d’execution pour l’**hôte local**, l’**hôte de Gateway (passerelle)** ou un **hôte de nœud**.
Par défaut, les commandes ciblent le fichier d’approbations local sur le disque. Utilisez `--gateway` pour cibler la Gateway (passerelle), ou `--node` pour cibler un nœud spécifique.

Liens connexes :

* Approbations d’execution : [Exec approvals](/tools/exec-approvals)
* Nœuds : [Nodes](/nodes)

## Commandes courantes

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw approvals get
openclaw approvals get --node <id|name|ip>
openclaw approvals get --gateway
```

## Remplacer les approbations à partir d’un fichier

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw approvals set --file ./exec-approvals.json
openclaw approvals set --node <id|name|ip> --file ./exec-approvals.json
openclaw approvals set --gateway --file ./exec-approvals.json
```

## Assistants de liste d’autorisation

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw approvals allowlist add "~/Projects/**/bin/rg"
openclaw approvals allowlist add --agent main --node <id|name|ip> "/usr/bin/uptime"
openclaw approvals allowlist add --agent "*" "/usr/bin/uname"

openclaw approvals allowlist remove "~/Projects/**/bin/rg"
```

## Notes

* `--node` utilise le même résolveur que `openclaw nodes` (id, nom, ip ou préfixe d’id).
* `--agent` utilise par défaut `"*"`, qui s’applique à tous les agents.
* L’hôte de nœud doit annoncer `system.execApprovals.get/set` (application macOS ou hôte de nœud sans interface).
* Les fichiers d’approbations sont stockés par hôte à l’emplacement `~/.openclaw/exec-approvals.json`.
