-
Notifications
You must be signed in to change notification settings - Fork 119
feat(provider): add deepseek provider for the DeepSeek pay-per-use API #134
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.This issue is about auth, provider routing, model choice, or SecretRef resolution.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.
Description
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.This issue is about auth, provider routing, model choice, or SecretRef resolution.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.
Type
Fields
Priority
None yet
Feature request: add
deepseekprovider for the DeepSeek pay-per-use APISummary
Add a new clawpatch provider named
deepseekthat calls the DeepSeekOpenAI-compatible chat completions endpoint directly via
fetch(). Thisunblocks clawpatch users who have a DeepSeek API key (pay-per-use billing at
https://platform.deepseek.com) when their default provider (
codex) isunavailable or rate-limited, or when they prefer to use DeepSeek for reviews.
Motivation
codexdefault requires a local Codex CLI. Users who donot have Codex installed or authenticated have to fall back to
acpx(which routes through openclaw) or to one of the other local CLI
providers.
https://api.deepseek.com/v1/chat/completionson pay-per-use billing(no subscription, top up at https://platform.deepseek.com). This is a
clean fit for clawpatch's per-call provider contract.
codex,acpx,claude,cursor,grok,minimax,opencode,pi,mock,mock-fail). Addingdeepseekcovers a different distribution and is a real maintenanceburden shared with maintainers.
Surface
mapreviewrevalidatefixminimaxcontract)doctor(check)Configuration
DEEPSEEK_API_KEYDEEPSEEK_BASE_URLhttps://api.deepseek.com/v1DEEPSEEK_MODELdeepseek-v4-flashCLAWPATCH_DEEPSEEK_TIMEOUT_MS300000CLAWPATCH_PROVIDER_TIMEOUT_MS300000Endpoints
POST /chat/completions— review, revalidate, mapGET /models— connectivity check (used bycheck())Live usage
A locally-patched implementation on the author's machine (not in the
upstream tarball) has been running against the real
https://api.deepseek.com/v1/chat/completionsendpoint for ~7 days across100+ features reviewed in
ferminquant/budget, completing in 50–85s perfeature. A TypeScript port mirroring the merged
minimaxprovider shape isplanned as a follow-up PR.
Labels
enhancement— new featurehelp wanted— community contribution welcomeimpact:auth-provider— touches the auth/credentials surfacedocumentation— README provider list +docs/providers.mdneed updates