Skip to main content

Install and configure in Desktop

1

Install from GitHub

Open DeepSeek Harness Desktop, select Plugins in the sidebar, and click Add plugin. Paste the following GitHub URL into Package name or address, then click Install.
Entering the SoMark plugin GitHub URL in the Add plugin dialogOnce installation finishes, click Enable now. Installing from this URL requires no install script approval. To upgrade from an older version, uninstall it and install again from the same URL.
2

Choose a parsing service

When you first enable the plugin, select a Parsing service. The SoMark API China, SoMark API Global, and OXR Free API presets fill in baseURL automatically. For a private deployment, enter your own API base URL.
3

Enter your API key and save

If your service requires a key, enter it in the API Key field below baseURL and click Save. For SoMark API, use a key from the workbench for the site you selected.Choosing a parsing service and entering an API key below the prefilled baseURLTo review or change your settings later, go to Plugins → SoMark Document Parser. A saved key shows Configured. Click Replace to update the key for the current service URL.The Configured status and Replace button for the API key in plugin settings

Install and configure with the CLI

If you use a Web, Headless, or custom profile, install the plugin into that profile. Set service to somark-cn, somark-global, oxr-free, or private in the profile’s cordis.patch.yml. This example uses OXR Free API, which requires no key.
  • SoMark API. Choose the site and set SOMARK_API_KEY in the terminal that launches DeepSeek Harness, or set apiKey under config.
  • Private deployment. Set service: private and baseURL. If your deployment requires authentication, set apiKey under config.
If you omit both service and baseURL, the plugin defaults to SoMark API (China). Start or restart the profile after configuration to register the somark_parse tool.
Do not commit a configuration file that contains a real API key.

Parse documents in DeepSeek Harness

1

Prepare the document

Place the PDF, image, Word, or PPT file in a location that the current DeepSeek Harness workspace can access, and use its absolute path.
2

Send a parsing instruction

Tell the agent which file to parse and what you need. Try one of these prompts.
  • “Use SoMark to parse /workspace/report.pdf and summarize the main conclusions.”
  • “Parse /workspace/contract.docx as Markdown and extract the key clauses.”
  • “Parse /workspace/slides.pptx and organize the content by section.”
The agent calls somark_parse to read the file and waits for the selected service to finish parsing it.
3

Use the parsed result

After parsing finishes, ask the agent to summarize the content, extract fields, organize tables, or save the result as Markdown.

Parameters and outputs

Input parameters

Common configuration

Add these fields under the tool-somark config object. The plugin uses its defaults when you omit them. See the plugin README for all configuration fields and defaults.

Outputs

Notes

  • somark_parse parses one file per call. Ask the agent to call the tool once per file when processing multiple documents.
  • The plugin reads documents through the DeepSeek Harness file system, so the file must be in a location allowed by the current workspace.
  • The plugin sends documents to your selected service for parsing. Make sure the documents meet your data security and compliance requirements.