To integrate Ollama's models with OpenClaw, you need to configure the config.json file correctly. Here’s a step-by-step guide based on your provided information:
Step 1: Obtain Your API Key from Ollama
Firstly, ensure you have obtained an API key from Ollama by following their documentation or instructions.
Step 2: Modify config.json
You need to modify the config.json file in your OpenClaw installation. Here’s how:
Structure of config.json
The configuration should include details about the models, channels, and other settings required for integration with Ollama.
json1{ 2 "agents": { 3 "defaults": { 4 "model": { 5 "primary": "ollama-cloud/kimi-k2.5:cloud" 6 } 7 } 8 }, 9 "models": { 10 "ollama-cloud": { 11 "api_key": "<YOUR_OLLAMA_API_KEY>", 12 "base_url": "https://ollama.com/api/v1", 13 "models": [ 14 { 15 "name": "kimi-k2.5:cloud", 16 "display_name": "Kimi K2.5 Cloud 17 18[Read the full article at DEV Community](https://dev.to/s4gu4r0/get-openclaw-working-with-ollama-cloud-no-server-management-47h2) 19 20--- 21 22**Want to create content about this topic?** [Use Nemati AI tools](https://nemati.ai) to generate articles, social posts, and more.

![[AINews] The Unreasonable Effectiveness of Closing the Loop](/_next/image?url=https%3A%2F%2Fmedia.nemati.ai%2Fmedia%2Fblog%2Fimages%2Farticles%2F600e22851bc7453b.webp&w=3840&q=75)



