mirror of
https://github.com/dtzp555-max/ocp.git
synced 2026-07-21 21:15:09 +00:00
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>
12 lines
392 B
Bash
Executable File
12 lines
392 B
Bash
Executable File
#!/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
|