openai: add adolf-llm conversational Kimi-CLI wrapper (:8010) [Adolf P2]

Model backend for the Adolf gateway. OpenAI-compatible (model 'adolf'), real
SSE streaming, chat_id session-keying (parsed from OpenClaw's untrusted-metadata
block per SPIKE gate 2) -> 1:1 kimi -r resume, media persistence for the CLI's
ReadMediaFile, per-session project-root .mcp.json (gate 1; no --mcp-config-file).
Cognee auto-memory hooks and shared-MCP server list are non-blocking stubs with
TODO(P4/P5) markers. New service + workspace/home volumes in compose.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LeqyaxJF2nbRXJtae2kNB2
This commit is contained in:
2026-07-05 09:59:50 +00:00
parent f5c14efb37
commit eadda808d2
4 changed files with 547 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# adolf-llm — conversational Kimi-CLI wrapper (P2, :8010). OpenAI-compatible,
# model id "adolf". Real streaming, chat_id session mapping (1:1 kimi -r resume),
# media persistence, shared .mcp.json per session. cognee/MCP wiring is stubbed
# until P4/P5. Needs `kimi login` credentials seeded into its own home volume.
# Orchestrator: merge this `adolf-llm` service + the two named volumes into
# openai/docker-compose.yml (do NOT edit that file here).
services:
adolf-llm:
build: ./adolf-llm
container_name: adolf-llm
ports:
- "8010:8010"
volumes:
- adolf-llm-workspace:/workspace
- adolf-llm-home:/root/.kimi-code
restart: unless-stopped
volumes:
adolf-llm-workspace:
adolf-llm-home: