DeepSeek Harness Nutaraline Credits Plugin

Preface

Managing third-party gateway balances and usage in DeepSeek Harness (DSH) requires switching to an external panel or opening a browser. This adds extra steps and makes it easy to overlook whether the current quota is sufficient. Below is an introduction to a DeepSeek Harness bundle: it displays the Nutaraline gateway’s balance and usage information in the Settings panel, allowing you to check your quota and limits at any time during development or testing.

What Is This

Nutaraline credits is a DeepSeek Harness bundle developed by maintainer clarois. Its purpose is to display the Nutaraline gateway’s remaining credits and usage within DSH’s Settings panel. It does not occupy the left sidebar; instead, it exists as a page you can occasionally check within Settings.

Core Features

The plugin registers a page in Settings that displays the following information:

  • Balance: available and reserved credits (in IDR), account name, plan, and billing status
  • Today’s limits: daily free token quota, hourly/daily request limits, today’s token usage, and remaining rate limit headroom
  • Model bonuses: bonus quota per model, remaining share, and reset time
  • Usage: total historical requests, total tokens, input tokens, and output tokens
  • API key: variable name and whether it has been stored (the actual value is not displayed)
  • Endpoint: the base URL of the gateway called by Host

The page reads GET /v1/balance once on initial mount, and only refreshes data when you click Refresh. It does not hold the API key on the browser side, nor does it directly access nutaraline.co.uk: the browser calls a same-origin route provided by the Host, and the Host resolves the key from the credential store.

Installation & Activation

Install using the official command:

dsh plugin install dsh-nutaraline-credits

After installation, the bundle automatically loads its configuration and client scripts upon activation.

Configuration

The plugin’s behavior is controlled by the following configuration options:

Key Default Meaning
apiKeyEnv NUTARALINE_API_KEY The name used by Host to resolve the credential
apiBase https://nutaraline.co.uk Gateway base URL

The API key itself is not a configuration value; it only needs to be set once in the credential store:

dsh credential set NUTARALINE_API_KEY

Configuration is read when the plugin is activated. After making changes, you need to reload the plugin for them to take effect. Credentials are resolved on every call and are not cached, so after a key rotation, the next Refresh will pick up the change immediately.

Frequently Asked Questions

The Settings page may display the following messages, with the corresponding meanings:

Panel Display Meaning
No key stored under NUTARALINE_API_KEY No key with this name exists in the credential store; run dsh credential set to configure it.
Nutaraline rejected the API key … (HTTP 401) The stored key is incorrect or has been revoked.
The Nutaraline balance is exhausted (HTTP 402) The account’s credits have been fully used.
Nutaraline is rate limiting this key (HTTP 429) Requests are too frequent; wait and then refresh.
Could not reach https://nutaraline.co.uk (…) The Host cannot access this URL; this may be a network or DNS issue.
The credential service is unavailable in this profile. The credentials service is not loaded in the current profile.

If a read fails, the page retains the previous values and displays an error message above, preventing a blank page due to transient network issues.

Use Cases & Notes

This plugin is well-suited for developers or testers who frequently need to check Nutaraline gateway quotas and limits. Please ensure the installation source is trustworthy. Before installing, you can review the source code and license (MIT).

Conclusion

Nutaraline credits consolidates gateway balance and usage information into DSH’s Settings panel, reducing the need to switch between panels and making it easy to verify quotas and limits throughout your development workflow. For more details or to submit issues, visit the plugin directory page and the GitHub repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye