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.
public demo key · get your own
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:
curl -fsSL https://openclaw.ai/install.sh | bash openclaw onboard --install-daemon
Already running Node 24 or newer? npm does it too:
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.
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.
{
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:
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.
openclaw agent --local -m "Reply with exactly one word: hello"
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):
~/.openclaw/.env.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".
python3 and L2C_API_KEY must exist there as well.Models that suit OpenClaw
| Model ID | Context | Takes images | $ / 1M in · out · cached | Now |
|---|---|---|---|---|
gemma4:12bGemma 4 12B (vision) |
128K | yes | $0.040 · $0.12 · $0.010 | on demand |
llama3.1Llama 3.1 8B |
128K | — | $0.030 · $0.050 · $0.008 | always on |
ornith-1.5:9bOrnith 1.5 9B (vision, 256K) |
256K | yes | $0.080 · $0.14 · $0.020 | always on |
ornith-1.5:35bOrnith 1.5 35B (vision, 256K) |
256K | yes | $0.12 · $0.80 · $0.050 | resident |
qwen3.8:27bQwen3.8 27B (vision + text) |
128K | yes | $0.15 · $1.80 · $0.030 | resident |
bonsai-2:9bBonsai 2 9B (vision) |
256K | yes | $0.064 · $0.10 · $0.032 | on demand |
deepseek-ocr:3bDeepSeek-OCR 3B |
128K | yes | $0.040 · $0.060 · $0.020 | on demand |
mimo-v2.6:9bMiMo-V2.6 9B (vision) |
256K | yes | $0.030 · $0.10 · $0.015 | on demand |
granite4.2:3bGranite 4.2 3B (text) |
128K | — | $0.040 · $0.060 · $0.020 | on demand |
granite4.2:8bGranite 4.2 8B (text) |
128K | — | $0.050 · $0.16 · $0.012 | on demand |
lfm3:1.7bLFM3 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/.envand 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:
timeoutSecondsis missing from the provider. If you setagents.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
maxTokenson the model entry. - 402: out of credit. Top up at /developers.
openclaw doctor --fixrepairs a config that fails validation.