Kimi Cursor Gateway exposes a public HTTPS endpoint via Cloudflare Quick Tunnel so Cursor can reach the local proxy. Anyone who discovers the tunnel URL could attempt to call your gateway.
Cursor uses a locally generated gateway key, not your Moonshot API key. Requests to /v1/chat/completions require:
Authorization: Bearer <gateway-key>Rotate this key from the dashboard at any time.
- Encrypted at rest with Windows DPAPI (user-scoped)
- Never logged
- Never returned to the frontend in full (masked display only)
- Never included in diagnostics export
The Axum server listens on 127.0.0.1 only. The tunnel forwards exclusively to that port.
The UI displays a clear warning when a public tunnel is active. Quick Tunnel URLs are ephemeral but still reachable while active.
Maximum request body size: 10 MB.
Exports include:
- Redacted config (no secrets)
- Log files (secrets redacted in error paths)
- Gateway status metadata
Never includes the Moonshot API key.
- Rotate the gateway key if you suspect the tunnel URL was shared
- Stop the gateway when not in use
- Do not share your tunnel URL publicly
- Keep your Moonshot API key on the Moonshot platform with usage limits if available
If you discover a security issue, report it to the project maintainers privately before public disclosure.