Documentation

DeepSeek Harness + SingIt

One provider route for the harness: API key, local wallet or free tier - under ceilings you set.

1. Install

npm install @singitai/dsh
dsh plugin --profile <your-profile> add @singitai/dsh

Registration in a profile is required - there is no one-line variant. A ✕ missing peer note for the harness packages is expected: the harness supplies them at runtime. Two peers are genuinely optional features: @x402/evm (pay from a local wallet over x402) and @singitai/proxy (route through a local proxy instead of holding a credential in the harness process). Checked on npm (@singitai/dsh 0.1.0) on 15 November 2026.

2. What setup does

  • Registers a SingIt provider route in the profile. The gateway at ask.singitai.app speaks OpenAI-compatible POST /v1/chat/completions (used by this plugin), Anthropic POST /v1/messages, POST /v1/responses, and GET /v1/models - free and unauthenticated.
  • Does not change the agent’s default model: select provider singit with any catalog model id, or let singit/auto pick a model per request. Text messages and a system prompt are forwarded; vision and attachment blocks are not translated yet.
  • Looks for a credential in this order, per request: SINGIT_API_KEY (the account rail at https://app.singitai.app/v1, a plain Bearer header, no payment handshake) → a local wallet over x402 via @x402/evm (SINGIT_WALLET_KEY; Base is the default chain, the gateway also settles on Solana) → nothing (the free/* models).
  • Credential fields are references - names of environment variables or harness credential-store entries - never values.

3. Start

export SINGIT_API_KEY=sk_singit_...

Get a key in the SingIt app, then run your harness profile as usual and select the singit route. If you would rather not hold any credential in the harness process, run the local proxy and point the plugin at it:

npm install -g @singitai/proxy
singit-proxy
# profile cordis.patch.yml
- id: singit-llm
  config:
    useProxy: true
    proxyUrl: http://127.0.0.1:8787

A proxy that stops answering falls back to the direct route rather than failing calls.

How the limits work

Receipts

Every settled answer carries a receipt: the PAYMENT-RESPONSE and X-SingIt-Receipt headers. From any MCP client, get_receipts lists what was charged; API-key calls land on the account. See How a payment is charged.

Free first call, no key

Pick free/deepseek-v4.1-flash - the free/* models answer with no credential at all. GET /v1/models is always free, so the catalog selector works either way.

Troubleshooting

  • ✕ missing peer at install: expected - the harness supplies its own packages at runtime; only @x402/evm and @singitai/proxy are genuinely optional features.
  • 402 with a quote on the wallet path: the plugin signs a USDC authorization locally via @x402/evm and retries.
  • The plugin never opens ~/.singit/session itself - to use a session file, run @singitai/proxy and set useProxy.
  • No doctor command ships with the plugin; GET https://ask.singitai.app/v1/models is a free, unauthenticated check of the gateway.

Config reference: provider (default singit), apiKeyEnv (SINGIT_API_KEY), walletKeyEnv (SINGIT_WALLET_KEY), gatewayUrl (https://ask.singitai.app), apiKeyUrl (https://app.singitai.app), useProxy / proxyUrl (false / http://127.0.0.1:8787), timeoutMs (300000).

Status

Early scaffold. @singitai/dsh 0.1.0 is live on npm (verified 15 November 2026); an end-to-end run of the plugin inside a real harness profile is not documented yet. An optional review gate (off by default) lets a second model inspect risky tool calls before they run - it only ever narrows what may run - and /review runs it over a diff, plan or conclusion on demand.