()
| 41 | // Even before the proxy starts, we return the local URL so that OpenClaw's |
| 42 | // async config persistence writes the correct baseUrl to openclaw.json. |
| 43 | get models() { |
| 44 | if (activeProxy) { |
| 45 | return buildProviderModels(activeProxy.baseUrl); |
| 46 | } |
| 47 | // Proxy not started yet — use the configured port so OpenClaw persists |
| 48 | // the correct local URL, not the remote blockrun.ai fallback. |
| 49 | const port = getProxyPort(); |
| 50 | return buildProviderModels(`http://127.0.0.1:${port}/v1`); |
| 51 | }, |
| 52 | |
| 53 | // No auth required — the x402 proxy handles wallet-based payments internally. |
| 54 | // The proxy auto-generates a wallet on first run and stores it at |
nothing calls this directly
no test coverage detected