MCPcopy Index your code
hub / github.com/BlockRunAI/ClawRouter / models

Function models

src/provider.ts:43–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

buildProviderModelsFunction · 0.85
getProxyPortFunction · 0.85

Tested by

no test coverage detected