Skip to content

Security

Toobit Agent Trade Kit provides multiple layers of security to protect your assets and credentials.

Security Layers

LayerDescription
Local ExecutionAll programs run locally. Keys are only stored in the local config file (~/.toobit/config.toml). Signatures are computed locally. AI cannot access your credentials.
Read-Only Mode --read-onlyOnly data queries are allowed. All write tools are disabled — AI cannot execute any trades.
Module Filtering --modulesPrecisely control which modules are exposed to AI. For example, --modules market only exposes market data.
Smart RegistrationOn startup, the server detects API Key permissions. If the Key lacks trade permissions, order tools won't be registered.
Risk LabelsAll tools involving fund operations are tagged with [CAUTION], prompting AI to confirm before execution.
Local Rate LimitingBuilt-in token bucket rate limiter prevents overloading the Toobit API.
Audit LoggingAll tool calls are automatically logged to ~/.toobit/logs/ with sensitive data (signatures, etc.) redacted.

Best Practices

Credential Security

DANGER

Never share your API Key or Secret Key with any AI model or paste it into a chat. All credentials should only be stored in the local config file (~/.toobit/config.toml).

  • Use a sub-account API Key with only the minimum required permissions
  • Set up IP whitelisting to restrict API Key usage
  • Regularly review and rotate your API Keys

Risk Management

  • Start with --read-only mode to familiarize yourself with features
  • Use --modules market to expose only market queries, with no trading involved
  • Test with spot_place_order_test before actual trades
  • Regularly review audit logs in ~/.toobit/logs/
  • AI can make mistakes — always verify order details before execution

WARNING

Users bear all risks and losses from trading operations.

Released under the MIT License.