> ## 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.

# directory

# `openclaw directory`

Verzeichnisabfragen für Kanäle, die dies unterstützen (Kontakte/Peers, Gruppen und „ich“).

## Gemeinsame Flags

* `--channel <name>`: Kanal-ID/Alias (erforderlich, wenn mehrere Kanäle konfiguriert sind; automatisch, wenn nur einer konfiguriert ist)
* `--account <id>`: Konto-ID (Standard: Kanalstandard)
* `--json`: Ausgabe als JSON

## Hinweise

* `directory` soll Ihnen helfen, IDs zu finden, die Sie in andere Befehle einfügen können (insbesondere `openclaw message send --target ...`).
* Für viele Kanäle sind die Ergebnisse konfigurationsbasiert (Allowlists / konfigurierte Gruppen) und kein Live-Verzeichnis des Anbieters.
* Die Standardausgabe ist `id` (und manchmal `name`), getrennt durch einen Tabulator; verwenden Sie `--json` für Skripting.

## Verwendung der Ergebnisse mit `message send`

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw directory peers list --channel slack --query "U0"
openclaw message send --channel slack --target user:U012ABCDEF --message "hello"
```

## ID-Formate (nach Kanal)

* WhatsApp: `+15551234567` (Direktnachricht), `1234567890-1234567890@g.us` (Gruppe)
* Telegram: `@username` oder numerische Chat-ID; Gruppen sind numerische IDs
* Slack: `user:U…` und `channel:C…`
* Discord: `user:<id>` und `channel:<id>`
* Matrix (Plugin): `user:@user:server`, `room:!roomId:server` oder `#alias:server`
* Microsoft Teams (Plugin): `user:<id>` und `conversation:<id>`
* Zalo (Plugin): Benutzer-ID (Bot API)
* Zalo Personal / `zalouser` (Plugin): Thread-ID (Direktnachricht/Gruppe) aus `zca` (`me`, `friend list`, `group list`)

## Selbst („ich“)

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw directory self --channel zalouser
```

## Peers (Kontakte/Benutzer)

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw directory peers list --channel zalouser
openclaw directory peers list --channel zalouser --query "name"
openclaw directory peers list --channel zalouser --limit 50
```

## Gruppen

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw directory groups list --channel zalouser
openclaw directory groups list --channel zalouser --query "work"
openclaw directory groups members --channel zalouser --group-id <id>
```
