mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-25 01:35:31 +00:00
Show remaining account credits and API-key spend for today, this week, and this month in the host Usage panel and CLI.
16 lines
461 B
TypeScript
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 () => {};
|
|
}
|