The core design philosophy of DeepSeek Harness (DSH) is “everything is a plugin.” When an agent needs to process basic data for drugs or chemicals, manually calling external APIs increases development cost. The xby-pubchem plugin wraps the PubChem API, allowing the agent to directly retrieve key information such as molecular formula, molecular weight, and CAS number.

Plugin Overview

xby-pubchem is an online tool plugin maintained by xby-skill. The service extracts basic chemical information about drugs through the PubChem API, including key data such as molecular formula, molecular weight, and CAS number.

Core Features

This plugin provides the following capabilities:
* set_xby_apikey: Sets the API key in chat (automatically persisted and remains valid after restart).
* get_chemical_info: Retrieves detailed information about a chemical substance; the parameter is the chemical substance name.
* search_chemical_by_cas: Searches for chemical substance information by CAS number; the parameter is the CAS number.

Installation and Configuration

Installation

Run the following command in the terminal to install the plugin:

dsh plugin --profile web add github:xby_skill/xby-pubchem

Configure the API Key

Before use, register and obtain an API key on the Xiaobenyang official website. In the conversation, call the set_xby_apikey command to set this key. After setting, it is automatically persisted and remains valid after the process is restarted.

Typical Usage

  1. Enter set_xby_apikey in the conversation and attach the API key obtained from registration.
  2. Call get_chemical_info with the chemical substance name as the parameter, for example: “Call get_chemical_info with the parameter aspirin.”
  3. Call search_chemical_by_cas with the CAS number as the parameter, for example: “Call search_chemical_by_cas with the parameter 50-57-7.”

Use Cases and Notes

This plugin runs with the permissions of the current DSH process. Before installation, it is recommended to review the source code and license (MIT). To view plugin details, visit the plugin directory or the GitHub repository.

After installation and configuration, the agent can retrieve structured chemical data through this plugin.