Introduction¶
When building web-connected agents in DeepSeek Harness (DSH), the model typically invokes the built-in web_search and web_fetch tools. The tool names and schemas remain unchanged, but the underlying search and fetching pipeline can directly affect result quality and page content extraction. If you want both search and content extraction handled by Octen’s API without learning a new set of tools, you can mount a provider plugin at the Harness web seam (ctx.web). Below we introduce the community plugin dsh-octen (npm package @octen.ai/dsh-octen, repo Octen-Team/dsh-octen), maintained by Octen-Team and categorized as a web tool.
What Is This¶
dsh-octen registers Octen as a DSH web provider: after installing and configuring the API key, the built-in web_search goes through Octen’s POST /search, and web_fetch goes through POST /extract. The model side still sees the original tool schemas—no new tool names are added.
| Built-in Tool | Octen Endpoint | Content Returned to Model |
|---|---|---|
web_search |
POST /search |
For each result: title, URL, query-relevant snippet, publish time |
web_fetch |
POST /extract |
Page main content (clean Markdown) with the page title |
Environment and Dependencies¶
- DeepSeek Harness 0.2.0-rc.2 or higher.
- Obtain an Octen API key at octen.ai.
- Plugin current version (package.json): 0.1.0; License: MIT.
Installation and Activation¶
GUI¶
- Open Plugins, click Add plugin.
- Enter
@octen.ai/dsh-octen, click Install. - Open the plugin page, paste your key into Octen API key, and click Save.
Terminal¶
Install according to the profile you are using. The desktop app typically uses desktop; dsh web uses web.
dsh plugin --profile desktop add @octen.ai/dsh-octen
If you see command not found: dsh, select DeepSeek Harness → Manage dsh Command… → Install in the desktop app, then open a new terminal and rerun. If the desktop app is running, it’s recommended to restart it after installation.
The key can also be saved via the plugin Web UI, or exported in the environment where DSH is launched:
export OCTEN_API_KEY=your-key
After installation, both web_search and web_fetch point to Octen by default. Ask your agent a question that requires up-to-date information to verify.
Using Octen for Only Some Tools¶
Search and fetch can be configured separately. For example, to keep Octen for search but switch fetching back to Harness’s built-in HTTP fetch, add the following to the profile’s cordis.patch.yml (e.g. ~/.dsh/profiles/desktop/cordis.patch.yml):
- id: web
config:
searchProvider: octen
fetchProvider: http
To switch search back to the built-in implementation, use searchProvider: deepseek-official. The profile’s patch layer is applied after the plugin patch, so it overrides the plugin defaults.
Configuration Options¶
The plugin’s id in Cordis is dsh-octen. All fields are optional, and configuration is re-read on each call, so config changes generally do not require a process restart.
| Field | Default | Description |
|---|---|---|
apiKeyEnv |
OCTEN_API_KEY |
Read the key from the credentials store (written via the Plugins page) or environment variable |
apiKey |
None | Plaintext key; using apiKeyEnv is recommended to avoid putting the key in config files |
baseURL |
Reads $OCTEN_API_URL first, otherwise https://api.octen.ai |
Octen API root URL; must be HTTPS, or HTTP pointing to localhost. OCTEN_API_URL comes from the process environment or ~/.dsh/.env, and will not read .env in the project directory |
extractTimeoutSeconds |
25 |
Timeout for a single web_fetch extraction (1–60 seconds), should be below the web_fetch tool’s default budget (30 seconds) |
Example:
- id: dsh-octen
config:
apiKeyEnv: TEAM_OCTEN_KEY
extractTimeoutSeconds: 20
Runtime Behavior and Errors¶
Search: Harness defaults to 8 results, which the plugin passes to Octen as count; results without a URL are dropped; missing title, snippet, or date fields are not fabricated but omitted.
Fetch: Octen extracts the main content server-side; Harness no longer downloads or converts HTML itself. On successful extraction, the tool layer reports HTTP 200 (Octen does not return the source site’s status code). On extraction failure, the tool call fails with Octen’s reason, e.g. Failed to resolve domain.
Error codes: If the key is not configured, the request fails before being sent, with error WEB_PROVIDER_CREDENTIAL_MISSING; invalid key, insufficient balance, rate limiting, or server errors result in WEB_PROVIDER_ERROR with Octen’s message attached; cancellation yields WEB_ABORTED.
Security: Requests carry the key via the x-api-key header; redirects are not followed; only HTTPS base URLs (or HTTP to localhost) are allowed. Project .env cannot change the API endpoint, reducing the risk of accidentally redirecting the key egress in untrusted repositories.
Typical Usage¶
After installing and saving the key, you don’t need to change the tool names in your agent prompts—just ask questions directly, e.g.:
- “Look up the request body field documentation for
/searchin the Octen docs.” - “Open a news link and use web_fetch to summarize the key points of the article.”
If you only need search and not Octen extraction, set fetchProvider to http as described above.
Suitable Scenarios and Notes¶
Suitable for: Developers already using DSH 0.2.0-rc.2+ who want to uniformly use Octen for web search and content extraction without changing the model-side tool contract.
Notes:
- The plugin runs under the permissions of the current dsh process; before installing, review the GitHub source code and MIT license yourself to ensure it meets your security and compliance requirements.
- Octen is a paid/quota-based API service; you need to manage your key and usage at octen.ai yourself.
- The community plugin directory page dsh-octen on SkillHub is an independent ecosystem site with no official affiliation with DeepSeek / High-Flyer; star counts and other metadata are as shown on each site (currently 0 stars on GitHub).
Summary¶
The value of dsh-octen lies in replacing the search and fetch backends at DSH’s “everything is a plugin” web seam, while the model still uses the original web_search / web_fetch. Install @octen.ai/dsh-octen, configure OCTEN_API_KEY (or the key via the Plugins page), and you can use Octen’s /search and /extract to power web-connected tasks.
- Directory page: https://www.skillhub.cn/plugins/Octen-Team/dsh-octen
- Source code and README: https://github.com/Octen-Team/dsh-octen