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

# OpenClaw

> Use OpenClaw agents as OpenAI-compatible models in Enconvo

OpenClaw is a self-hosted AI agent platform for running assistants across chat, messaging channels, tools, skills, and automations.

OpenClaw can expose its agents through an OpenAI-compatible Gateway. After you enable the Gateway, Enconvo can use an OpenClaw agent like any other AI model, including inside chat, Enconvo agents, and model-powered features.

OpenClaw's Gateway exposes OpenAI-compatible endpoints such as `/v1/models`, `/v1/chat/completions`, and `/v1/responses`. Enconvo's OpenClaw provider uses the Chat Completions API (`/v1/chat/completions`).

> [!NOTE]
>
> Enconvo does not use the OpenClaw Responses API for this provider. Configure OpenClaw through its OpenAI-compatible Chat Completions Gateway.

New to OpenClaw? Start with the [OpenClaw Getting Started guide](https://docs.openclaw.ai/start/getting-started), then return here to connect it to Enconvo.

See the [OpenClaw Gateway docs](https://docs.openclaw.ai/gateway#openai-compatible-endpoints) for the full Gateway endpoint reference.

## Before you start

* OpenClaw installed on the machine that will run the Gateway
* The OpenClaw Gateway running on a reachable host and port
* The Chat Completions Gateway endpoint enabled
* The Gateway token from `~/.openclaw/openclaw.json`
* Enconvo with the OpenClaw AI model provider enabled

## Set up automatically

Open **Settings → AI Model → OpenClaw**. The setup card can start, stop, and configure the local OpenClaw Gateway for you.

Use **Auto Setup** when OpenClaw is installed on the same Mac as Enconvo. Enconvo will:

**1. Find OpenClaw**

Check that the `openclaw` CLI exists on this Mac.

**2. Enable Chat Completions**

Run `openclaw config set gateway.http.endpoints.chatCompletions.enabled true`.

**3. Prepare the Gateway token**

Read `gateway.auth.token` from `~/.openclaw/openclaw.json`, or create one if it is missing.

**4. Start the Gateway**

Start or restart the OpenClaw Gateway service.

**5. Verify the API**

Probe the Gateway with `/health` and `/v1/models`.

**6. Save credentials**

Save the base URL and Gateway token into Enconvo's OpenClaw credentials.

The setup card shows a runtime badge such as **Running** or **Stopped**. While the card is visible, Enconvo refreshes this status periodically and stops refreshing when the card is no longer visible.

## Turn on the OpenClaw gateway

You can ask OpenClaw to prepare the Gateway details for you:

```text theme={null}
enable openai-compatible api and give me the token and baseurl
```

Use the returned base URL and token in Enconvo's OpenClaw credential settings.

**1. Enable Chat Completions**

Enable the OpenAI-compatible chat completions endpoint once:

```bash theme={null}
openclaw config set gateway.http.endpoints.chatCompletions.enabled true
```

**2. Choose the bind mode**

For local-only access, keep the default loopback bind. For another device on your LAN to reach the Gateway, bind to LAN:

```bash theme={null}
openclaw config set gateway.bind lan
```

**3. Restart the Gateway**

Apply the configuration change:

```bash theme={null}
openclaw gateway restart
```

**4. Check Gateway status**

Confirm the Gateway is running:

```bash theme={null}
openclaw gateway status
```

## Connect OpenClaw by hand

Open **Settings → AI Model → OpenClaw**, then configure the credential provider.

![OpenClaw credential settings in Enconvo](https://mintcdn.com/thegreatlionheartpteltd/VEvqoAwJIOhoBmim/img/openclaw-settings.png?fit=max\&auto=format\&n=VEvqoAwJIOhoBmim\&q=85\&s=5bdcb4e3bf578e39002cb9afcff76d79)

| Setting | Value |
| - | - |
| **OpenClaw Base URL** | `http://<gateway-host>:<port>/v1` |
| **Gateway Token** | `gateway.auth.token` from `~/.openclaw/openclaw.json` |

Enconvo uses the Chat Completions API for OpenClaw automatically.

Use the base URL ending in `/v1`, not the full `/v1/chat/completions` endpoint. For example, if your endpoint is `http://192.168.1.18:18789/v1/chat/completions`, enter `http://192.168.1.18:18789/v1`.

To read the Gateway token from the default OpenClaw config file:

```bash theme={null}
jq -r '.gateway.auth.token' ~/.openclaw/openclaw.json
```

Enconvo sends this value as:

```http theme={null}
Authorization: Bearer <gateway-token>
```

Click **Validate** after entering the base URL and token.

## How requests and attachments work

Enconvo sends OpenClaw requests through OpenAI-compatible Chat Completions:

```http theme={null}
POST /v1/chat/completions
```

Use `openclaw:main` or another model name advertised by your OpenClaw agent list.

> [!WARNING]
>
> Image attachments are not sent to OpenClaw by Enconvo. Treat the OpenClaw provider as a text/chat provider in Enconvo. For image workflows, use a vision-capable model provider or run OCR/image analysis before sending text to OpenClaw.

## Use OpenClaw as an AI model

Once configured, OpenClaw appears in the model selector. Choose **OpenClaw** and select the agent-backed model, such as `openclaw:main`.

![OpenClaw selected as the chat model](https://mintcdn.com/thegreatlionheartpteltd/VEvqoAwJIOhoBmim/img/openclaw-chat-model.png?fit=max\&auto=format\&n=VEvqoAwJIOhoBmim\&q=85\&s=0925f546fc2e55cd7a0725a826f5e43b)

Use this mode when you want an Enconvo conversation, command, or feature to run through an OpenClaw agent while keeping the normal Enconvo interface.

**1. Open the model picker**

In chat or another model-powered Enconvo feature, click the current model name.

**2. Choose OpenClaw**

Select **OpenClaw** in the provider list.

![OpenClaw in the model selector](https://mintcdn.com/thegreatlionheartpteltd/VEvqoAwJIOhoBmim/img/openclaw-model-selector.png?fit=max\&auto=format\&n=VEvqoAwJIOhoBmim\&q=85\&s=e3295bbd3b336d2849a0ba5a9cea3ff3)

**3. Select an OpenClaw agent model**

Choose `openclaw:main` or another OpenClaw agent from the model list.

**4. Run the feature normally**

Ask your question or run the Enconvo feature. The selected OpenClaw agent handles the model call behind the scenes.

Enconvo loads OpenClaw models from `openclaw agents list`. If the OpenClaw CLI is not available locally, Enconvo falls back to `openclaw:main`.

## Create an Agent for OpenClaw

You can also create an Enconvo agent that coordinates an OpenClaw agent. This is useful when you want an Enconvo-facing workflow, tool set, or prompt around a specific OpenClaw agent.

**1. Open Create Agent**

Open SmartBar and search for **Create Agent**.

![Create Agent command in Enconvo](https://mintcdn.com/thegreatlionheartpteltd/VEvqoAwJIOhoBmim/img/openclaw-create-agent-command.png?fit=max\&auto=format\&n=VEvqoAwJIOhoBmim\&q=85\&s=a5b1fbd3e5dffc5d4ed53d494bcf5e30)

**2. Name the agent**

Create a clear title, such as `OpenClaw Main`.

![Create New Agent form for OpenClaw](https://mintcdn.com/thegreatlionheartpteltd/VEvqoAwJIOhoBmim/img/openclaw-agent-form.png?fit=max\&auto=format\&n=VEvqoAwJIOhoBmim\&q=85\&s=6629a295fbfbc459cefc92976e1908ac)

**3. Write coordinator instructions**

Give the Enconvo agent instructions that explain how it should work with OpenClaw.

```markdown theme={null}
You coordinate the OpenClaw Main agent for the user.

Use OpenClaw for agentic work, automation, and tasks that should run through the user's OpenClaw setup.
Summarize what OpenClaw did, surface any blockers, and ask before destructive or irreversible actions.
```

**4. Choose the OpenClaw model**

In the agent's model settings, select **OpenClaw** and choose `openclaw:main`.

**5. Save and use the agent**

Start a conversation with the new Enconvo agent. It will use the selected OpenClaw agent model while retaining the Enconvo agent interface and tools you configured.

## Troubleshooting

> [accordion] OpenClaw does not appear in the model picker
>
> Make sure the OpenClaw provider is enabled in **Settings → AI Model**. If the model list is empty, verify that `openclaw agents list` works locally or use the default `openclaw:main`.

> [accordion] Validation fails with unauthorized
>
> Recheck the Gateway token. Enconvo expects the value from `gateway.auth.token` and sends it as a Bearer token.

> [accordion] Connection fails
>
> Confirm the Gateway is running with `openclaw gateway status`. If Enconvo is on another device, set `gateway.bind` to `lan`, restart the Gateway, and use the host's LAN IP in the base URL.

> [accordion] Start succeeds but Enconvo briefly says it needs attention
>
> OpenClaw can report that the LaunchAgent restarted before the HTTP Gateway is ready. Wait a few seconds and check the setup card's runtime badge again. You can also verify directly with `openclaw gateway status` and `curl http://127.0.0.1:18789/health`.

> [accordion] The Gateway is running but `/v1/models` fails
>
> Make sure Enconvo is using the same token as `gateway.auth.token` in `~/.openclaw/openclaw.json`. The setup status can still detect a running Gateway through `/health`, but model validation requires the bearer token.

> [accordion] Image attachments are ignored
>
> The OpenClaw provider in Enconvo is currently text-only. Enconvo will not send image attachments to OpenClaw; choose a vision-capable provider for direct image input.

> [accordion] Wrong base URL
>
> Enter `http://<gateway-host>:<port>/v1`. Do not include `/chat/completions` in the Enconvo base URL field.

## Related

> [card] [Hermes Agent](https://docs.enconvo.ai/providers/hermes.md)
>
> Connect another agent gateway the same way.

> [card] [Agents](https://docs.enconvo.ai/ai/agents.md)
>
> Give an Agent instructions and tools.


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