Files
paseo/plugins/openrouter-host-usage-source/index.server.ts
T
Mohamed Boudra 05fc260b96 Show OpenRouter credits and spend in Usage (#10269)
Show remaining account credits and API-key spend for today, this week, and this month in the host Usage panel and CLI.
2026-11-20 12:13:01 +07:00

16 lines
461 B
TypeScript

import type { PluginServerContext } from "@getpaseo/plugin/server";
import { discover, fetchUsage, inputSchema } from "./server/usage.js";
export default function contribute(server: PluginServerContext) {
server.registerUsageSource({
// The marketplace plugin already registers "openrouter".
id: "openrouter-host",
label: "OpenRouter",
icon: "icon.svg",
input: inputSchema,
discover,
fetch: fetchUsage,
});
return () => {};
}