Add kimi-agent: kimi-code CLI wrapped as a LiteLLM model

Runs the kimi-code coding agent in its own container, exposed as an
OpenAI-compatible model ("kimi-agent") that LiteLLM/Open WebUI can call
directly. Backed by the user's own Kimi/Moonshot subscription via
`kimi login`, not the pay-per-token API. Mount is scoped to a dedicated
~/kimi-workspace directory rather than the full home dir.
This commit is contained in:
Alvis
2026-07-04 15:20:35 +00:00
parent 995d639b60
commit 406083310f
4 changed files with 158 additions and 0 deletions

View File

@@ -15,6 +15,13 @@ model_list:
model: anthropic/claude-haiku-4-5-20251001
api_key: os.environ/ANTHROPIC_API_KEY
# Kimi Code CLI agent (own container, own Moonshot/Kimi subscription via `kimi login`)
- model_name: kimi-agent
litellm_params:
model: openai/kimi-agent
api_base: http://kimi-agent:8000/v1
api_key: dummy
# ── raw model exposure ─────────────────────────────────────────────────
- model_name: ollama/qwen3.5:4b
litellm_params: