NEWGPU owners: host free demos on your card and earn a bigger share of every paid job. See how →

Integration guide

OpenClaw

OpenClaw is a personal assistant that runs on your own machine and answers you in Discord, Slack, Telegram, WhatsApp and more. This guide adds legit2compute as an OpenClaw model provider and installs our media skill, so your assistant can render images, music, voice and video on the network.

Base URL (OpenAI-compatible)
https://api.legit2compute.com/nodes/llm/v1
API key
l2ck_demo_cc7af91fbc644562a91444be9c80ce81
public demo key · get your own
Recommended model
ornith-1.5:9b · always on
Context window
262,144 tokens
Try it before you sign up. The snippets on this page use our public demo key, so they run as pasted: it calls ornith-1.5:9b, a model we keep loaded all the time, free, shared by everyone and rate-limited. When you want every model, your own limits and the Private switch, get your own key (one click with Discord, Google, GitHub or Twitch, with trial credit) and sign in: these snippets then fill in your key.

1. Install OpenClaw

Follow the OpenClaw README. On Linux, macOS or WSL2:

shell
curl -fsSL https://openclaw.ai/install.sh | bash
openclaw onboard --install-daemon

Already running Node 24 or newer? npm does it too:

shell
npm install -g openclaw@latest --allow-scripts=openclaw

2. Store your key

Copy your l2ck_ key from legit2compute.com/developers into OpenClaw's global env file. The gateway reads it even when it runs as a background service, and the media skill picks it up from there too. Not signed up yet? The line below carries the public demo key, so you can try OpenClaw on our always-on model first and swap in your own key later.

shell
echo 'L2C_API_KEY=l2ck_demo_cc7af91fbc644562a91444be9c80ce81' >> ~/.openclaw/.env

3. Add legit2compute as a provider

Add this to ~/.openclaw/openclaw.json (JSON5; the gateway reloads it when you save). The provider ID legit2compute is yours to choose; model references are provider/model.

~/.openclaw/openclaw.json
{
  models: {
    mode: "merge",
    providers: {
      legit2compute: {
        baseUrl: "https://api.legit2compute.com/nodes/llm/v1",
        apiKey: "${L2C_API_KEY}",
        api: "openai-completions",
        timeoutSeconds: 600,
        models: [
          { id: "ornith-1.5:9b", name: "Ornith 1.5 9B (vision, 256K)",
            input: ["text", "image"], contextWindow: 262144, maxTokens: 8192,
            compat: { supportsUsageInStreaming: true } },
        ],
      },
    },
  },
  agents: {
    defaults: {
      model: { primary: "legit2compute/ornith-1.5:9b" },
    },
  },
}

Three settings matter for long agent sessions. timeoutSeconds: 600 gives a model that is still loading time to answer: we hold your call for up to five minutes while a server starts, and then the model still has to read your prompt. OpenClaw otherwise gives up on a cloud endpoint after 120 seconds without a reply. maxTokens: 8192 leaves room for a long tool call, such as a skill command with a full prompt, so the answer is not cut off halfway. supportsUsageInStreaming lets OpenClaw read the token count we send at the end of each streamed reply, so it tracks context size and spend exactly instead of estimating.

Or set the default from the command line, and confirm the provider loaded:

shell
openclaw models set legit2compute/ornith-1.5:9b
openclaw models list

Then check one turn end to end. A brand-new assistant may first ask what to call it; that is OpenClaw's own first-run setup, and the reply proves the connection works.

shell
openclaw agent --local -m "Reply with exactly one word: hello"
Prefer editing in a browser? openclaw dashboard opens the Control UI, whose Config tab edits the same file.

4. Install the media skill

OpenClaw follows the Agent Skills standard and loads skills shared by all your agents from ~/.openclaw/skills. Ours installs there with one line (run it again later to update):

Renders need your own key. The demo key calls the model only; images, music, voice and video are billed jobs. Get your key (trial credit included) and replace the demo key in ~/.openclaw/.env.
shell
curl -fsSL https://legit2compute.com/install-skill.sh | sh -s -- ~/.openclaw/skills

No curl? Download the zip and unzip it into ~/.openclaw/skills/.

The skill needs python3 on the machine running the gateway and reads L2C_API_KEY, which you already put in ~/.openclaw/.env. openclaw skills list should show legit2cloud as ready. Then ask your assistant, from any chat app: "make a 20-second upbeat jingle for my bakery and send it here".

Sandboxed agents: if you run an agent in OpenClaw's sandbox, the skill runs inside the container, so python3 and L2C_API_KEY must exist there as well.

Models that suit OpenClaw

Model IDContextTakes images$ / 1M in · out · cachedNow
gemma4:12b
Gemma 4 12B (vision)
128Kyes $0.040 · $0.12 · $0.010 on demand
llama3.1
Llama 3.1 8B
128K— $0.030 · $0.050 · $0.008 always on
ornith-1.5:9b
Ornith 1.5 9B (vision, 256K)
256Kyes $0.080 · $0.14 · $0.020 always on
ornith-1.5:35b
Ornith 1.5 35B (vision, 256K)
256Kyes $0.12 · $0.80 · $0.050 resident
qwen3.8:27b
Qwen3.8 27B (vision + text)
128Kyes $0.15 · $1.80 · $0.030 resident
bonsai-2:9b
Bonsai 2 9B (vision)
256Kyes $0.064 · $0.10 · $0.032 on demand
deepseek-ocr:3b
DeepSeek-OCR 3B
128Kyes $0.040 · $0.060 · $0.020 on demand
mimo-v2.6:9b
MiMo-V2.6 9B (vision)
256Kyes $0.030 · $0.10 · $0.015 on demand
granite4.2:3b
Granite 4.2 3B (text)
128K— $0.040 · $0.060 · $0.020 on demand
granite4.2:8b
Granite 4.2 8B (text)
128K— $0.050 · $0.16 · $0.012 on demand
lfm3:1.7b
LFM3 1.7B (text)
256K— $0.040 · $0.060 · $0.020 on demand

Tool calling and at least 64K context, from the live catalog. Always on models are kept loaded, so they answer the first call straight away: the safest choice for an agent. Any other model that is not resident answers 503 with "warming": true for a minute or two while it starts.

Troubleshooting

  • The key shows up as ${L2C_API_KEY} in errors: the variable was not found. Check ~/.openclaw/.env and restart the gateway.
  • 503 with "warming": true: the model is being loaded. Retry in a minute or use a resident model.
  • The turn times out after about two minutes: timeoutSeconds is missing from the provider. If you set agents.defaults.timeoutSeconds, keep it at 600 or more as well. The first call to a model nobody has used for a while can take several minutes; later calls answer in seconds.
  • A tool call stops halfway or the reply ends mid-sentence: raise maxTokens on the model entry.
  • 402: out of credit. Top up at /developers.
  • openclaw doctor --fix repairs a config that fails validation.