Hosted Gateway

Hosted Gateway is planned for private beta after tokenpatch.com goes online. It is for users who cannot easily get, recharge, or manage a DeepSeek API key directly. The first public GitHub release is BYOK-first.

1. Request access

Self-serve top-up is not public yet. Early beta credits will be handled manually after account approval.

2. Receive a token

Approved beta users will receive a `tp_live_...` gateway token. Store it in your local MCP or CLI environment once.

3. Configure

The open-source client sends the public `gateway-executor` alias. tokenpatch.com maps it server-side to DeepSeek V4 Pro.

MMDEV_EXECUTOR_PROVIDER=mmdev_gateway
MMDEV_GATEWAY_URL=https://api.tokenpatch.com
MMDEV_GATEWAY_TOKEN=tp_live_...
MMDEV_GATEWAY_EXECUTOR_MODEL=gateway-executor

4. Run and inspect

Ask with tp:. Then check balance, usage, savings ratio, and cost per applied patch.

Smoke test

tp: show current metrics and report. Do not modify source files.