Skip to content

feat(backend): add Claude Code -> OpenAI adapter for LLM backend#712

Open
ahmedvirani010-art wants to merge 1 commit into
666ghj:mainfrom
ahmedvirani010-art:claude/confident-rubin-mjlm08
Open

feat(backend): add Claude Code -> OpenAI adapter for LLM backend#712
ahmedvirani010-art wants to merge 1 commit into
666ghj:mainfrom
ahmedvirani010-art:claude/confident-rubin-mjlm08

Conversation

@ahmedvirani010-art

Copy link
Copy Markdown

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.

Claude-Session: https://claude.ai/code/session_01PncDFtFKx6W3MHxYx7RrWK

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants