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

> ## Agent Instructions
> For autonomous tasks, use live SaladCloud API responses for current state, availability, quotas, models, and other dynamic values. Use current OpenAPI specifications where provided for paths, schemas, required fields, and enums. Never invent endpoints, fields, prices, availability, quotas, models, or state. Prefer API workflows over Portal steps. Read before changing and never expose credentials, signed media URLs, prompts, or sensitive outputs. Retry only safe or idempotent operations with bounded backoff, honoring Retry-After. Verify every write with a read. Stop rather than repeat an uncertain non-idempotent or billable request. AI Gateway uses an organization-specific Bearer key and live /v1/models discovery. Do not delete, cancel, stop, or reduce capacity without explicit user intent. Bind shared operation IDs to the selected product path. Treat Container Engine instances as interruptible and local state as ephemeral. Install the SaladCloud skills (npx skills add https://docs.salad.com), start from the salad skill and /agents/overview; docs MCP: https://docs.salad.com/mcp.

# Qwen3.6-35B-A3B with llama.cpp Recipe

> Serve Qwen3.6-35B-A3B with llama.cpp as an OpenAI-compatible API for OpenClaw, OpenCode, and other tools.

*Last Updated: April 16, 2026*

> [!TIP]
>
> Deploy from the [SaladCloud Portal](https://portal.salad.com).

## Overview

This recipe runs `Qwen3.6-35B-A3B` with the official [llama.cpp](https://github.com/ggml-org/llama.cpp) CUDA server on a
Salad GPU. The model downloads automatically on startup, the built-in llama.cpp web UI is available at your deployment
URL, and the container exposes an OpenAI-compatible API for tools such as OpenClaw, OpenCode, and other compatible
clients.

This recipe is designed to be easy for nontechnical users:

* the model is already chosen for you
* it is public by default, so you can test it immediately after deployment
* thinking is enabled by default
* you can start with the built-in web UI, then connect other tools later

## Quick Start

1. Open the [SaladCloud Portal](https://portal.salad.com).
2. Deploy the **Qwen3.6-35B-A3B (llama.cpp)** recipe.
3. Enter a **Container Group Name**.
4. Decide whether to enable **Require Container Gateway Authentication**:
   * Disabled: public access.
   * Enabled: requests must include your SaladCloud API key.
5. Choose whether to keep **Enable Thinking / Reasoning** turned on.
6. Deploy and wait for the first startup to finish.

Model is downloaded at startup, so it can take up to about 20 minutes before the deployment becomes ready.

Once the container is ready, you can either open the built-in UI in a browser or connect an OpenAI-compatible client to
`/v1/chat/completions`.

## Use With OpenClaw

If you want to connect this recipe to OpenClaw or other agentic tools, follow these guides:

* [Use OpenClaw with a Salad-hosted LLM](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-openclaw-with-saladcloud.md)
* [Use OpenCode with a Salad-hosted LLM](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-opencode-with-saladcloud.md)
* [Use Cline with a Salad-hosted LLM](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-cline-with-saladcloud.md)
* [Use Aider with a Salad-hosted LLM](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-aider-with-saladcloud.md)
* [Use Kilo Code with a Salad-hosted LLM](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-kilo-code-with-saladcloud.md)
* [Use Roo Code with a Salad-hosted LLM](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-roo-code-with-saladcloud.md)
* [Use Continue with a Salad-hosted LLM](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-continue-with-saladcloud.md)
* [Use Versel AI with a Salad-hosted LLM](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-vercel-ai-sdk-with-saladcloud.md)
* [Use Goose with a Salad-hosted LLM](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-goose-with-saladcloud.md)
* [Use Hermes with a Salad-hosted LLM](https://docs.salad.com/container-engine/tutorials/agentic-tools/use-hermes-agent-with-saladcloud.md)

## Defaults

The recipe comes preconfigured with these defaults:

* Model source: `unsloth/Qwen3.6-35B-A3B-GGUF:UD-Q4_K_XL`
* Model alias: `qwen3.6-35b-a3b`
* Context size: `262144`
* Parallel slots: `1`
* Thinking: enabled by default
* Sampling defaults: `temperature 0.6`, `top_p 0.95`, `min_p 0.0`, `top_k 20`
* Authentication: disabled by default

`temperature`, `top_p`, and `min_p` are startup defaults. You can still override them per request in your inference
payload.

## Thinking Mode

When thinking is enabled, you can control it per request:

* Add `/think` to explicitly enable reasoning for that turn.
* Add `/no_think` to disable reasoning for that turn.

If you disable thinking in the deployment form, the recipe sets Qwen's hard switch and `/think` will no longer override
it.

## Authentication

**Require Container Gateway Authentication** is available in the deployment form and is unchecked by default.

* Disabled: anyone with the URL can call the API.
* Enabled: every request must include the `Salad-Api-Key` header.

If you enable authentication, see [Sending Requests](https://docs.salad.com/container-engine/how-to-guides/gateway/sending-requests.md) for the
header format.

## Example Request

```bash theme={null}
curl https://<your-dns>.salad.cloud/v1/chat/completions \
  -X POST \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "qwen3.6-35b-a3b",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Write a short explanation of mixture-of-experts models."}
    ],
    "max_tokens": 256
  }'
```

If you enabled authentication during deployment, add:

```bash theme={null}
-H 'Salad-Api-Key: <api-key>'
```

## For Technical Users

If you want to tune llama.cpp later, open the container group in the SaladCloud Portal and edit **Advanced
Configuration**.

Useful environment variables include:

* `LLAMA_ARG_HF_REPO` to change the Hugging Face GGUF repo
* `LLAMA_ARG_MODEL_URL` to point directly to a `.gguf` file
* `LLAMA_ARG_CTX_SIZE` to change the context window
* `LLAMA_ARG_N_GPU_LAYERS` to control GPU offload
* `LLAMA_ARG_N_PARALLEL` to change concurrency

For full llama.cpp server options, see:

* [llama.cpp server docs](https://github.com/ggml-org/llama.cpp/tree/master/tools/server)
* [Server args and environment variable mapping](https://github.com/ggml-org/llama.cpp/blob/master/tools/server/README.md#usage)

## Source Code

* [ Recipe Source](https://github.com/SaladTechnologies/salad-recipes/tree/master/recipes/qwen3.6-35b-a3b-llama-cpp)
* [Unsloth Qwen3.6 model notes](https://unsloth.ai/docs/models/qwen3.6#qwen3.6-35b-a3b)
* [llama.cpp Project](https://github.com/ggml-org/llama.cpp)


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