Kimi (Moonshot): a cheap hosted option
Kimi exposes an OpenAI-compatible endpoint, so wiring it into a coding agent is the usual three settings: base URL, API key, and model name. It's a hosted model (billed to you per token), which makes it a low-cost option for everyday coding work without running anything locally.
What to set for Kimi
| Field | Value | Notes |
|---|---|---|
| Base URL | Moonshot's OpenAI-compatible endpoint | Ends in /v1 typically |
| API key | your Moonshot key | Billed to you as usage |
| Model name | the Kimi model you want | Whatever the endpoint exposes |
Ollama: run a model locally for $0/token
Ollama runs a model on your own machine and serves it over a local OpenAI-compatible endpoint. Point your agent's base URL at that local server and your code never leaves your computer — and there's no per-token cost at all. The tradeoff is hardware: bigger models need more RAM/VRAM, so you match the model to what your machine can run.
# Ollama serves an OpenAI-compatible endpoint locally
# e.g. http://localhost:11434/v1
# point your agent's base URL there, pick the model you pulledThe real requirement: an agent that lets you switch
Neither Kimi nor Ollama is the hard part — connecting them is. If your agent is locked to one provider, you can't point it at Kimi or a local endpoint at all. What you need is an agent where the provider, base URL, key, and model are settings you choose, so you can run Kimi today and a local model tomorrow without hacks.
What that looks like with Wuwei
Pick Kimi or local in the UI
OpenAI-compatible endpoints (Kimi) and local servers (Ollama) both work as a selectable provider.
One-click switch
Move between hosted and local models without editing configs or restarting.
Local + open source
The agent runs on your machine and is MIT-licensed; a local model keeps everything on-device.
FAQ
Can I use Kimi in a coding agent?
Yes — Kimi exposes an OpenAI-compatible endpoint, so you set the base URL, key, and model name in an agent that supports custom providers. It's a cheap hosted option for everyday coding.
Can a coding agent use a local Ollama model?
Yes. Ollama serves a model locally over an OpenAI-compatible endpoint; point the agent's base URL at it (e.g. http://localhost:11434/v1). Your code stays on your machine and there's no per-token cost.
Why can't my current agent use Kimi or Ollama?
Because it's hard-wired to one provider. You need an agent where provider/base URL/key/model are configurable. Wuwei lets you pick Kimi or a local model and switch in a click.