gitshrl/pengepul — reverse-engineered prompt
Reverse engineered prompt
Build me a Rust command line tool called pengepul that runs a local relay server for AI provider accounts. I want to log in to Anthropic, Codex, and opencode, then send requests to one local API instead of dealing with each provider directly.
It should handle OAuth login for Anthropic and Codex, support manual login when the browser callback does not work, and import or accept an opencode API key. Store credentials in a local folder, create a config file with a generated local API key, and let me change host, port, body size, timeouts, and debug logging.
The server should expose familiar routes like health, models, chat completions, responses, messages, token counting, account status, and reload. It should rotate accounts, refresh tokens, back off failed accounts, support streaming, and translate request and response formats where needed.
Also add status, accounts, config, help, and user service commands for Linux and macOS. Include tests and clear README examples.
Want more depth? Deep Reverse