Hacker News new | ask | show | jobs
by nebben64 30 days ago
wait, you can use other models with CC harness?
1 comments

Yes, as long as they support the Anthropic API standard. You might have luck converting between standards using litellm's proxy. The system prompt and tool choice are tuned for Anthropic's models. For example, this setup will use Deepseek V4 Pro with their first-party (subsidized) API. Things like the Read tool on images won't work, but mostly this works well. Your mileage may vary.

    #!/bin/sh
    export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic
    export ANTHROPIC_AUTH_TOKEN=sk-secret
    export ANTHROPIC_MODEL=${ANTHROPIC_MODEL:-deepseek-v4-pro}
    export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
    exec claude $@
Thank you!