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

# NanoClaw

> Connect CaptureFlow to a NanoClaw agent group.

NanoClaw keeps credentials in its vault, which adds them to requests for one host. CaptureFlow takes an API key from **Settings > API & MCP** as an `Authorization: Bearer` header.

**1. Store the key in the vault**

```bash theme={null}
onecli secrets create --name CaptureFlow --type api_key --file "$key_file" \
  --host-pattern mcp.captureflow.ai \
  --header-name Authorization --value-format 'Bearer {value}'
```

Then attach it to your agent (OneCLI gateway 1.44 or later, CLI 2.9 or later):

```bash theme={null}
onecli agents grants attach-secret --id "$AGENT_ID" --secret-id <secret-id>
```

**2. Add the server**

```bash theme={null}
ncl groups config add-mcp-server --id <group-id> --name captureflow --url https://mcp.captureflow.ai/mcp
```

**3. Restart the group**

```bash theme={null}
ncl groups restart --id <group-id>
```

NanoClaw rejects URLs with credentials in them, and its `--headers` flag is for values that aren't secret: keep the key in the vault.

> [!NOTE]
>
> The vault command combines flags from NanoClaw's credentials page (a secret for a host, injected as a header with a Bearer format). Check it against your OneCLI version.

Sources: [NanoClaw docs: tools](https://docs.nanoclaw.dev/extend/tools), [NanoClaw docs: credentials](https://docs.nanoclaw.dev/operate/credentials).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.