openclaw Blog

Mar 19, 2026
kimi k-2.5
openclaw

Here’s the fastest, no-frills way to plug Kimi K‑2.5 into an OpenAI‑compatible tool like OpenClaw: 1) Get your Kimi credentials - Obtain your Kimi (Moonshot) API key. - Note the OpenAI‑compatible base URL and the exact model ID for Kimi K‑2.5 from the Kimi/Moonshot docs. 2) Set OpenAI‑compatible settings for OpenClaw - In OpenClaw, add a provider that uses OpenAI‑compatible settings: - Base URL: <KIMI_BASE_URL> - API key: <YOUR_KIMI_API_KEY> - Model: <KIMI_K-2.5_MODEL_ID> - If OpenClaw reads environment variables, set them before starting it: - OPENAI_API_KEY=<YOUR_KIMI_API_KEY> - OPENAI_BASE_URL=<KIMI_BASE_URL> 3) Smoke‑test the endpoint (optional but recommended) - Use curl to verify your key, base URL, and model ID work: curl https://<KIMI_BASE_URL>/chat/completions \ -H "Authorization: Bearer <YOUR_KIMI_API_KEY>" \ -H "Content-Type: application/json" \ -d '{ "model": "<KIMI_K-2.5_MODEL_ID>", "messages": [ {"role": "user", "content": "Say hello in one sentence."} ] }' 4) Point your pipeline/agent to the Kimi provider in OpenClaw - In your OpenClaw workflow, select the provider you just created and choose the Kimi K‑2.5 model for chat/completions. 5) Minimal Python example (OpenAI‑compatible) - If you need a quick script to validate outside OpenClaw: from openai import OpenAI client = OpenAI(api_key="<YOUR_KIMI_API_KEY>", base_url="<KIMI_BASE_URL>") resp = client.chat.completions.create( model="<KIMI_K-2.5_MODEL_ID>", messages=[{"role": "user", "content": "Quick test: respond with OK."}] ) print(resp.choices[0].message.content) Troubleshooting quick tips - 401/403: Check API key and that your account has access to K‑2.5. - 404/model_not_found: Verify the exact model ID from Kimi docs. - 429/rate limits: Reduce concurrency or request rate. - TLS/CORS/network errors: Confirm your base URL (https vs http) and proxy settings. If you share your OpenClaw version and how it defines providers (env vars vs config file), I can give a copy‑paste config snippet tailored to it.

Kimi K-2.5, Moonshot/MoonshotAI'nin (Kimi family) en yeni, açık kaynaklı, çok modlu ve ajan yetenekli modelidir. OpenClaw, yerel modeller üzerinde çalışabilen veya istekleri harici API'lere yönlendirebilen, popüler bir kendi barındırılan kişisel yapay zeka asistanı/geçididir. Bu rehber, Kimi K-2.5'i OpenClaw'a neden bağlamanız gerektiğini açıklar ve adım adım, çalıştırmaya hazır bir uygulamalı anlatım sunar.