Introduction

DeepSeek Harness (DSH) extends capabilities through a plugin mechanism. @accurlex/dsh-legal is a plugin that connects DSH with the accurLex Open Platform. It directly calls the REST API and does not rely on the legacy MCP/stdio/JWT integration approaches.

Plugin Information

Core Features

This plugin provides the following tools:

  1. accurlex_legal_qa: Legal question answering
  2. accurlex_law_search: Statute/legal provision search
  3. accurlex_contract_review: Contract review
  4. accurlex_document_draft: Document drafting
  5. accurlex_account_usage: Usage inquiry

Installation and Enablement

Before installation, configure the environment variable.

1、Configure the environment variable

$env:ACCURLEX_API_KEY = 'ak_live_***'

2、Install the plugin

dsh plugin --profile web add @accurlex/dsh-legal

3、Start Web

dsh web

Note: The demo profile is only for registration checks and cannot be used for actual Agent tasks.

Configure API Key

The plugin calls the real accurLex Open Platform API, so the Key must be configured. It is recommended to set the environment variable in the same process environment as the one used to start DSH, and do not write the real Key into repositories or logs.

$env:ACCURLEX_API_KEY = 'ak_live_***'

Tool Usage Instructions

  • Usage inquiry: Call accurlex_account_usage to check the Key status.
  • Legal question answering: Call accurlex_legal_qa, and use stream: true in the request to receive long responses.

Notes

  • The plugin does not store API Keys, request bodies, contract content, response bodies, or workspace paths.
  • Requests use stream: true to receive long responses.
  • The default tool timeout is 10 minutes; toolCallTimeoutMs can be overridden in the configuration.
  • The plugin is published only under the MIT License and does not represent the accurLex platform or API.