Skip to main content

Module handler

Module handler 

Source
Expand description

HTTP route handlers for all proxy endpoints.

  • [chat] / [messages] / [models] — OpenAI-compatible API.
  • [amp] / [amp_provider] — Amp CLI / AmpCode compatibility.
  • accounts / status / ratelimits — Management API.

Modules§

accounts
Account management endpoints — list, remove, and activate per-provider accounts.
amp_quota
AmpCode quota management endpoint — exposes cached free-tier and balance data.
amp_threads
Amp thread reading — exposes local Amp CLI thread files via management API.
ratelimits
Rate limit management endpoint — exposes captured upstream rate limit headers.
status
Management status endpoint — reports provider health and server info.
usage
Usage statistics endpoints — current counters and historical data.