Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
DeepSeek Harness as a MausBot engine
Date: 2026-10-22. Status: design, approved for build under stated assumptions (the request was "wire this"; the calls below are the builder's, marked as such).
Intent
People should be able to pick DeepSeek Harness (dsh, github.com/deepseek-ai/deepseek-harness)
as the engine behind a MausBot bot, the same way they pick Kimi, Droid or
Hermes today: it appears on the Engines page, Settings can install it, a
DeepSeek API key pasted in MausBot makes it ready, and bots run turns on it
with the normal approval cards, model picker and reasoning-effort control.
Verified facts about dsh (0.2.1-rc.2, probed 2026-10-22)
npm install -g @deepseek-ai/dshinstalls adshbin (Node ^22.19 || >=24).dsh --versionprints0.2.1-rc.2in 1.5 s.dsh --profile acpserves standard ACP v1 over stdio (JSON-RPC, newline framed). First boot auto-creates$DSH_HOME/profiles/acp(~/.dshby default). Cold boot through npx took ~120 s (dependency download); warm boot is 1.6 s toinitialize.initialize→agentInfo.name = "deepseek-harness-acp",authMethods: [],promptCapabilities.image: false,sessionCapabilities: {close, list, resume}(noloadSession; resume issession/resume),mcpCapabilities.http: true(stdio MCP is also accepted insession/new).session/new {cwd, mcpServers}→configOptions:model(select): values are JSON strings["<provider>","<model>"], grouped per provider. Default groupdeepseek-officialwithdeepseek-v4-flash(current),deepseek-flash("DeepSeek-V4.1-Flash"),deepseek-v4-pro("DeepSeek-V4-Pro"). Third-party providers the user adds in dsh appear as further groups.reasoning_effort(select):off | low | high | max, defaulthigh.
session/set_config_option {sessionId, configId, value}returns the fullconfigOptionsso a change can be confirmed.- Credentials:
DEEPSEEK_API_KEYfrom the launch env, outranked by a stored key in$DSH_HOME/.credentials.yaml(DEEPSEEK_API_KEY: sk-…), then.envin cwd, then$DSH_HOME/.env. Noauthenticatestep exists. - Permissions arrive as
session/request_permissionwith allow/reject options; no modes, nosession/load, no terminals, no client fs.
Goals
deepseekAgentACP driver in the default fleet (instance iddeepseek).- Engines page card "DeepSeek Harness" with a DeepSeek mark, install from Settings (npm), and a ready state driven by the key.
- A "DeepSeek API key" row under Model providers in Settings, stored like
the xAI key (server config, write-only, env override
DEEPSEEK_API_KEY), handed only to thedeepseekAgentchild. - Model picker: the three official models statically, and an explicit
Refresh that asks the installed
dshfor its real catalog (including third-party providers configured in dsh). - Reasoning effort none/low/high/max mapped to dsh's off/low/high/max.
- Resume across turns through
session/resume. - Tests at the same level as the Droid/Kimi drivers.
Non-goals (v1)
- Local-model injection (omlx/ollama rows) into dsh's provider config.
- Image attachments (dsh advertises none by default; the core already refuses cleanly when a runtime does not advertise image input).
- "Full access" / "Auto-accept edits" approval levels (dsh has no modes; it stays ask/auto like Kimi and Hermes).
- Phone apps: engines come from the server, phones only need a provider mark; that is a separate mausbot-mobile change and is noted in the hand-over.
- Managed download of dsh; npm is the install route.
Anti-goals
- Running a model other than the one the picker shows. Every set is
confirmed against the returned
currentValue; a mismatch fails the turn. - Leaking
DEEPSEEK_API_KEYinto other engines' child processes. The name joinsPROVIDER_CREDENTIAL_ENVso only this driver inherits it. - Blocking app startup on dsh: no catalog probe on create
(
resolveModelsOnCreate: false), only on explicit Refresh.
Design
Driver: server/drivers/acp/deepseek.ts
createAcpDriver(support) with:
driverKind: "deepseekAgent",displayName: "DeepSeek Harness",defaultCli: "dsh",nativeSource: "deepseek.acp",spawnArgs: () => ["--profile", "acp"].models: static{ default: "deepseek-official/deepseek-v4-flash", options: [...3] }. Picker id format is<provider>/<model>(split on the first/); the wire value isJSON.stringify([provider, model]). Exported helpersdeepseekWireValue(id)anddeepseekPickerId(wireValue).resolveModels(env, config): spawnconfig.cli --profile acp,initialize,session/newin a temp cwd, readconfigOptions[id=model],session/close, end stdin, kill. Options become<provider>/<model>with dsh's own names as labels;currentValuebecomes the default. Any failure throws so the core keeps the last usable catalog. Timeout 60 s (OPENMAUS_DEEPSEEK_MODELS_TIMEOUT_MS).resolveModelsOnCreate: false.- Model and reasoning effort ride the core's existing OpenCode-shaped path
(builder's call, replacing the
effortLevels+configureSessiondraft above oncecore.tson main was read):selectModel: { configId: "model" }sets and confirms the model throughsession/set_config_option, andmodelVariants: truediscovers dsh'sreasoning_effortoption (categorythought_level: off/low/high/max) as the per-session "Reasoning" picker the UI already renders for OpenCode. No driver code for effort. resumeMethod: "resume".pickAuthMethod: () => null,authFailure: "continue"(ambient key).isAuthenticated(env):env.DEEPSEEK_API_KEYset, or$DSH_HOME/.credentials.yaml(DSH_HOME or~/.dsh) has a non-emptyDEEPSEEK_API_KEY:line, or$DSH_HOME/.envhas one.credentialEnv: ["DEEPSEEK_API_KEY"].loginNote: "DeepSeek Harness has no DeepSeek API key — paste one under Settings → Connections → Model providers, or set DEEPSEEK_API_KEY."install:npm install -g @deepseek-ai/dshon all three platforms,needsNode: true,docsUrl: https://github.com/deepseek-ai/deepseek-harness,settings: "connections"so a keyless but installed dsh shows the "needs an API key → Open API keys" card instead of a terminal sign-in; the setup panel still offers the npm install while the CLI itself is missing.buildPromptText: persona then text, like Droid and Hermes.
Registry and fleet
server/drivers/builtIn.ts: import and appendDeepSeekAgentDriver.server/config.ts:deepseek: { driver: "deepseekAgent" }inDEFAULT_FLEETandPRODUCT_FLEET_ADDITIONS;DEEPSEEK_API_KEYinPROVIDER_CREDENTIAL_ENV;injectedEnvironmentgivesDEEPSEEK_API_KEYtodeepseekAgentfromcfg.deepseek.key.
API key (mirrors xai)
AppConfig.deepseek?: { key?: string }; zoddeepseek: z.object({ key: optionalText });loadConfigenv fallbackDEEPSEEK_API_KEY→cfg.deepseek.key;syncCredentialEnvrow[patch.deepseek?.key, "DEEPSEEK_API_KEY"];"deepseek"in the merge-section list; tombstone in the Electron external-secret branch ofPUT /api/config.GET /api/config→deepseek: { configured: boolean }; storeConfigStatusand the frame key list getdeepseek.ApiKeys.tsx: sectiondeepseek(body: (v) => ({ deepseek: { key: v } })), credential copy keyskeys.deepseek.label/desc/link, placeholdersk-…, hrefhttps://platform.deepseek.com/api_keys.SettingsModalrenders<ApiKeyRow section="deepseek" />after xAI under Model providers. No Test button (no/api/keys/testprovider in v1).- Locales: en strings; zh falls back to en like the xAI row does today.
UI
ProviderIcons.tsx:DeepSeekMark(DeepSeek whale, brand blue #4D6BFE) andcase "deepseekAgent"inProviderMark.EngineLibrary.tsx:deepseekAgent: "DeepSeek"inproviders.scripts/verify-engines-ui.ts: fixture row["deepseek", "deepseekAgent", "DeepSeek Harness", false, ""].
Tests
server/drivers/acp/deepseek.test.ts: id ↔ wire mapping; catalog parsing from a capturedconfigOptionsfixture;isAuthenticatedfor env, credentials file and.envunder a temp DSH_HOME;configureSessionissues the expectedset_config_optioncalls, skips when already current, and throws on a sticky model;spawnArgs; effortnone→off.server/config.test.ts:DEEPSEEK_API_KEYreaches onlydeepseekAgent;deepseekis in the default fleet; stripping removes it from other children.server/index.test.ts: config status reportsdeepseek.configured.- Existing ACP core suites stay green.
Left to the builder
- Exact SVG path for the mark (simple-icons DeepSeek path captured in the scratchpad is acceptable).
- Whether
resolveModelsreuses a helper from another driver or carries its own 40-line JSON-RPC client.