pennyrouter 0.2.33 → 0.2.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/cli.js +17 -0
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -593,6 +593,19 @@ export async function install(flags = {}) {
|
|
|
593
593
|
flags, needsAuth, claudeAnthropicAuth, claudeProviders, codexProviders);
|
|
594
594
|
gatewayBaseUrl = flags.gatewayBaseUrl || claim.gateway_base_url;
|
|
595
595
|
|
|
596
|
+
// A user-supplied proxy may live on a private network that the hosted gateway cannot
|
|
597
|
+
// reach. Let interactive installs choose the gateway after they choose the proxy: blank
|
|
598
|
+
// keeps the hosted default, while a supplied URL is used for credential storage,
|
|
599
|
+
// validation, probing, and the installed harness configuration. `--local` remains the
|
|
600
|
+
// explicit localhost:8400 developer shortcut and skips this prompt.
|
|
601
|
+
if (claudeProviders.has("anthropic-proxy") && !flags.gatewayBaseUrl
|
|
602
|
+
&& !flags.yes && input.isTTY && output.isTTY) {
|
|
603
|
+
const privateGateway = (await promptText(
|
|
604
|
+
"PennyRouter gateway URL for this proxy (blank for hosted gateway): ",
|
|
605
|
+
)).trim();
|
|
606
|
+
if (privateGateway) gatewayBaseUrl = privateGateway;
|
|
607
|
+
}
|
|
608
|
+
|
|
596
609
|
for (const credential of funding.credentials) {
|
|
597
610
|
await storeUpstreamCredential({
|
|
598
611
|
gatewayBaseUrl,
|
|
@@ -2040,6 +2053,10 @@ Usage:
|
|
|
2040
2053
|
pennyrouter status
|
|
2041
2054
|
pennyrouter mcp install|uninstall|status [--harness claude-code,codex]
|
|
2042
2055
|
|
|
2056
|
+
When an interactive install selects an Anthropic proxy, it asks for the PennyRouter gateway
|
|
2057
|
+
that can reach that proxy. Leave it blank for the hosted gateway, or enter a private/self-hosted
|
|
2058
|
+
gateway URL. Use --gateway-base-url (or --local for localhost:8400 development) for non-interactive installs.
|
|
2059
|
+
|
|
2043
2060
|
Install and update both register the Threads MCP server with Claude Code and Codex (--no-mcp to
|
|
2044
2061
|
skip a run). Run "pennyrouter mcp install" if you skipped it or had to rename a conflicting
|
|
2045
2062
|
server, "pennyrouter mcp status" to see whether it is wired up, and "pennyrouter mcp uninstall"
|