mirror of
https://github.com/dtzp555-max/ocp.git
synced 2026-07-21 21:15:09 +00:00
Initial release: OpenAI-compatible proxy for Claude CLI
Routes OpenClaw requests through `claude -p` CLI, letting you use Claude Pro/Max subscriptions as a model provider without API keys. - SSE streaming + non-streaming responses - Auto-setup script for OpenClaw configuration - Supports Opus 4.6, Sonnet 4.6, Haiku 4 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
# Start claude-proxy if not already running
|
||||
if ! lsof -i :3456 -sTCP:LISTEN &>/dev/null; then
|
||||
unset CLAUDECODE
|
||||
nohup /opt/homebrew/bin/node /Users/taodeng/.openclaw/projects/claude-proxy/server.mjs \
|
||||
>> ~/.openclaw/logs/claude-proxy.log \
|
||||
2>> ~/.openclaw/logs/claude-proxy.err.log &
|
||||
echo "claude-proxy started (pid $!)"
|
||||
else
|
||||
echo "claude-proxy already running"
|
||||
fi
|
||||
Reference in New Issue
Block a user