Commit Graph

1 Commits

Author SHA1 Message Date
Claude 20564979af
feat(backend): add Claude Code -> OpenAI adapter for LLM backend
Add an OpenAI-compatible shim (/v1/chat/completions, /v1/models) that
fulfils requests by shelling out to the local `claude` CLI in headless
print mode. Lets any OpenAI-SDK client (LLMClient, OASIS profile
generator, camel simulation) use Claude Code as the LLM without an
external API key. Stdlib-only; honors JSON mode and system prompts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PncDFtFKx6W3MHxYx7RrWK
2026-06-25 05:49:02 +00:00