> For the complete documentation index, see [llms.txt](https://sogni.gitbook.io/sogni-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sogni.gitbook.io/sogni-docs/sogni-intelligence/integration-openclaw.md).

# Integration-openclaw

## OpenClaw Integration

[OpenClaw](https://openclaw.ai/) is an AI coding agent CLI that supports custom LLM providers. Because SogniLLM is OpenAI API-compatible, you can configure it as a provider in OpenClaw and use Sogni's Qwen 3.5 models for coding tasks.

***

### Prerequisites

* **OpenClaw** installed (see the [OpenClaw docs](https://docs.openclaw.ai/) for setup)
* A **Sogni API key** (get one free at [app.sogni.ai](https://app.sogni.ai))

***

### Setup

#### Step 1: Add Authentication

```bash
openclaw models auth paste-token --provider sogni
```

When prompted, paste your **Sogni API key**.

#### Step 2: Configure the Base URL

```bash
openclaw config set "models.providers.sogni.baseUrl" "https://api.sogni.ai/v1"
```

#### Step 3: Set the Default Model

```bash
openclaw models set sogni/qwen3.6-35b-a3b-gguf-iq4xs
```

{% hint style="info" %}
To use the **abliterated (uncensored) variant** instead:

```bash
openclaw models set sogni/qwen3.5-35b-a3b-abliterated-gguf-q4km
```

{% endhint %}

#### Step 4: Restart the Gateway

```bash
openclaw gateway restart
```

#### Step 5: Verify

Check that the provider is configured correctly:

```bash
openclaw models status
```

You should see the Sogni provider listed with the Qwen 3.5 model. Test it with a quick message:

```bash
openclaw agent --message "Hello, which model are you?"
```

The model should respond identifying itself as Qwen 3.5.

***

### Troubleshooting

| Issue                      | Solution                                                                                      |
| -------------------------- | --------------------------------------------------------------------------------------------- |
| Provider not recognized    | Check spelling: the provider name must be `sogni` (lowercase).                                |
| Model not found            | Verify the exact model ID. Use the full slug: `sogni/qwen3.6-35b-a3b-gguf-iq4xs`              |
| `401 authentication_error` | Re-run `openclaw models auth paste-token --provider sogni` with a valid API key.              |
| `402 insufficient_quota`   | Your Sogni token balance is empty. Claim your daily bonus or purchase tokens at app.sogni.ai. |
| Gateway won't restart      | Try `openclaw gateway stop` then `openclaw gateway start`.                                    |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sogni.gitbook.io/sogni-docs/sogni-intelligence/integration-openclaw.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
