OpenClaw

Use OpenClaw, the personal AI assistant, with your Pendra models. Add Pendra as a provider, then set your API key.

Set it up

Add Pendra to ~/.openclaw/openclaw.json:

~/.openclaw/openclaw.json
{
  models: {
    providers: {
      pendra: {
        baseUrl: "https://api.pendra.ai/api/v1",
        apiKey: "${PENDRA_API_KEY}",
        api: "openai-completions",
        models: [
          { id: "qwen3.6:27b", name: "Qwen 3.6 27B", contextWindow: 32768 },
        ],
      },
    },
  },
  agents: {
    defaults: { model: { primary: "pendra/qwen3.6:27b" } },
  },
}

Then add your Pendra API key to ~/.openclaw/.env:

~/.openclaw/.env
PENDRA_API_KEY=pdr_sk_...

OpenClaw picks up both changes on its own, with no restart. To check it's using Pendra, send a message and look for the request on the Usage page in the console.

Choosing a model

List each model you want under models, using ids from the models list. In OpenClaw, each one is called pendra/ followed by its id. To switch models, change primary or run openclaw models set pendra/<id>.

  • Set contextWindow to the context size your worker uses for the model, so OpenClaw doesn't send more than it can hold.
  • To send images, choose a model with vision and add input: ["text", "image"] to its entry.

Troubleshooting

  • 401 means the key is wrong or not set. Check it starts with pdr_sk_. If OpenClaw warns that PENDRA_API_KEY is unresolved, it can't see the key, so check ~/.openclaw/.env.
  • If OpenClaw won't start after your edit, run openclaw config validate to find the mistake.
  • A slow first reply usually means the worker is loading the model, which can take up to 30 seconds. Later replies are quicker.
OpenClaw uses Pendra's Chat completions API.